{"action":"created","issue":{"url":"https://api.github.com/repos/georchestra/georchestra/issues/933","labels_url":"https://api.github.com/repos/georchestra/georchestra/issues/933/labels{/name}","comments_url":"https://api.github.com/repos/georchestra/georchestra/issues/933/comments","events_url":"https://api.github.com/repos/georchestra/georchestra/issues/933/events","html_url":"https://github.com/georchestra/georchestra/issues/933","id":59927291,"number":933,"title":"GeoServer 2.5.4, WFS, POST request, authentification","user":{"login":"lecault","id":5269430,"avatar_url":"https://avatars.githubusercontent.com/u/5269430?v=3","gravatar_id":"","url":"https://api.github.com/users/lecault","html_url":"https://github.com/lecault","followers_url":"https://api.github.com/users/lecault/followers","following_url":"https://api.github.com/users/lecault/following{/other_user}","gists_url":"https://api.github.com/users/lecault/gists{/gist_id}","starred_url":"https://api.github.com/users/lecault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lecault/subscriptions","organizations_url":"https://api.github.com/users/lecault/orgs","repos_url":"https://api.github.com/users/lecault/repos","events_url":"https://api.github.com/users/lecault/events{/privacy}","received_events_url":"https://api.github.com/users/lecault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T09:41:35Z","updated_at":"2015-03-12T16:14:40Z","closed_at":null,"body":"When we do a POST request on WFS on a layer where his namespace contains protect layers, we have request error. It's a problem for the request tool on mapfishapp, edit a layer or our signalement application. Examples below. I don't know if it's linked with issue 912.\r\n ------------------------------------------------------------------------------------------------------\r\nIl apparaît lorsque l'on fait une requête POST sur un flux WFS dans un namespace qui contient au moins une couche protégée : l'action n'est pas possible pour les autres couches aussi. Cela est problématique notamment pour le requêtage mapfishapp, l'édition ou notre application Signalement. Je ne sais pas si c'est lié à l'issue 912.\r\n \r\nExemple de requête POST sur GeoBretagne :\r\n \r\nhttp://geobretagne.fr/geoserver/ign/wfs\r\n\r\n```xml\r\n<wfs:GetFeature xmlns:wfs=\"http://www.opengis.net/wfs\" service=\"WFS\" version=\"1.1.0\" outputFormat=\"json\" xsi:schemaLocation=\"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n    <wfs:Query typeName=\"ign:bdtopo_commune\" srsName=\"EPSG:3857\" xmlns:feature=\"http://geobretagne.fr/ns/ign\">\r\n        <PropertyName>code_insee</PropertyName>\r\n        <PropertyName>nom</PropertyName>\r\n        <ogc:Filter xmlns:ogc=\"http://www.opengis.net/ogc\">\r\n            <ogc:Contains>\r\n                <ogc:PropertyName>the_geom</ogc:PropertyName>\r\n                <gml:MultiPoint srsName=\"http://www.opengis.net/gml/srs/epsg.xml#3857\" xmlns:gml=\"http://www.opengis.net/gml\">\r\n                    <gml:pointMember>\r\n                        <gml:Point>\r\n                            <gml:coordinates decimal=\".\" cs=\",\" ts=\" \">-323661.37514577,6162047.4713801</gml:coordinates>\r\n                        </gml:Point>\r\n                    </gml:pointMember>\r\n                </gml:MultiPoint>\r\n            </ogc:Contains>\r\n        </ogc:Filter>\r\n    </wfs:Query>\r\n</wfs:GetFeature>\r\n```\r\n\r\n\r\nExemple sur sdi :\r\n \r\nsdi.georchestra.org/geoserver/geor/wfs\r\n\r\n```xml\r\n<wfs:GetFeature xmlns:wfs=\"http://www.opengis.net/wfs\" service=\"WFS\" version=\"1.1.0\" outputFormat=\"json\" xsi:schemaLocation=\"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n    <wfs:Query typeName=\"geor:menhir\" srsName=\"EPSG:3857\"></wfs:Query>\r\n</wfs:GetFeature>\r\n```\r\n\r\n\r\nAlors que si on fait des requêtes équivalentes en mode GET aucun soucis.\r\nhttp://geobretagne.fr/geoserver/ign/wfs?request=GetFeature&typename=ign:bdtopo_commune&count=3\r\nhttp://sdi.georchestra.org/geoserver/geor/wfs?request=GetFeature&typename=geor:menhir&count=3"},"comment":{"url":"https://api.github.com/repos/georchestra/georchestra/issues/comments/78513429","html_url":"https://github.com/georchestra/georchestra/issues/933#issuecomment-78513429","issue_url":"https://api.github.com/repos/georchestra/georchestra/issues/933","id":78513429,"user":{"login":"lecault","id":5269430,"avatar_url":"https://avatars.githubusercontent.com/u/5269430?v=3","gravatar_id":"","url":"https://api.github.com/users/lecault","html_url":"https://github.com/lecault","followers_url":"https://api.github.com/users/lecault/followers","following_url":"https://api.github.com/users/lecault/following{/other_user}","gists_url":"https://api.github.com/users/lecault/gists{/gist_id}","starred_url":"https://api.github.com/users/lecault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lecault/subscriptions","organizations_url":"https://api.github.com/users/lecault/orgs","repos_url":"https://api.github.com/users/lecault/repos","events_url":"https://api.github.com/users/lecault/events{/privacy}","received_events_url":"https://api.github.com/users/lecault/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T16:14:40Z","updated_at":"2015-03-12T16:14:40Z","body":"It's ok. We change the catalog mode of GeoServer to Cached (before it's mixed)."}}