Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

DefaultPermissionVerifier in core/authz/authz.py #24

Open
lhmatt opened this issue Oct 1, 2018 · 0 comments
Open

DefaultPermissionVerifier in core/authz/authz.py #24

lhmatt opened this issue Oct 1, 2018 · 0 comments

Comments

@lhmatt
Copy link

lhmatt commented Oct 1, 2018

Line 149:
the_parts = json.loads(assigned.decode('utf-8'))

Running python 3.7, this raise an exception for me. Strings in py3 are automatically unicode, so the .decode('utf-8') call is not valid and raises an attribute exception. Naturally this depends on how you are implementing your datastore though - I'm not using postgres so I don't know if there is something funky going on with strings in the sqlalchemy engine.

I worked around the issue by overriding AccountStoreRealm to init a custom PermissionVerifier. The custom version is identical to the default one except that the .decode('utf-8') call is removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant