Univention Bugzilla – Bug 56808
Warning: "Attribute status just available for MIME type application/json"
Last modified: 2023-11-08 18:00:17 CET
When watching student computers the following warning gets logged: ``` 08.11.23 05:40:02.442 MODULE ( PROCESS ) : Received request 'computerroom/screenshot': ('Administrator', None, None, 'en_US.UTF-8') 08.11.23 05:40:02.469 PARSER ( WARN ) : Attribute status just available for MIME type application/json ``` Log file: /var/log/univention/management-console-module-computerroom.log Problem: https://git.knut.univention.de/univention/ucs/-/blob/5.0-5/management/univention-management-console/src/univention/management/console/base.py?ref_type=heads#L471 `res.status` should only be set if the mimetype is `_MIMETYPE_JSON`. Alternatively we might want to discuss if the status attribute should be handled more generic as an http status outside/additionally to the json key. Similar to header and cookie: https://git.knut.univention.de/univention/ucs/-/blob/5.0-5/management/univention-management-console/src/univention/management/console/message.py?ref_type=heads#L95 Note: If you want to test this using the computerroom you can use this jenkins job to get a test environment: https://jenkins2022.knut.univention.de/job/UCSschool-5.0/view/Environments/job/CreateVeyonEnvironmentKVM/
(In reply to Jürn Brodersen from comment #0) > Alternatively we might want to discuss if the status attribute should be > handled more generic as an http status outside/additionally to the json key. > Similar to header and cookie: yes, since we dropped UMCP this is possible now. Let's do it.