I’ve installed RCS 2.2 in FGP Dev environment. Everything works as before. From my understanding, we now have the update functionality. I’ve tried it and it didn’t work for me. I’m sure I’m not using it well! I tried to do a small modification to an existing record and I got a “put failed 500”.
And while I can execute that successfully in your environment, it does not seem to actually be updating the feature_info_format in the registration. It still shows as “text/html”.
From Jean-Marc:
I’ve installed RCS 2.2 in FGP Dev environment. Everything works as before. From my understanding, we now have the update functionality. I’ve tried it and it didn’t work for me. I’m sure I’m not using it well! I tried to do a small modification to an existing record and I got a “put failed 500”.
Here’s the JSON I receive when I do a GET : {"layers":[{"metadataUrl":"https://dev.gcgeo.gc.ca:443/geonetwork/srv/eng/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=csw:IsoRecord&id=28548a20-c540-4c37-91c9-db5a3fac793c","featureInfoMimeType":"text/html","url":"http://maps.geogratis.gc.ca/wms/stats_aboriginal_marital_en","legendMimeType":"image/png","layerEntries":[{"id":"marital_status"}],"layerType":"ogcWms","catalogueUrl":"https://dev.gcgeo.gc.ca:443/geonetwork/metadata/eng/28548a20-c540-4c37-91c9-db5a3fac793c","id":"rcs.28548a20-c540-4c37-91c9-db5a3fac793c.en"}]}
I tried to send back ()UPDATE) to RCS the JSON with a very small modification: {"layers":[{"metadataUrl":"https://dev.gcgeo.gc.ca:443/geonetwork/srv/eng/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=csw:IsoRecord&id=28548a20-c540-4c37-91c9-db5a3fac793c","featureInfoMimeType":"text/**plain**","url":"http://maps.geogratis.gc.ca/wms/stats_aboriginal_marital_en","legendMimeType":"image/png","layerEntries":[{"id":"marital_status"}],"layerType":"ogcWms","catalogueUrl":"https://dev.gcgeo.gc.ca:443/geonetwork/metadata/eng/28548a20-c540-4c37-91c9-db5a3fac793c","id":"rcs.28548a20-c540-4c37-91c9-db5a3fac793c.en"}]}
Response:
In order to accomplish what you’re trying, this is the minimal request you would need to provide:
And while I can execute that successfully in your environment, it does not seem to actually be updating the feature_info_format in the registration. It still shows as “text/html”.