[BUG] Saving a Report crashes when Umlaut in Report Title and Debug Options are on [CMK 1.6 p12 CEE]

Hi there,

it seems there is an issue with umlauts ä,ö,ü and maybe some other special characters in the Report Title when some Global Debug Options are turned on.

Steps to reproduce:
Turn the following Global Settings on:
Debugging of Check_MK helpers…Debug mode: on
Enable core dumps…On
Unser Interface Debug mode…on
Debug Livestatus queries…on

Create Report with some Umlauts in the Title, for example: “IT-Services Verfügbarkeit”
Check a Default time Range to a random value
Save
Edit this created report and try changing default time range to another value.
Error occours

When turning off the Debug options the editing of the report works again.

Kind regards,
Constantin

Crash Report
Exception
UnicodeDecodeError (‘ascii’ codec can’t decode byte 0xc3 in position 16: ordinal not in range(128))
Traceback
File “/omd/sites/sitename/share/check_mk/web/app/index.wsgi”, line 101, in _process_request
self._handle_request()
File “/omd/sites/sitename/share/check_mk/web/app/index.wsgi”, line 218, in _handle_request
handler()
File “/omd/sites/sitename/lib/python/cmk/gui/pages.py”, line 152, in
return lambda: handle_class().handle_page()
File “/omd/sites/sitename/lib/python/cmk/gui/pages.py”, line 46, in handle_page
self.page()
File “/omd/sites/sitename/lib/python/cmk/gui/pages.py”, line 128, in
“page”: lambda self: self.wrapped_callable0
File “/omd/sites/sitename/lib/python/cmk/gui/cee/reporting.py”, line 683, in page_edit_report
(
(“Generate”), “report”, “pdf”),
File “/omd/sites/sitename/lib/python/cmk/gui/visuals.py”, line 815, in page_edit_visual
html.header(title)
File “/omd/sites/sitename/lib/python/cmk/gui/htmllib.py”, line 1718, in header
self.top_heading(title)
File “/omd/sites/sitename/lib/python/cmk/gui/htmllib.py”, line 1748, in top_heading
self.top_heading_right()
File “/omd/sites/sitename/lib/python/cmk/gui/htmllib.py”, line 1783, in top_heading_right
self.dump_get_vars()
File “/omd/sites/sitename/lib/python/cmk/gui/htmllib.py”, line 2845, in dump_get_vars
self.debug_vars(hide_with_mouse=False)
File “/omd/sites/sitename/lib/python/cmk/gui/htmllib.py”, line 2857, in debug_vars
self.tr(self.render_td(name, class
=“left”) + self.render_td(value, class
=“right”))
File “/omd/sites/sitename/lib/python/cmk/gui/htmllib.py”, line 601, in
self._render_content_tag(tag_name, content, **attrs))
File “/omd/sites/sitename/lib/python/cmk/gui/htmllib.py”, line 575, in _render_content_tag
return HTML("%s%s</%s>" % (open_tag, tag_content, tag_name))

Local Variables
{‘attrs’: {‘class_’: ‘right’},
‘open_tag’: HTML(""),
‘self’: <cmk.gui.htmllib.html object at 0x7fa5c31a8850>,
‘tag_content’: ‘IT-Services Verf\xc3\xbcgbarkeit’,
‘tag_name’: ‘td’}

POST / GET VARIABLES
_transid 1593676339/1523200786
back edit_reports.py
context_aggr_active
context_aggr_group_active
context_comment_active
context_downtime_active
context_event_active
context_history_active
context_host_active
context_hostgroup_active
context_invbackplane_active
context_invchassis_active
context_invcontainer_active
context_invdockercontainers_active
context_invdockerimages_active
context_invfan_active
context_invinterface_active
context_invmodule_active
context_invoradataguardstats_active
context_invorainstance_active
context_invorarecoveryarea_active
context_invorasga_active
context_invoratablespace_active
context_invother_active
context_invpsu_active
context_invsensor_active
context_invstack_active
context_invswpac_active
context_invtunnels_active
context_invunknown_active
context_log_active
context_service_active
context_servicegroup_active
filled_in visual
general_p_description Verfuegbarkeit der letzten x Tage
general_p_icon_value report
general_p_linktitle BI Availability
general_p_name bi_availability_30d
general_p_title IT-Services Verfügbarkeit
general_p_topic Global reports
general_p_visibility_p_public_1
general_p_visibility_p_public_sel 0
load_name bi_availability_30d
mode edit
report_p_date_format 5d96d612688001cb030e1f15f0a867bb2e73c37bfcff4bdb47fcb46352c64268
report_p_filename CMK_BI_L30D.pdf
report_p_filename_USE on
report_p_font_family 1797cf8b4a733a9f2cd956b0f167b6c14ac9d48193b8184aa61ecf297b7bb1cb
report_p_font_size 10.00
report_p_graph_layout_p_background_color_1_value #FFFFFF
report_p_graph_layout_p_background_color_use 0
report_p_graph_layout_p_border_width 0.1
report_p_graph_layout_p_canvas_color_1_value #FFFFFF
report_p_graph_layout_p_canvas_color_use 0
report_p_graph_layout_p_color_gradient 20.0
report_p_graph_layout_p_font_size 8.00
report_p_graph_layout_p_foreground_color_1_value #FFFFFF
report_p_graph_layout_p_foreground_color_use 0
report_p_graph_layout_p_show_graph_time on
report_p_graph_layout_p_show_legend on
report_p_graph_layout_p_show_margin on
report_p_graph_layout_p_show_time_axis on
report_p_graph_layout_p_show_title 3cbc87c7681f34db4617feaa2c8801931bc5e42d8d0f560e756dd4cd92885f18
report_p_graph_layout_p_show_vertical_axis on
report_p_graph_layout_p_title_format_1 1
report_p_graph_layout_p_title_format_sel 0
report_p_graph_layout_p_vertical_axis_width_1 40.00
report_p_graph_layout_p_vertical_axis_width_sel 0
report_p_lineheight 1.20
report_p_margins_0 10.0
report_p_margins_1 10.0
report_p_margins_2 10.0
report_p_margins_3 10.0
report_p_pagesize 3
report_p_pagesize_ex_0 210.0
report_p_pagesize_ex_1 297.0
report_p_rangespec_13_days 10
report_p_rangespec_13_hours 0
report_p_rangespec_13_minutes 0
report_p_rangespec_13_seconds 0
report_p_rangespec_14_0_day 2
report_p_rangespec_14_0_month 7
report_p_rangespec_14_0_year 2020
report_p_rangespec_14_1_day 2
report_p_rangespec_14_1_month 7
report_p_rangespec_14_1_year 2020
report_p_rangespec_15_0_day 2
report_p_rangespec_15_0_hour 9
report_p_rangespec_15_0_min 52
report_p_rangespec_15_0_month 7
report_p_rangespec_15_0_sec 19
report_p_rangespec_15_0_year 2020
report_p_rangespec_15_1_day 2
report_p_rangespec_15_1_hour 9
report_p_rangespec_15_1_min 52
report_p_rangespec_15_1_month 7
report_p_rangespec_15_1_sec 19
report_p_rangespec_15_1_year 2020
report_p_rangespec_USE on
report_p_rangespec_sel 13
report_p_table_layout_p_font_size 8.00
report_p_table_layout_p_hrules on
report_p_table_layout_p_padding_0 2.0
report_p_table_layout_p_padding_1 0.5
report_p_table_layout_p_row_shading_p_even_0 94.0
report_p_table_layout_p_row_shading_p_even_1 94.0
report_p_table_layout_p_row_shading_p_even_2 94.0
report_p_table_layout_p_row_shading_p_heading_0 70.0
report_p_table_layout_p_row_shading_p_heading_1 70.0
report_p_table_layout_p_row_shading_p_heading_2 70.0
report_p_table_layout_p_row_shading_p_odd_0 97.0
report_p_table_layout_p_row_shading_p_odd_1 97.0
report_p_table_layout_p_row_shading_p_odd_2 97.0
report_p_table_layout_p_rule_width 0.05
report_p_table_layout_p_show_headings on
report_p_table_layout_p_spacing_0 4.0
report_p_table_layout_p_spacing_1 1.0
report_p_time_format 57da56b37f8f31ff6fa1ae79aa656794297bf4d339e373d977869293327f0745
report_p_use 4332f2ead9dfcb351eb954d36ad88e65589bb92b7efab40c14a39a4097be4ed6
report_p_view_limit 1000
save Save

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.