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

Fix oceandata hyrax catalog issues #856

Merged
merged 4 commits into from
Dec 13, 2024
Merged

Conversation

dopplershift
Copy link
Member

@dopplershift dopplershift commented Dec 13, 2024

Description Of Changes

  • Fix generation of access urls for the oceandata hyrax catalog caused by improper use of urljoin(). This breaks handling of urlpath in the Ramadda catalog "opendap link", but at this point I consider that a Ramadda bug, not something actually allowed by the TDS Client Catalog Spec, which explicitly states that the service base and the urlpath should be directly concatenated
  • This revealed a bug where the 'dap' link in the hyrax catalog would not be used for remote_access(). It turned out we were improperly mapping this url to the service type, and using the service name instead
  • Also go ahead and support DODS as an alias for OPENDAP, and http as an alias for HTTPServer in the remote_access() and access_with_service() methods

Checklist

Instead of splitting on the path, just explicitly recombine the schema
and the netloc.
THREDDS Client Catalog spec explicitly says that the service base and
the urlpath should be concatenated directly. So avoid using urljoin(),
which was treating the urlpath as an absolute path on the server. This
breaks a weird link in a ramadda catalog. Just adjust the test for
ramadda and treat its urlpath (with full server) as a bug.
One block of code was not correctly mapping service *type* to url,
leaving 'dap' in the access_urls dict, rather than 'opendap'.
DODS is considered an alias for OPENDAP. Also add (legacy) support for
'http' as a synonym for HTTPServer.
@lesserwhirls lesserwhirls merged commit 97aedbf into Unidata:main Dec 13, 2024
33 checks passed
@dopplershift dopplershift deleted the fix-724 branch December 13, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TDSCatalog does not include base path in access_url
2 participants