{"action":"created","issue":{"url":"https://api.github.com/repos/awesto/django-shop/issues/311","repository_url":"https://api.github.com/repos/awesto/django-shop","labels_url":"https://api.github.com/repos/awesto/django-shop/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/awesto/django-shop/issues/311/comments","events_url":"https://api.github.com/repos/awesto/django-shop/issues/311/events","html_url":"https://github.com/awesto/django-shop/issues/311","id":138006056,"number":311,"title":"Session key encoding and decoding","user":{"login":"rfleschenberg","id":4319330,"avatar_url":"https://avatars.githubusercontent.com/u/4319330?v=3","gravatar_id":"","url":"https://api.github.com/users/rfleschenberg","html_url":"https://github.com/rfleschenberg","followers_url":"https://api.github.com/users/rfleschenberg/followers","following_url":"https://api.github.com/users/rfleschenberg/following{/other_user}","gists_url":"https://api.github.com/users/rfleschenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rfleschenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfleschenberg/subscriptions","organizations_url":"https://api.github.com/users/rfleschenberg/orgs","repos_url":"https://api.github.com/users/rfleschenberg/repos","events_url":"https://api.github.com/users/rfleschenberg/events{/privacy}","received_events_url":"https://api.github.com/users/rfleschenberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/awesto/django-shop/labels/bug","name":"bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T22:03:15Z","updated_at":"2016-03-02T23:59:13Z","closed_at":null,"body":"I think we have a bug in the session key encoding / decoding (`CustomerManager.encode_session_key` and friends). I don't fully understand the issue yet, but there seems to be some indeterministic behaviour here, judging from the build failures on Travis. We should take a close look at these functions. The problem may be related to leading zeros in the username, maybe -- but I am not sure yet."},"comment":{"url":"https://api.github.com/repos/awesto/django-shop/issues/comments/191501050","html_url":"https://github.com/awesto/django-shop/issues/311#issuecomment-191501050","issue_url":"https://api.github.com/repos/awesto/django-shop/issues/311","id":191501050,"user":{"login":"rfleschenberg","id":4319330,"avatar_url":"https://avatars.githubusercontent.com/u/4319330?v=3","gravatar_id":"","url":"https://api.github.com/users/rfleschenberg","html_url":"https://github.com/rfleschenberg","followers_url":"https://api.github.com/users/rfleschenberg/followers","following_url":"https://api.github.com/users/rfleschenberg/following{/other_user}","gists_url":"https://api.github.com/users/rfleschenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rfleschenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfleschenberg/subscriptions","organizations_url":"https://api.github.com/users/rfleschenberg/orgs","repos_url":"https://api.github.com/users/rfleschenberg/repos","events_url":"https://api.github.com/users/rfleschenberg/events{/privacy}","received_events_url":"https://api.github.com/users/rfleschenberg/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T23:59:13Z","updated_at":"2016-03-02T23:59:13Z","body":"@jrief found the bug:\r\n\r\n```\r\n>>> int('123456789abcdef'[:32], 36)                                                                        \r\n6496866212201143579095L\r\n>>> int('0123456789abcdef'[:32], 36)                                                                       \r\n6496866212201143579095L\r\n>>> int('00000123456789abcdef'[:32], 36)                                                                   \r\n6496866212201143579095L\r\n>>> \r\n```"}}