[Geoserver-devel] [JIRA] (GEOS-7076) Leaving xlink:href property out of database results in no property even if xlink:title is present

Bruce Simons created an issue

GeoServer / BugGEOS-7076

Leaving xlink:href property out of database results in no property even if xlink:title is present

Issue Type:

BugBug

Assignee:

Unassigned

Created:

18/Jun/15 8:06 AM

Priority:

MediumMedium

Reporter:

Bruce Simons

Geoserver can be configured to deliver only xlink:title when hard-0coded in the configuration, but not when the values are coming from the datastore.
e.g.:
<AttributeMapping>
<targetAttribute>gsml:observationMethod</targetAttribute>
<ClientProperty>
<name>xlink:title</name>
<value>‘unknown’</value>
</ClientProperty>
</AttributeMapping>

Gives:
<gsml:observationMethod xlink:title=“unknown”/>

Getting it from the database where both xlink:href and xlink:title are present works:
<AttributeMapping>
<targetAttribute>gwml2:gwAquiferType</targetAttribute>
<ClientProperty>
<name>xlink:href</name>
<value>gwaquifertype_href</value>
</ClientProperty>
<ClientProperty>
<name>xlink:title</name>
<value>gwaquifertype_title</value>
</ClientProperty>
</AttributeMapping>

Generates:
<gwml2:gwAquiferType xlink:title=“Unclassified” xlink:href=“ngis/hgu-confiningtype.5”/>

Whereas if only xlink:title is requested it doesn’t return any value:
<AttributeMapping>
<targetAttribute>gwml2:gwAquiferType</targetAttribute>
<!–<ClientProperty>
<name>xlink:href</name>
<value>gwaquifertype_href</value>
</ClientProperty> –>
<ClientProperty>
<name>xlink:title</name>
<value>gwaquifertype_title</value>
</ClientProperty>
</AttributeMapping>

Results in a missing <gwml2:gwAquiferType> tag.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.5-OD-05-041#65001-sha1:e07c9f6)

Atlassian logo