{"action":"opened","issue":{"url":"https://api.github.com/repos/plone/plone.restapi/issues/116","repository_url":"https://api.github.com/repos/plone/plone.restapi","labels_url":"https://api.github.com/repos/plone/plone.restapi/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/plone/plone.restapi/issues/116/comments","events_url":"https://api.github.com/repos/plone/plone.restapi/issues/116/events","html_url":"https://github.com/plone/plone.restapi/issues/116","id":157472631,"number":116,"title":"In Plone 4.3.x the Plone Site Root serializer renders only content in the actual language","user":{"login":"erral","id":817365,"avatar_url":"https://avatars.githubusercontent.com/u/817365?v=3","gravatar_id":"","url":"https://api.github.com/users/erral","html_url":"https://github.com/erral","followers_url":"https://api.github.com/users/erral/followers","following_url":"https://api.github.com/users/erral/following{/other_user}","gists_url":"https://api.github.com/users/erral/gists{/gist_id}","starred_url":"https://api.github.com/users/erral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erral/subscriptions","organizations_url":"https://api.github.com/users/erral/orgs","repos_url":"https://api.github.com/users/erral/repos","events_url":"https://api.github.com/users/erral/events{/privacy}","received_events_url":"https://api.github.com/users/erral/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-30T10:09:52Z","updated_at":"2016-05-30T10:09:52Z","closed_at":null,"body":"In multilingual sites using Plone 4.3.x and LinguaPlone, but presumably also when using p.a.multilingual 1.x in Plone 4.3.x, the site root serializer returns only one of the existing language folders because of the LinguaPlone catalog patch.\r\n\r\n```bash\r\n(httpie) erral@lindari:~$ http --auth admin:admin GET www.eibar.eus Accept:application/json\r\nHTTP/1.1 200 OK\r\nConnection: keep-alive\r\nContent-Length: 255\r\nContent-Type: application/json\r\nDate: Mon, 30 May 2016 10:05:49 GMT\r\nServer: nginx/1.9.15\r\nSet-Cookie: I18N_LANGUAGE=\"eu\"; Path=/\r\nX-Frame-Options: SAMEORIGIN\r\n\r\n{\r\n    \"@id\": \"http://www.eibar.eus/\", \r\n    \"@type\": \"Plone Site\", \r\n    \"items\": [\r\n        {\r\n            \"@id\": \"http://www.eibar.eus/eu\", \r\n            \"@type\": \"Folder\", \r\n            \"description\": \"\", \r\n            \"title\": \"Eibarko Udala\"\r\n        }\r\n    ], \r\n    \"items_total\": 1, \r\n    \"parent\": {}\r\n}\r\n```\r\n\r\nIn this example we only get the ```www.eibar.eus/es``` site, but there is also a ```www.eibar.eus/es``` site, and it is not excluded from navigation:\r\n\r\n```shell\r\n(httpie) erral@lindari:~$ http --auth admin:admin GET www.eibar.eus/es Accept:application/json\r\nHTTP/1.1 200 OK\r\nConnection: keep-alive\r\nContent-Encoding: gzip\r\nContent-Type: application/json\r\nDate: Mon, 30 May 2016 10:06:14 GMT\r\nServer: nginx/1.9.15\r\nSet-Cookie: I18N_LANGUAGE=\"es\"; Path=/\r\nTransfer-Encoding: chunked\r\nX-Frame-Options: SAMEORIGIN\r\n\r\n{\r\n    \"@id\": \"http://www.eibar.eus/es\", \r\n    \"@type\": \"Folder\", \r\n    \"UID\": \"17e3f116e075217c6d5396ef28d492a9\", \r\n    \"allowDiscussion\": false, \r\n    \"constrainTypesMode\": 1, \r\n    \"contributors\": [], \r\n    \"creation_date\": \"2010-10-21T06:21:37+00:00\", \r\n    \"creators\": [\r\n        \"admin\"\r\n    ], \r\n    \"description\": {\r\n        \"content-type\": \"text/plain\", \r\n        \"data\": \"\"\r\n    }, \r\n...\r\n}\r\n```\r\n\r\nIn LinguaPlone environments this can be solved adding ```Language='all'``` keyword parameter to the catalog query, but can create some issues when used with p.a.multilingual 2.x such as in https://github.com/plone/plone.app.layout/issues/91\r\n"}}
{"actor":{"display_login":"erral"}}