Bug 54081 - setup/apps/query: UnicodeDecodeError: 'utf8' codec can't decode byte 0xba in position 3: invalid start byte
setup/apps/query: UnicodeDecodeError: 'utf8' codec can't decode byte 0xba in...
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other other
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-17 18:06 CET by Maximilian Janßen
Modified: 2021-12-24 02:35 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021102421000287, 2021040221000348, 2021040221000321
Bug group (optional): Error handling
Max CVSS v3 score:


Attachments
where "none" comes from (140.06 KB, image/jpeg)
2021-12-24 02:35 CET, Telirand
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2021-11-17 18:06:22 CET
Version: 4.4-5 errata735 (Blumenthal)

Error: 
Interner Server-Fehler in "setup/apps/query (wizard)".
Request: setup/apps/query (wizard)

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 759, in apps_query
    return util.get_apps(True)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 792, in get_apps
    return [get.to_dict(app) for app in Apps().get_all_apps() if app.is_ucs_component()]
  File "%PY2.7%/univention/appcenter/app_cache.py", line 129, in get_all_apps
    for app in self.get_every_single_app():
  File "%PY2.7%/univention/appcenter/app_cache.py", line 543, in get_every_single_app
    for app in app_cache.get_every_single_app():
  File "%PY2.7%/univention/appcenter/app_cache.py", line 502, in get_every_single_app
    ret.extend(app_cache.get_every_single_app())
  File "%PY2.7%/univention/appcenter/app_cache.py", line 363, in get_every_single_app
    if self._save_cache():
  File "%PY2.7%/univention/appcenter/app_cache.py", line 224, in _save_cache
    dump([app.attrs_dict() for app in self._cache], fd, indent=2)
  File "/usr/lib/python2.7/json/__init__.py", line 189, in dump
    for chunk in iterable:
  File "/usr/lib/python2.7/json/encoder.py", line 431, in _iterencode
    for chunk in _iterencode_list(o, _current_indent_level):
  File "/usr/lib/python2.7/json/encoder.py", line 332, in _iterencode_list
    for chunk in chunks:
  File "/usr/lib/python2.7/json/encoder.py", line 390, in _iterencode_dict
    yield _encoder(value)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xba in position 3: invalid start byte
Comment 1 Maximilian Janßen univentionstaff 2021-11-26 12:04:09 CET
reported again:

Version: 4.4-3 errata443 (Blumenthal)
[..]
UnicodeDecodeError: 'utf8' codec can't decode byte 0xab in position 0: invalid start byte

Role: None
Comment 2 Telirand 2021-12-24 02:35:35 CET
Created attachment 10888 [details]
where "none" comes from

I think that on a "default" setup the values are NOT written to the files only displayed

since i adjusted one of the settings during the end of migration, it looks like it forced the writing of the values.