{"action":"closed","issue":{"url":"https://api.github.com/repos/jmbredal/NAV/issues/258","repository_url":"https://api.github.com/repos/jmbredal/NAV","labels_url":"https://api.github.com/repos/jmbredal/NAV/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/jmbredal/NAV/issues/258/comments","events_url":"https://api.github.com/repos/jmbredal/NAV/issues/258/events","html_url":"https://github.com/jmbredal/NAV/issues/258","id":201250491,"number":258,"title":"SeedDB will readily accept serial numbers with trailing spaces","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":[{"id":520099359,"url":"https://api.github.com/repos/jmbredal/NAV/labels/Fix%20Released","name":"Fix Released","color":"ddffdd","default":false},{"id":520099389,"url":"https://api.github.com/repos/jmbredal/NAV/labels/High","name":"High","color":"ffdddd","default":false},{"id":520099965,"url":"https://api.github.com/repos/jmbredal/NAV/labels/seeddb","name":"seeddb","color":"ededed","default":false},{"id":520101128,"url":"https://api.github.com/repos/jmbredal/NAV/labels/serial","name":"serial","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jmbredal/NAV/milestones/69","html_url":"https://github.com/jmbredal/NAV/milestone/69","labels_url":"https://api.github.com/repos/jmbredal/NAV/milestones/69/labels","id":2257548,"number":69,"title":"3.15.7","description":null,"creator":{"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},"open_issues":0,"closed_issues":1,"state":"closed","created_at":"2017-01-17T11:05:28Z","updated_at":"2017-01-17T15:51:11Z","due_on":"2014-03-26T07:00:00Z","closed_at":"2017-01-17T11:05:28Z"},"comments":1,"created_at":"2017-01-17T11:21:55Z","updated_at":"2017-01-17T15:51:11Z","closed_at":"2017-01-17T15:51:11Z","body":"It seems some devices will report serial numbers with trailing spaces. SeedDB (up to NAV 3.15.6) is willing to accept these as significant and will use the for comparison and storage in the database.\n\nThis will in effect mean that there can be \"duplicate\" serial numbers in the database - one without trailing spaces, as collected by ipdevinfo, and one with trailling spaces, as collected by SeedDB.\n\nThis caused an error situation on an installation when a device's IP address had changed. NAV reported it as down. Changing the IP address in SeedDB also collected a serial number with a trailling space, leading to a new device being registered and associated with the IP device. This, in turn, prevented eventengine from correlating the following boxUp event, sent by pping, with the existing boxDown alert for that IP device, because the device numbers had changed behind its back."}}
{"actor":{"display_login":"jmbredal"}}