Bug 53133 - install_permission break appcenter
install_permission break appcenter
Status: CLOSED DUPLICATE of bug 51598
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-22 11:33 CEST by Felix Botner
Modified: 2021-05-25 15:58 CEST (History)
1 user (show)

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 Felix Botner univentionstaff 2021-04-22 11:33:46 CEST
UCS 5.0 appcenter-test
install app wekan via UMC

Traceback (most recent call last):
  File "/usr/lib/python3.7/base64.py", line 510, in _input_type_check
    m = memoryview(s)
TypeError: memoryview: a bytes-like object is required, not 'str'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 344, 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/protocol/modserver.py", line 202, in _recv
    self.handle(msg)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/modserver.py", line 270, in handle
    six.reraise(self.__init_etype, self.__init_exc, self.__init_etraceback)
  File "/usr/lib/python3/dist-packages/six.py", line 692, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/modserver.py", line 311, in handle
    self.__handler.init()
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/appcenter/__init__.py", line 157, in init
    get_action('list').get_apps()
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/list_apps.py", line 102, in get_apps
    install_permissions = app.install_permissions_exist()
  File "/usr/lib/python3/dist-packages/univention/appcenter/app.py", line 1017, in install_permissions_exist
    self._install_permissions_exist = access(image)
  File "/usr/lib/python3/dist-packages/univention/appcenter/docker.py", line 96, in access
    auth = encodestring('%s:%s' % (username, password)).replace('\n', '')
  File "/usr/lib/python3.7/base64.py", line 540, in encodestring
    return encodebytes(s)
  File "/usr/lib/python3.7/base64.py", line 527, in encodebytes
    _input_type_check(s)
  File "/usr/lib/python3.7/base64.py", line 513, in _input_type_check
    raise TypeError(msg) from err
TypeError: expected bytes-like object, not str
Comment 1 Florian Best univentionstaff 2021-04-22 11:52:42 CEST

*** This bug has been marked as a duplicate of bug 51598 ***
Comment 2 Felix Botner univentionstaff 2021-04-23 09:42:56 CEST
ok - duplicate (and works now)
Comment 3 Florian Best univentionstaff 2021-05-25 15:58:40 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".