Bug 51521 - cherrypy changes in debian buster
cherrypy changes in debian buster
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Sebastian Lobinger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-18 08:50 CEST by Florian Best
Modified: 2021-05-25 16:02 CEST (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-06-18 08:50:14 CEST
The following exception occurred during error handling. cherrypy then prints a HTML page with that traceback:

Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-web-server", line 1030, in sso
    self._auth_request(req, user.sessionid)
  File "/usr/sbin/univention-management-console-web-server", line 1080, in _auth_request
    response = self.make_queue_request(sessionid, req)
  File "/usr/sbin/univention-management-console-web-server", line 854, in make_queue_request
    raise UMC_HTTPError(response.status, response.message, response.result, response.error)
UMC_HTTPError: (401, 'Authentisierung ist fehlgeschlagen. Bitte melden Sie sich erneut an.')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python3/dist-packages/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 1037, in sso
    'The SAML authentication failed. This might be a temporary problem. Please login again.\n'
UMC_HTTPError: (500, 'The SAML authentication failed. This might be a temporary problem. Please login again.\nFurther information can be found in the following logfiles:\n* /var/log/univention/management-console-web-server.log\n* /var/log/univention/management-console-server.log\n')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cherrypy/_cprequest.py", line 678, in respond
    inst.set_response()
  File "/usr/sbin/univention-management-console-web-server", line 505, in set_response
    content = default_error_page(self.status, self._message, traceback, None, self.body)
  File "/usr/sbin/univention-management-console-web-server", line 107, in _decorated
    return func(*args, **kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 449, in default_error_page
    return default_error_page_html(status, message, traceback, version, result)
  File "/usr/sbin/univention-management-console-web-server", line 461, in default_error_page_html
    content = fd.read().replace('%ERROR%', json.dumps(cherrypy._cperror._escape(content, True)))
AttributeError: module 'cherrypy._cperror' has no attribute '_escape'
Comment 1 Florian Best univentionstaff 2020-06-29 14:59:15 CEST
The apache rules should ignore /js/ but this seems not the case anymore?!:

27.06.20 22:44:05.984  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python3/dist-packages/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cherrypy/_cperror.py", line 415, in __call__
    raise self
cherrypy._cperror.NotFound: (404, "The path '/js/dijit/themes/umc/icons/scalable/apps-testapp_htntdqqnyl.svg' was not found.")
Comment 2 Florian Best univentionstaff 2020-07-06 13:27:27 CEST
Fixed in:

univention-management-console (12.0.0-5)
| Bug #51521: fix cherrypy incompatibility

(In reply to Florian Best from comment #1)
This is Bug #51604.
Comment 3 Sebastian Lobinger univentionstaff 2021-03-11 15:45:33 CET
verified:
- /usr/sbin/univention-management-console-web-server is running with python3
- changelog entry in UMC debian package exists
Comment 4 Florian Best univentionstaff 2021-05-25 16:02:46 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".