Bug 56175 - appcenter/query: read_ini_file: UnicodeDecodeError
appcenter/query: read_ini_file: UnicodeDecodeError
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-20 15:28 CEST by Maximilian Janßen
Modified: 2023-06-20 15:28 CEST (History)
0 users

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?: 1: Will affect a very 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.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023050921000393
Bug group (optional): External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2023-06-20 15:28:00 CEST
Version: 5.0-3 errata660

Remark: Es gibt wohl einen neuen Update im appCenter. Beim Aufruf des App Centers kommt es zu dieser  Fehlermeldung.

Error:
Interner Server-Fehler in "appcenter/query".
Request: appcenter/query

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 351, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/protocol/modserver.py", line 209, in _recv
    self.handle(msg)
  File "%PY3%/univention/management/console/protocol/modserver.py", line 278, in handle
    six.reraise(self.__init_etype, self.__init_exc, self.__init_etraceback)
  File "%PY3%/six.py", line 692, in reraise
    raise value.with_traceback(tb)
  File "%PY3%/univention/management/console/protocol/modserver.py", line 319, in handle
    self.__handler.init()
  File "%PY3%/univention/management/console/modules/appcenter/__init__.py", line 167, in init
    get_action('list').get_apps()
  File "%PY3%/univention/appcenter/actions/list_apps.py", line 86, in get_apps
    apps = Apps().get_all_apps()
  File "%PY3%/univention/appcenter/app_cache.py", line 139, in get_all_apps
    for app in self.get_every_single_app():
  File "%PY3%/univention/appcenter/app_cache.py", line 568, in get_every_single_app
    for app in app_cache.get_every_single_app():
  File "%PY3%/univention/appcenter/app_cache.py", line 525, in get_every_single_app
    ret.extend(app_cache.get_every_single_app())
  File "%PY3%/univention/appcenter/app_cache.py", line 373, in get_every_single_app
    app = self._build_app_from_ini(ini)
  File "%PY3%/univention/appcenter/app_cache.py", line 325, in _build_app_from_ini
    attr.post_creation(app)
  File "%PY3%/univention/appcenter/app.py", line 298, in post_creation
    values = getattr(app, 'get_%s' % self.name)()
  File "%PY3%/univention/appcenter/app.py", line 307, in _get_objects_fn
    app_attributes = self.klass.all_from_file(_self.get_cache_file(name), _self.get_locale())
  File "%PY3%/univention/appcenter/ini_parser.py", line 197, in all_from_file
    parser = read_ini_file(fname)
  File "%PY3%/univention/appcenter/ini_parser.py", line 77, in read_ini_file
    parser.readfp(f)
  File "/usr/lib/python3.7/configparser.py", line 762, in readfp
    self.read_file(fp, source=filename)
  File "/usr/lib/python3.7/configparser.py", line 717, in read_file
    self._read(f, source)
  File "/usr/lib/python3.7/configparser.py", line 1014, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/usr/lib/python3.7/codecs.py", line 714, in __next__
    return next(self.reader)
  File "/usr/lib/python3.7/codecs.py", line 645, in __next__
    line = self.readline()
  File "/usr/lib/python3.7/codecs.py", line 558, in readline
    data = self.read(readsize, firstline=True)
  File "/usr/lib/python3.7/codecs.py", line 504, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 48: invalid continuation byte

Role: domaincontroller_master