{"action":"opened","issue":{"url":"https://api.github.com/repos/YosaiProject/yosai/issues/24","repository_url":"https://api.github.com/repos/YosaiProject/yosai","labels_url":"https://api.github.com/repos/YosaiProject/yosai/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/YosaiProject/yosai/issues/24/comments","events_url":"https://api.github.com/repos/YosaiProject/yosai/issues/24/events","html_url":"https://github.com/YosaiProject/yosai/issues/24","id":365329838,"node_id":"MDU6SXNzdWUzNjUzMjk4Mzg=","number":24,"title":"DefaultPermissionVerifier in core/authz/authz.py","user":{"login":"lhmatt","id":9675403,"node_id":"MDQ6VXNlcjk2NzU0MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/9675403?v=4","gravatar_id":"","url":"https://api.github.com/users/lhmatt","html_url":"https://github.com/lhmatt","followers_url":"https://api.github.com/users/lhmatt/followers","following_url":"https://api.github.com/users/lhmatt/following{/other_user}","gists_url":"https://api.github.com/users/lhmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/lhmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhmatt/subscriptions","organizations_url":"https://api.github.com/users/lhmatt/orgs","repos_url":"https://api.github.com/users/lhmatt/repos","events_url":"https://api.github.com/users/lhmatt/events{/privacy}","received_events_url":"https://api.github.com/users/lhmatt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-01T06:53:38Z","updated_at":"2018-10-01T06:53:38Z","closed_at":null,"author_association":"NONE","body":"Line 149:\r\n`the_parts = json.loads(assigned.decode('utf-8'))`\r\n\r\nRunning 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.\r\n\r\nI 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."}}
{"actor":{"display_login":"lhmatt"}}