Unidata / thredds

THREDDS Data Server v4.6
https://www.unidata.ucar.edu/software/tds/v4.6/index.html
265 stars 179 forks source link

WMS service broken in 4.6.19+ #1398

Closed gaellafond closed 2 years ago

gaellafond commented 2 years ago

THREDDS version: 4.6.15: WMS service works as expected 4.6.18: WMS service works as expected 4.6.19: WMS service is broken 4.6.20: WMS service is broken 4.6.20-SNAPSHOT: WMS service is broken

I'm using Docker THREDDS: https://hub.docker.com/r/unidata/thredds-docker

Host is running Ubuntu.

When visiting the WMS service page from THREDDS, the server returns a 404.

I'm happy to try other versions of THREDDS or modify my THREDDS config if that can help diagnose the issue.

NOTE: I also tried THREDDS version 5.3. The WMS service is also broken on that version. It returns a broken (incomplete) XML document. It outputs the services, edal capabilites, then it tried to output the layers and it crashes after the "title" of the first layer. The title is No dataset title found.. Then it just stops there, with a lot of missing info and a lot of XML elements left opened (not closed, aka invalid XML). THREDDS version 5.4-SNAPSHOT is broken in the same way as 5.3, except that it actually print the title of the layer instead of No dataset title found..

haileyajohnson commented 2 years ago

Hello @gaellafond , just double-checking, have you updated you config to point to the new schema, following the instructions here?

gaellafond commented 2 years ago

@haileyajohnson Thank you! That fixed my issue. It's strange that WMS was still working with THREDDS older than 4.6.19

For anyone reading this, if the link is broken, the fix is:


Change the <!DOCTYPE> declaration in the $tds.content.root.path/thredds/wmsConfig.xml file of your TDS installation to replace the following string:

http://www.unidata.ucar.edu/schemas/thredds/dtd/ncwms/wmsConfig.dtd

with:

https://schemas.unidata.ucar.edu/thredds/dtd/ncwms/wmsConfig.dtd