Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: f1a9b40143e202dc209c51b0528b1a29fe804162
https://github.com/Checkmk/checkmk/commit/f1a9b40143e202dc209c51b0528b1a29f…
Author: Christoph Rauch <christoph.rauch(a)checkmk.com>
Date: 2023-12-04 (Mon, 04 Dec 2023)
Changed paths:
A .werks/16067
M cmk/gui/backup/handler.py
M cmk/gui/bi/_config.py
M cmk/gui/crash_reporting/pages.py
M cmk/gui/custom_icons/_modes.py
M cmk/gui/dashboard/page_create_view_dashlet.py
M cmk/gui/dashboard/page_edit_dashlet.py
M cmk/gui/htmllib/html.py
M cmk/gui/key_mgmt.py
M cmk/gui/login.py
M cmk/gui/message.py
M cmk/gui/mkeventd/wato.py
M cmk/gui/mobile/pages.py
M cmk/gui/page_menu.py
M cmk/gui/pagetypes.py
M cmk/gui/painter_options.py
M cmk/gui/prediction.py
M cmk/gui/sidebar/_snapin/_views.py
M cmk/gui/table.py
M cmk/gui/utils/confirm_with_preview.py
M cmk/gui/view_renderer.py
M cmk/gui/views/availability.py
M cmk/gui/views/datasource_selection.py
M cmk/gui/visuals/_filter_form.py
M cmk/gui/visuals/_page_create_visual.py
M cmk/gui/visuals/_page_edit_visual.py
M cmk/gui/wato/_snapins.py
M cmk/gui/wato/_virtual_host_tree.py
M cmk/gui/wato/pages/_simple_modes.py
M cmk/gui/wato/pages/activate_changes.py
M cmk/gui/wato/pages/audit_log.py
M cmk/gui/wato/pages/bulk_discovery.py
M cmk/gui/wato/pages/bulk_edit.py
M cmk/gui/wato/pages/bulk_import.py
M cmk/gui/wato/pages/custom_attributes.py
M cmk/gui/wato/pages/diagnostics.py
M cmk/gui/wato/pages/folders.py
M cmk/gui/wato/pages/global_settings.py
M cmk/gui/wato/pages/groups.py
M cmk/gui/wato/pages/host_diagnose.py
M cmk/gui/wato/pages/host_rename.py
M cmk/gui/wato/pages/hosts.py
M cmk/gui/wato/pages/ldap.py
M cmk/gui/wato/pages/notifications.py
M cmk/gui/wato/pages/parentscan.py
M cmk/gui/wato/pages/pattern_editor.py
M cmk/gui/wato/pages/random_hosts.py
M cmk/gui/wato/pages/read_only.py
M cmk/gui/wato/pages/roles.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/search.py
M cmk/gui/wato/pages/services.py
M cmk/gui/wato/pages/sites.py
M cmk/gui/wato/pages/tags.py
M cmk/gui/wato/pages/timeperiods.py
M cmk/gui/wato/pages/user_migrate.py
M cmk/gui/wato/pages/user_profile/change_password.py
M cmk/gui/wato/pages/user_profile/edit_profile.py
M cmk/gui/wato/pages/user_profile/two_factor.py
M cmk/gui/wato/pages/users.py
M cmk/gui/werks.py
Log Message:
-----------
16067 FIX Fix possible "Internal server error" while saving large formulars
CMK-14280
Core change of this commit is in cmk.gui.htmllib.html:336+
A new context manager is introduced which can remember if an input field
is related to a file-upload or not. If it is related to a file-upload,
the HTML <form enctype="..."> attribute is set to multipart/form-data,
else it is set to the DEFAULT_ENCTYPE. In this change it is still
multipart/form-update, to validate the mechanical changes first.
In a subsequent commit, the DEFAULT_ENCTYPE will be set to
"application/x-www-form-urlencoded" which will result in way smaller
HTTP bodies when sending very large forms, but this enctype
can't be used in the presence of file-uploads, thus this change.
This commit is the merged commit of all these changes.
* Rewrite html.begin_form -> html.form_context
* bi._config
* cmk.gui.dashboard
* cmk.gui.backup
* cmk.gui.werks
* cmk.gui.view_renderer
* cmk.gui.prediction
* cmk.gui.message
* cmk.gui.login
* cmk.gui.key_mgmt
* cmk.gui.page_menu
* cmk.gui.painter_options
* cmk.gui.wato.pages.user_profile
* cmk.gui.wato.pages.tags
* cmk.gui.wato.pages.users
* cmk.gui.wato.pages.user_profile.two_factor
* cmk.gui.wato
* cmk.gui.cce._modes
* cmk.gui.cee
* cmk.gui.graphing.cee
* cmk.gui.utils.confirm_with_preview
* cmk.gui.visuals
* cmk.gui.views
* cmk.gui.custom_icons
* cmk.gui.crash_reporting
* cmk.gui.sidebar
* cmk.gui.cme.wato
* cmk.gui.utils
* cmk.gui.mobile.pages
* cmk.gui.cee.mkp_manager
* cmk.gui.mkeventd (1/2)
* cmk.gui.mkeventd (2/2)
* cmk.gui.pagetypes (1/2)
* cmk.gui.pagetypes (2/2)
* cmk.gui.wato.pages
* cmk.gui.table
Change-Id: I2ae2ea4abe47dd5aa0a96e7df72e2a0e0902fd9c