Can't configure MediaType in INSPIRE extension

Description

In the INSPIRE extension it is assumed that the MediaType is always application/vnd.iso.19139+xml and therefore no method is provided for modifying it.

The MediaType for INSPIRE metadata is not fixed, for example for a CSW response from GeoNetwork it is: application/xml.

Incorrectly stating the MediaType is an INSPIRE validator error...

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:18 PM

CodeHaus Comment From: bartvde - Time: Mon, 29 Oct 2012 05:25:16 -0500
---------------------
<p>So even though the UI allows you to choose from the following options for Service Metadata Type:</p>

<ul>
<li>CSW GetRecordById request</li>
<li>Online ISO19139 Service Metadata document</li>
</ul>

<p>the INSPIRE extension does not take this into account when outputting, it always uses:</p>

<p>&lt;inspire_common:MediaType&gt;application/vnd.iso.19139+xml&lt;/inspire_common:MediaType&gt;</p>

codehaus
April 10, 2015, 4:18 PM

CodeHaus Comment From: aaime - Time: Sun, 3 Mar 2013 10:04:50 -0600
---------------------
<p>Switching all issues that have been in "resolved" state for more than one month without further comments to "closed" status</p>

codehaus
April 10, 2015, 4:18 PM

CodeHaus Comment From: nmtoken - Time: Thu, 17 Oct 2013 04:30:41 -0500
---------------------
<p>I'm not sure why this is marked as fixed. I have GeoServer 2.4.0 and the corresponding INSPIRE extension. I still can't change the MediaType for my WMS service metadata resource to the actual MediaType for the resource!</p>

<p>for example I would like to say that the media type is "application/xml" for my CSW GetRecordById request response.</p>

codehaus
April 10, 2015, 4:18 PM

CodeHaus Comment From: bartvde - Time: Thu, 17 Oct 2013 04:36:34 -0500
---------------------
<p>James, there is no UI for this, but you can do the following:</p>

<p>You can change the media type manually in the GEOSERVER_DATA_DIR/wms.xml file. Simply search for "inspire.metadataURLType" and change the value, reload the GeoServer configuration and that mime type should be respected.</p>

<p>Can you report back if this works for you? TIA.</p>

codehaus
April 10, 2015, 4:18 PM

CodeHaus Comment From: nmtoken - Time: Thu, 17 Oct 2013 06:51:00 -0500
---------------------
<p>Yes that workaround works, I also changed the value in the appropriate workspace wms.xml file:</p>

<p>GEOSERVER_DATA_DIR/workspaces/<span class="error">&#91;workspace-name&#93;</span>/wms.xml</p>

<p>For the WFS (though this bug was originally posted for the WMS extended capabilities) you need to change the workspace wfs.xml. There is no corresponding value in the generic GEOSERVER_DATA_DIR/wfs.xml file.</p>

<p>Of course the got-cha here is that if you change anything in the GUI, there is a high probability that you will need to go back and change the media type URLs back to what you want them to be.</p>

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure