Bug 55634 - Error when creating new M23 app version in Provider Portal
Error when creating new M23 app version in Provider Portal
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center - Self Service
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3
Assigned To: Christian Castens
Florian Best
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-02-01 11:13 CET by Christian Castens
Modified: 2023-02-13 11:41 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
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 Christian Castens univentionstaff 2023-02-01 11:13:08 CET
The following error occurs when trying to create a new app version for the M23 app in the provider portal.

Internal server error during "appcenter-selfservice/copy".
Request: appcenter-selfservice/copy

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 347, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 250, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 184, in _response
    return function(self, request)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 324, in _response
    result = _multi_response(self, request)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 184, in _response
    return function(self, request)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 446, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 292, in _fake_func
    yield function(self, *args)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/appcenter-selfservice/__init__.py", line 476, in copy
    new_app = self._run_appcenter_action('selfservice-copy', app=app, new_app=[None, new_app_version, new_ucs_version, None], new_component=new_component)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/appcenter-selfservice/__init__.py", line 335, in _run_appcenter_action
    return action.call(**kwargs)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 189, in call
    return obj.call_with_namespace(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 196, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/selfservice.py", line 297, in main
    populate._generate_repo_index_files(repo_dir)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/local_appcenter.py", line 650, in _generate_repo_index_files
    for line in stdout.decode('utf-8').splitlines():
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 5988: invalid start byte
Comment 2 Christian Castens univentionstaff 2023-02-06 11:35:35 CET
Package: univention-appcenter
Branch: ucs_5.0-0
Scope: errata5.0-3
merge request: https://git.knut.univention.de/univention/ucs/-/merge_requests/640
commit: a132ca8d10b846c6b16898c41e31d8d05c0a9078

With this fix Debian packages that contain non UTF-8 byte sequences do not crash the Provider Portal anymore when creating new versions of apps.
Comment 3 Florian Best univentionstaff 2023-02-06 11:40:24 CET
OK: local appcenter now copies debian package files in binary mode
OK: changelog entry
Comment 4 Florian Best univentionstaff 2023-02-13 11:41:26 CET
UCS 5.0-3 has been released.

https://docs.software-univention.de/release-notes/5.0-3/en/

If this error occurs again, please clone this bug.