Skip to content

Conversation

@lesserwhirls
Copy link
Member

@lesserwhirls lesserwhirls commented Aug 5, 2025

Description of Changes

Allow disambiguateHttp to continue checking various services when 403 responses are encountered. Additionally, have HTTPRandomAccessFile use https by default, and fallback to http if https fails, when the location begins with nodods: or httpserver:.

Addresses #1435

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

When using "nodods:" or "httpserver:" for a dataset url, try connecting
with https first, and if that fails, try to fall back to http.
Add some consistency to the error handling in the checkIfXXX methods
used in disambiguateHttp. Return IOErrors if for 401 responses. Log
403 responses and move on to the next check. Fixes
Unidata#1435
@lesserwhirls lesserwhirls changed the title Gh 1435 log 403 Do not stop trying to disambiguate http locations when 403s are encountered Aug 5, 2025
@lesserwhirls lesserwhirls marked this pull request as ready for review August 5, 2025 21:47
@lesserwhirls lesserwhirls merged commit 938dfc7 into Unidata:maint-5.x Aug 5, 2025
16 of 40 checks passed
@lesserwhirls lesserwhirls deleted the gh-1435-log-403 branch August 5, 2025 21:48
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

Successfully merging this pull request may close these issues.

1 participant