{"action":"opened","issue":{"url":"https://api.github.com/repos/jmbredal/test-lp2gh/issues/102","repository_url":"https://api.github.com/repos/jmbredal/test-lp2gh","labels_url":"https://api.github.com/repos/jmbredal/test-lp2gh/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/jmbredal/test-lp2gh/issues/102/comments","events_url":"https://api.github.com/repos/jmbredal/test-lp2gh/issues/102/events","html_url":"https://github.com/jmbredal/test-lp2gh/issues/102","id":194033618,"number":102,"title":"Web login fails under Python >= 2.5","user":{"login":"jmbredal","id":2187858,"avatar_url":"https://avatars.githubusercontent.com/u/2187858?v=3","gravatar_id":"","url":"https://api.github.com/users/jmbredal","html_url":"https://github.com/jmbredal","followers_url":"https://api.github.com/users/jmbredal/followers","following_url":"https://api.github.com/users/jmbredal/following{/other_user}","gists_url":"https://api.github.com/users/jmbredal/gists{/gist_id}","starred_url":"https://api.github.com/users/jmbredal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmbredal/subscriptions","organizations_url":"https://api.github.com/users/jmbredal/orgs","repos_url":"https://api.github.com/users/jmbredal/repos","events_url":"https://api.github.com/users/jmbredal/events{/privacy}","received_events_url":"https://api.github.com/users/jmbredal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T12:11:57Z","updated_at":"2016-12-07T12:11:57Z","closed_at":null,"body":"NAV 3.5.3 introduces a regression, causing web logins to fail with a traceback when running under Python 2.5 or newer.\n\nA patch was introduced to the nav.pwhash module to make it compatible with Python 2.6, where the hashlib module replaces the md5 and sha1 modules.  Importing the latter will raise DeprecationWarnings.\n\nThe patch imports hashlib in a manner that is incompatible with the md5 and sha1 usage in the rest of the module.\n\nThis traceback was reported by Pau on the nav-users mailing list:\n\nDocumentRoot:   '/usr/local/nav/apache/webroot'\n\nURI:            '/index/login'\nLocation:       None\nDirectory:      '/usr/local/nav/apache/webroot/'\nFilename:       '/usr/local/nav/apache/webroot/index.py'\nPathInfo:       '/login'\n\nPhase:          'PythonHandler'\nHandler:        'mod_python.publisher'\n\nTraceback (most recent call last):\n\n  File \"/usr/lib/python2.5/site-packages/mod_python/importer.py\", line\n1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)\n\n  File \"/usr/lib/python2.5/site-packages/mod_python/importer.py\", line\n1229, in _process_target\n    result = _execute_target(config, req, object, arg)\n\n  File \"/usr/lib/python2.5/site-packages/mod_python/importer.py\", line\n1128, in _execute_target\n    result = object(arg)\n\n  File \"/usr/lib/python2.5/site-packages/mod_python/publisher.py\",\nline 213, in handler\n    published = publish_object(req, object)\n\n  File \"/usr/lib/python2.5/site-packages/mod_python/publisher.py\",\nline 425, in publish_object\n    return publish_object(req,util.apply_fs_data(object, req.form, req=req))\n\n  File \"/usr/lib/python2.5/site-packages/mod_python/util.py\", line\n554, in apply_fs_data\n    return object(**args)\n\n  File \"/usr/local/nav/apache/webroot/index.py\", line 194, in login\n    authenticated = account.authenticate(password)\n\n  File \"/usr/local/nav/lib/python/nav/db/navprofiles.py\", line 119, in\nauthenticate\n    return stored_hash.verify(password)\n\n  File \"/usr/local/nav/lib/python/nav/pwhash.py\", line 116, in verify\n    password=password)\n\n  File \"/usr/local/nav/lib/python/nav/pwhash.py\", line 80, in __init__\n    self.update(password)\n\n  File \"/usr/local/nav/lib/python/nav/pwhash.py\", line 96, in update\n    hasher = known_methods[self.method].new(password + self.salt)\n\n  File \"/usr/lib/python2.5/hashlib.py\", line 98, in __hash_new\n    return __get_builtin_constructor(name)(string)\n\n  File \"/usr/lib/python2.5/hashlib.py\", line 77, in __get_builtin_constructor\n    raise ValueError, \"unsupported hash type\"\n\nValueError: unsupported hash type"}}
{"actor":{"display_login":"jmbredal"}}