{"action":"closed","issue":{"url":"https://api.github.com/repos/werner2101/python-osm/issues/16","labels_url":"https://api.github.com/repos/werner2101/python-osm/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/werner2101/python-osm/issues/16/comments","events_url":"https://api.github.com/repos/werner2101/python-osm/issues/16/events","html_url":"https://github.com/werner2101/python-osm/issues/16","id":53953294,"number":16,"title":"osm/osmdb.py crashed in .bz2 mode on low node ids","user":{"login":"werner2101","id":129459,"avatar_url":"https://avatars.githubusercontent.com/u/129459?v=3","gravatar_id":"","url":"https://api.github.com/users/werner2101","html_url":"https://github.com/werner2101","followers_url":"https://api.github.com/users/werner2101/followers","following_url":"https://api.github.com/users/werner2101/following{/other_user}","gists_url":"https://api.github.com/users/werner2101/gists{/gist_id}","starred_url":"https://api.github.com/users/werner2101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/werner2101/subscriptions","organizations_url":"https://api.github.com/users/werner2101/orgs","repos_url":"https://api.github.com/users/werner2101/repos","events_url":"https://api.github.com/users/werner2101/events{/privacy}","received_events_url":"https://api.github.com/users/werner2101/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-10T10:04:08Z","updated_at":"2015-01-11T08:53:02Z","closed_at":"2015-01-11T08:53:02Z","body":"if the node id is lower than the first node in the data file, then server throughs an error:\r\n\r\n<pre>\r\n127.0.0.1 - - [10/Jan/2015 10:46:13] \"GET /nodes?nodes=324883 HTTP/1.1\" 200 -                                    \r\n/nodes?nodes=324882                                                                                              \r\n----------------------------------------                                                                         \r\nException happened during processing of request from ('127.0.0.1', 49875)                                        \r\nTraceback (most recent call last):                                                                               \r\n  File \"/usr/lib64/python2.7/SocketServer.py\", line 295, in _handle_request_noblock                              \r\n    self.process_request(request, client_address)                                                                \r\n  File \"/usr/lib64/python2.7/SocketServer.py\", line 321, in process_request                                      \r\n    self.finish_request(request, client_address)                                                                 \r\n  File \"/usr/lib64/python2.7/SocketServer.py\", line 334, in finish_request                                       \r\n    self.RequestHandlerClass(request, client_address, self)                                                      \r\n  File \"/usr/lib64/python2.7/SocketServer.py\", line 651, in __init__                                             \r\n    self.handle()                                                                                                \r\n  File \"/usr/lib64/python2.7/BaseHTTPServer.py\", line 340, in handle                                             \r\n    self.handle_one_request()                                                                                    \r\n  File \"/usr/lib64/python2.7/BaseHTTPServer.py\", line 328, in handle_one_request                                 \r\n    method()                                                                                                     \r\n  File \"src/python-osm/src/osm/osmdb.py\", line 647, in do_GET\r\n    data = osm.get_objects('node', nodes)\r\n  File \"src/python-osm/src/osm/osmdb.py\", line 587, in get_objects\r\n    blk = self._get_block(objtype, objid)\r\n  File \"src/python-osm/src/osm/osmdb.py\", line 153, in _get_block\r\n    blk = self._index[blocknr]\r\nTypeError: list indices must be integers, not NoneType\r\n</pre>\r\n\r\nOther tests:\r\n\r\nIf the node id is larger than the largest id in the file, it does not respond (endless loop).\r\n\r\nIf the way id is lower than the lowest id in the file, server is i.O.\r\n\r\nIf the way id is larger than the largest id in the file, it does not respond (endless loop).\r\n\r\nIf the relation id is lower than the lowest id in the file, server is i.O.\r\n\r\nIf the relation id is larger than the largest id in the file, it does not respond (endless loop).\r\n\r\n\r\n\r\n"}}