{"action":"created","issue":{"url":"https://api.github.com/repos/lookout/deploydb/issues/32","labels_url":"https://api.github.com/repos/lookout/deploydb/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/lookout/deploydb/issues/32/comments","events_url":"https://api.github.com/repos/lookout/deploydb/issues/32/events","html_url":"https://github.com/lookout/deploydb/issues/32","id":56878254,"number":32,"title":"Fix the request artifact with support for pageNumber=0 and pageSize=0","user":{"login":"GiriDandu","id":4194632,"avatar_url":"https://avatars.githubusercontent.com/u/4194632?v=3","gravatar_id":"","url":"https://api.github.com/users/GiriDandu","html_url":"https://github.com/GiriDandu","followers_url":"https://api.github.com/users/GiriDandu/followers","following_url":"https://api.github.com/users/GiriDandu/following{/other_user}","gists_url":"https://api.github.com/users/GiriDandu/gists{/gist_id}","starred_url":"https://api.github.com/users/GiriDandu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiriDandu/subscriptions","organizations_url":"https://api.github.com/users/GiriDandu/orgs","repos_url":"https://api.github.com/users/GiriDandu/repos","events_url":"https://api.github.com/users/GiriDandu/events{/privacy}","received_events_url":"https://api.github.com/users/GiriDandu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lookout/deploydb/labels/api","name":"api","color":"f7c6c7"},{"url":"https://api.github.com/repos/lookout/deploydb/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lookout/deploydb/milestones/2","labels_url":"https://api.github.com/repos/lookout/deploydb/milestones/2/labels","id":967182,"number":2,"title":"0.2.0 - The next one","description":"","creator":{"login":"rtyler","id":26594,"avatar_url":"https://avatars.githubusercontent.com/u/26594?v=3","gravatar_id":"","url":"https://api.github.com/users/rtyler","html_url":"https://github.com/rtyler","followers_url":"https://api.github.com/users/rtyler/followers","following_url":"https://api.github.com/users/rtyler/following{/other_user}","gists_url":"https://api.github.com/users/rtyler/gists{/gist_id}","starred_url":"https://api.github.com/users/rtyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtyler/subscriptions","organizations_url":"https://api.github.com/users/rtyler/orgs","repos_url":"https://api.github.com/users/rtyler/repos","events_url":"https://api.github.com/users/rtyler/events{/privacy}","received_events_url":"https://api.github.com/users/rtyler/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2015-02-05T14:48:15Z","updated_at":"2015-02-06T22:40:24Z","due_on":"2015-03-14T07:00:00Z","closed_at":null},"comments":6,"created_at":"2015-02-06T22:40:17Z","updated_at":"2015-02-09T15:40:56Z","closed_at":null,"body":"This test case is failing because hibernate has a bug in the setMaxResult(0) returning all the records instead of single record. See this: https://hibernate.atlassian.net/browse/HHH-8989\r\n\r\n\r\n\r\n```\r\n Given there are artifacts                                                                                  # ArtifactSteps.groovy:15\r\n    When I GET \"/api/v1/artifacts/by-module/com.example.cucumber:cucumber-artifact?pageNumber=0&perPageSize=0\" # HttpSteps.groovy:16\r\n    Then the response should be 200                                                                            # HttpSteps.groovy:33\r\n    And the body should be JSON:                                                                               # HttpSteps.groovy:41\r\n      \"\"\"\r\n        [{\r\n          \"id\" : 2,\r\n          \"createdAt\" : \"{{created_timestamp}}\",\r\n          \"group\" : \"com.example.cucumber\",\r\n          \"name\" : \"cucumber-artifact\",\r\n          \"version\" : \"1.0.2\",\r\n          \"sourceUrl\" : \"http://example.com/maven/com.example.cucumber/cucumber-artifact/1.0.2/cucumber-artifact-1.0.2.jar\"\r\n        }]\r\n      \"\"\"\r\n      Assertion failed: \r\n      \r\n      assert bodyNode == expectedNode\r\n             |        |  |\r\n             |        |  [{\"id\":2,\"createdAt\":\"2015-02-06T22:27:26.977Z\",\"group\":\"com.example.cucumber\",\"name\":\"cucumber-artifact\",\"version\":\"1.0.2\",\"sourceUrl\":\"http://example.com/maven/com.example.cucumber/cucumber-artifact/1.0.2/cucumber-artifact-1.0.2.jar\"}]\r\n             |        false\r\n             [{\"id\":1,\"createdAt\":\"2015-02-06T22:27:26.977Z\",\"group\":\"com.example.cucumber\",\"name\":\"cucumber-artifact\",\"version\":\"1.0.1\",\"sourceUrl\":\"http://example.com/maven/com.example.cucumber/cucumber-artifact/1.0.1/cucumber-artifact-1.0.1.jar\"},{\"id\":2,\"createdAt\":\"2015-02-06T22:27:26.977Z\",\"group\":\"com.example.cucumber\",\"name\":\"cucumber-artifact\",\"version\":\"1.0.2\",\"sourceUrl\":\"http://example.com/maven/com.example.cucumber/cucumber-artifact/1.0.2/cucumber-artifact-1.0.2.jar\"}]\r\n ````"},"comment":{"url":"https://api.github.com/repos/lookout/deploydb/issues/comments/73529737","html_url":"https://github.com/lookout/deploydb/issues/32#issuecomment-73529737","issue_url":"https://api.github.com/repos/lookout/deploydb/issues/32","id":73529737,"user":{"login":"GiriDandu","id":4194632,"avatar_url":"https://avatars.githubusercontent.com/u/4194632?v=3","gravatar_id":"","url":"https://api.github.com/users/GiriDandu","html_url":"https://github.com/GiriDandu","followers_url":"https://api.github.com/users/GiriDandu/followers","following_url":"https://api.github.com/users/GiriDandu/following{/other_user}","gists_url":"https://api.github.com/users/GiriDandu/gists{/gist_id}","starred_url":"https://api.github.com/users/GiriDandu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiriDandu/subscriptions","organizations_url":"https://api.github.com/users/GiriDandu/orgs","repos_url":"https://api.github.com/users/GiriDandu/repos","events_url":"https://api.github.com/users/GiriDandu/events{/privacy}","received_events_url":"https://api.github.com/users/GiriDandu/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T15:40:56Z","updated_at":"2015-02-09T15:40:56Z","body":"Ok, I will leave the issue open. So the conclusion is to return empty data set for pageNumber=0 and pageSize=0 to prevent application server from handling large data sets and exhausting memory"}}