Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMS GetCapabilities response is invalid with injected MetadataURL #5680

Closed
nmtoken opened this issue Oct 16, 2018 · 1 comment
Closed

WMS GetCapabilities response is invalid with injected MetadataURL #5680

nmtoken opened this issue Oct 16, 2018 · 1 comment
Assignees
Labels
Metadata Metadata related issues

Comments

@nmtoken
Copy link

nmtoken commented Oct 16, 2018

The MetadataURL section created by MapServer 7.2.0 with auto-generated metadata (that is the request=GetMetadata URL) is invalid.

XML generated is like:

<MetadataURL type="ISOTC211/19115">
    <Format>text/xml</Format>
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
        xlink:type="simple" 
        xlink:href="http://xxx.xxx.xxx/cgi-bin/UGA_ARGI/ows?language=eng&amp;request=GetMetadata&amp;layer=ROAD"/>
</MetadataURL>

For WMS 1.1.1 the error reported is:

Attribute "type" with value "ISOTC211/19115" must have a value from the list "TC211 FGDC ".

For WMS 1.3.0 the error reported is:

The value 'ISOTC211/19115' of attribute 'type' on element 'MetadataURL' is not valid with respect to its type, 'NMTOKEN'.

A value of TC211 is valid for both WMS 1.1.1 and WMS 1.3.0

@tomkralidis tomkralidis self-assigned this Oct 19, 2018
@tomkralidis tomkralidis added the Metadata Metadata related issues label Oct 19, 2018
tomkralidis added a commit to tomkralidis/MapServer that referenced this issue Oct 19, 2018
tomkralidis added a commit to tomkralidis/MapServer that referenced this issue Oct 19, 2018
jmckenna added a commit that referenced this issue Oct 19, 2018
fix MetadataURL type for Capabilities responses (#5680)
@nmtoken
Copy link
Author

nmtoken commented Oct 19, 2018

Thanks for very quick fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metadata Metadata related issues
Projects
None yet
Development

No branches or pull requests

2 participants