{"action":"closed","issue":{"url":"https://api.github.com/repos/MPDL/imeji/issues/988","repository_url":"https://api.github.com/repos/MPDL/imeji","labels_url":"https://api.github.com/repos/MPDL/imeji/issues/988/labels{/name}","comments_url":"https://api.github.com/repos/MPDL/imeji/issues/988/comments","events_url":"https://api.github.com/repos/MPDL/imeji/issues/988/events","html_url":"https://github.com/MPDL/imeji/issues/988","id":287187488,"number":988,"title":"REST API: Search for collections returns \"not allowed to read\" error","user":{"login":"ioverka","id":8920469,"avatar_url":"https://avatars1.githubusercontent.com/u/8920469?v=4","gravatar_id":"","url":"https://api.github.com/users/ioverka","html_url":"https://github.com/ioverka","followers_url":"https://api.github.com/users/ioverka/followers","following_url":"https://api.github.com/users/ioverka/following{/other_user}","gists_url":"https://api.github.com/users/ioverka/gists{/gist_id}","starred_url":"https://api.github.com/users/ioverka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioverka/subscriptions","organizations_url":"https://api.github.com/users/ioverka/orgs","repos_url":"https://api.github.com/users/ioverka/repos","events_url":"https://api.github.com/users/ioverka/events{/privacy}","received_events_url":"https://api.github.com/users/ioverka/received_events","type":"User","site_admin":false},"labels":[{"id":155741239,"url":"https://api.github.com/repos/MPDL/imeji/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/MPDL/imeji/milestones/14","html_url":"https://github.com/MPDL/imeji/milestone/14","labels_url":"https://api.github.com/repos/MPDL/imeji/milestones/14/labels","id":2814856,"number":14,"title":"imeji 4.2","description":"","creator":{"login":"bastiensaquet","id":1352249,"avatar_url":"https://avatars0.githubusercontent.com/u/1352249?v=4","gravatar_id":"","url":"https://api.github.com/users/bastiensaquet","html_url":"https://github.com/bastiensaquet","followers_url":"https://api.github.com/users/bastiensaquet/followers","following_url":"https://api.github.com/users/bastiensaquet/following{/other_user}","gists_url":"https://api.github.com/users/bastiensaquet/gists{/gist_id}","starred_url":"https://api.github.com/users/bastiensaquet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastiensaquet/subscriptions","organizations_url":"https://api.github.com/users/bastiensaquet/orgs","repos_url":"https://api.github.com/users/bastiensaquet/repos","events_url":"https://api.github.com/users/bastiensaquet/events{/privacy}","received_events_url":"https://api.github.com/users/bastiensaquet/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":66,"state":"open","created_at":"2017-10-04T15:42:46Z","updated_at":"2018-02-08T23:15:44Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2018-01-09T18:34:44Z","updated_at":"2018-02-08T23:15:44Z","closed_at":"2018-02-08T23:15:44Z","author_association":"OWNER","body":"Testserver: qa imeji\r\nVersion: 4.1.1-SNAPSHOT - build date 2017-12-21 16:46:39\r\nUser: regular user\r\n\r\n**request**:\r\n```\r\nhttp://qa-imeji.mpdl.mpg.de/imeji/rest/collections\r\n<bound method Session.get of <requests.sessions.Session object at 0x00000000023DBDA0>>\r\n{'params': {'q': 'created>2018-01-05', 'size': 100}}\r\n```\r\n\r\n**error**:\r\n```\r\nERROR:pyimeji.api:Unexpected HTTP status code: got HTTP 403, expected HTTP 200\r\nERROR:pyimeji.api:{\r\n  \"error\" : {\r\n    \"code\" : \"1403\",\r\n    \"title\" : \"Forbidden\",\r\n    \"message\" : \"1403-message\",\r\n    \"exceptionReport\" : \"overkamp@mpdl.mpg.de not allowed to read http://imeji.org/collection/MzlFbqhYqi0CHxm8\"\r\n  }\r\n}\r\nERROR:pyimeji.api:<Response [403]>\r\n```\r\n\r\nokay... good point, but why does the REST API returns it to the user via the query anyway? I also tested following search string: \r\n```\r\ncreated>2018-01-05 and creator=overkamp@mpdl.mpg.de\r\n```\r\n\r\nand received the same error.\r\n\r\nIn addition: Any chance to replace the \"http://imeji.org/collection\" template in the error message by the instance specific base url? If not, it probably would be more appropriate to provide the ID only.\r\n\r\n"}}
{"actor":{"display_login":"ioverka"}}