Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773619 - sys-cluster/ceph: mgr dashboard login fails with dev-python/pyjwt-2.0.1
Summary: sys-cluster/ceph: mgr dashboard login fails with dev-python/pyjwt-2.0.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-01 18:18 UTC by richy
Modified: 2021-03-02 03:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description richy 2021-03-01 18:18:27 UTC
Login attempt to mgr dashboard fails with
Traceback (most recent call last):\\n  File \\"/usr/lib/python3.7/site-packages/cherrypy/_cprequest.py\\", line 638, in respond\\n    self._do_respond(path_info)\\n  File \\"/usr/lib/python3.7/site-packages/cherrypy/_cprequest.py\\", line 697, in _do_respond\\n    response.body = self.handler()\\n  File \\"/usr/lib/python3.7/site-packages/cherrypy/lib/encoding.py\\", line 219, in __call__\\n    self.body = self.oldhandler(*args, **kwargs)\\n  File \\"/usr/lib/python3.7/site-packages/cherrypy/_cptools.py\\", line 230, in wrap\\n    return self.newhandler(innerfunc, *args, **kwargs)\\n  File \\"/usr/share/ceph/mgr/dashboard/services/exception.py\\", line 94, in dashboard_exception_handler\\n    return handler(*args, **kwargs)\\n  File \\"/usr/lib/python3.7/site-packages/cherrypy/_cpdispatch.py\\", line 54, in __call__\\n    return self.callable(*self.args, **self.kwargs)\\n  File \\"/usr/share/ceph/mgr/dashboard/controllers/__init__.py\\", line 666, in inner\\n    ret = func(*args, **kwargs)\\n  File \\"/usr/share/ceph/mgr/dashboard/controllers/__init__.py\\", line 861, in wrapper\\n    return func(*vpath, **params)\\n  File \\"/usr/share/ceph/mgr/dashboard/controllers/auth.py\\", line 44, in create\\n    token = token.decode(\'utf-8\')\\nAttributeError: \'str\' object has no attribute \'decode\'\\n", "version": "18.6.0"}

After downgrade to dev-python/pyjwt-1.7.1-r1 login works as expected. Tested with sys-cluster/ceph-15.2.9 but i think previous versions are affected too.

Reproducible: Always

Steps to Reproduce:
1. update dev-python/pyjwt to 2.0.1
2. restart mgr service
3. try to login
Actual Results:  
response is 500 internal server error and login is denied

Expected Results:  
login succeeds
Comment 1 Larry the Git Cow gentoo-dev 2021-03-02 03:32:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7341a7506a5f9b5ba5ce0c18daaf1637a387c18f

commit 7341a7506a5f9b5ba5ce0c18daaf1637a387c18f
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2021-03-02 03:29:54 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2021-03-02 03:32:18 +0000

    sys-cluster/ceph: Revbumps, force older pyjwt (bug #773619)
    
    Closes: https://bugs.gentoo.org/773619
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-3.0.16, Repoman-3.0.2
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 sys-cluster/ceph/{ceph-15.2.9.ebuild => ceph-15.2.9-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)