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

catalog URL change 4.6 -> 5.x #504

Open
rjdave opened this issue Jun 12, 2024 · 1 comment
Open

catalog URL change 4.6 -> 5.x #504

rjdave opened this issue Jun 12, 2024 · 1 comment

Comments

@rjdave
Copy link

rjdave commented Jun 12, 2024

Since upgrading THREDDS from 4.6 to 5.5-SNAPSHOT, users noticed that all catalog URLs have changed. This is an issue because many have used the 4.6 style URL in publications and links from outside websites we don't have control over.

THREDDS 5.5 adds /catalog/ between thredds and the rest of the path to the catalog files. Interestingly, this is accounted for in the base catalog but all sub catalogs produce a not found error. Since our THREDDS is behind an nginx proxy, we have added some rewrite rules as a workaround. However, I am wondering if there is some kind of setting already or if one could be implemented to account for this fact in sub-catalogs as well.

Redirected automatically by THREDDS:
https://host.com/thredds/catalog.html -> https://host.com/thredds/catalog/catalog.html

Results in 404 not found:
https://host.com/thredds/subcat/catalog.html

@haileyajohnson
Copy link

Hi @rjdave - the change in URL was an intentional change to follow a more RESTful pattern, i.e. host/contextPath/service/resource?params

There is a redirect for the base catalog, because we know the name of it (catalog.xml); we could not set up redirects for any catalog in the same way. If you're interested in looking at the redirect implementation, you can find it here.

Configuring redirects in you nginx proxy is definitely the way to go, since you know the name of your catalogs and enabled services.

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

No branches or pull requests

2 participants