{"action":"created","issue":{"url":"https://api.github.com/repos/dotse/zonemaster-backend/issues/166","repository_url":"https://api.github.com/repos/dotse/zonemaster-backend","labels_url":"https://api.github.com/repos/dotse/zonemaster-backend/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/dotse/zonemaster-backend/issues/166/comments","events_url":"https://api.github.com/repos/dotse/zonemaster-backend/issues/166/events","html_url":"https://github.com/dotse/zonemaster-backend/issues/166","id":155207730,"number":166,"title":"Use of uninitialized value in DB.pm","user":{"login":"matsduf","id":5430733,"avatar_url":"https://avatars.githubusercontent.com/u/5430733?v=3","gravatar_id":"","url":"https://api.github.com/users/matsduf","html_url":"https://github.com/matsduf","followers_url":"https://api.github.com/users/matsduf/followers","following_url":"https://api.github.com/users/matsduf/following{/other_user}","gists_url":"https://api.github.com/users/matsduf/gists{/gist_id}","starred_url":"https://api.github.com/users/matsduf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matsduf/subscriptions","organizations_url":"https://api.github.com/users/matsduf/orgs","repos_url":"https://api.github.com/users/matsduf/repos","events_url":"https://api.github.com/users/matsduf/events{/privacy}","received_events_url":"https://api.github.com/users/matsduf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-17T08:54:36Z","updated_at":"2016-05-17T16:10:32Z","closed_at":null,"body":"The backend logs multiple entries of\r\n\r\nUse of uninitialized value $test_id in numeric eq (==) at /usr/local/share/perl/5.18.2/Zonemaster/WebBackend/DB.pm line 41.\r\nUse of uninitialized value $test_id in numeric le (<=) at /usr/local/share/perl/5.18.2/Zonemaster/WebBackend/DB.pm line 45.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotse/zonemaster-backend/issues/comments/219768684","html_url":"https://github.com/dotse/zonemaster-backend/issues/166#issuecomment-219768684","issue_url":"https://api.github.com/repos/dotse/zonemaster-backend/issues/166","id":219768684,"user":{"login":"mtoma","id":5492426,"avatar_url":"https://avatars.githubusercontent.com/u/5492426?v=3","gravatar_id":"","url":"https://api.github.com/users/mtoma","html_url":"https://github.com/mtoma","followers_url":"https://api.github.com/users/mtoma/followers","following_url":"https://api.github.com/users/mtoma/following{/other_user}","gists_url":"https://api.github.com/users/mtoma/gists{/gist_id}","starred_url":"https://api.github.com/users/mtoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtoma/subscriptions","organizations_url":"https://api.github.com/users/mtoma/orgs","repos_url":"https://api.github.com/users/mtoma/repos","events_url":"https://api.github.com/users/mtoma/events{/privacy}","received_events_url":"https://api.github.com/users/mtoma/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T16:10:32Z","updated_at":"2016-05-17T16:10:32Z","body":"Hmmm... Maybe it comes from the comparison to the\nforce_hash_id_use_in_API_starting_from_id=41359\nparameter of the backend_config.ini file.\n\nDid you set some value for this parameter in the backend_config.ini file?\n\n----- Original Message -----\nFrom: \"matsduf\" <notifications@github.com>\nTo: \"dotse/zonemaster-backend\" <zonemaster-backend@noreply.github.com>\nCc: \"Michal TOMA\" <michal.toma@afnic.fr>, \"Comment\" <comment@noreply.github.com>\nSent: Tuesday, May 17, 2016 5:17:05 PM\nSubject: Re: [dotse/zonemaster-backend] Use of uninitialized value in DB.pm (#166)\n\nNo, I am sorry I cannot connect the log entry to some activity. Can I increase information in logging? I do not know from where the query came and what time. As I understand it, $test_id is the \"id\" in the get_test_result.\n\nWhen sent a get_test_result with the \"id\" truncated (removed last digit), then I got the following reply and log entry:\n\n$ curl -H \"Content-Type: application/json\" -d '{\"jsonrpc\":\"2.0\",\"method\":\"get_test_results\",\"id\": \"2016:0000061\",\"params\":{\"language\":\"sv_SE.UTF-8\",\"id\":\"9c751de8477b35d\"}}' http://localhost:5000/ ; echo\n{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32603,\"message\":\"Querying test results with the [id] field is dissallowed by the current configuration values at /usr/local/share/perl/5.18.2/Zonemaster/WebBackend/DB.pm line 49.\\n\"},\"id\":\"2016:0000061\"}\n\nArgument \"9c751de8477b35d\" isn't numeric in numeric le (<=) at /usr/local/share/perl/5.18.2/Zonemaster/WebBackend/DB.pm line 45.\n\nWhen I sent an empty \"id\" I got the following:\n\n$ curl -H \"Content-Type: application/json\" -d '{\"jsonrpc\":\"2.0\",\"method\":\"get_test_results\",\"id\": \"2016:0000061\",\"params\":{\"language\":\"sv_SE.UTF-8\",\"id\":\"\"}}' http://localhost:5000/ ; echo\n{\"jsonrpc\":\"2.0\",\"id\":\"2016:0000061\",\"error\":{\"code\":-32603,\"message\":\"malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before \\\"(end of string)\\\") at /usr/local/share/perl/5.18.2/Zonemaster/WebBackend/DB/MySQL.pm line 199.\\n\"}}\n\nArgument \"\" isn't numeric in numeric le (<=) at /usr/local/share/perl/5.18.2/Zonemaster/WebBackend/DB.pm line 45.\n\n\n\n---\nYou are receiving this because you commented.\nReply to this email directly or view it on GitHub:\nhttps://github.com/dotse/zonemaster-backend/issues/166#issuecomment-219750920\n"}}