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

Correctly handle the case with trailing slash in the service URL #37

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

bbockelm
Copy link
Collaborator

The service URL could technically contain a resource. E.g.,

https://foo.example.com/prefix

or simply

https://foo.example.com/

In this case, the code logic didn't handle bucket names correctly, generating invalid URLs for directory listings and stat's.

This fixes said logic and adds some simple regression test coverage.

Fixes issues with NCAR S3 origin not being able to perform HEAD requests.

The service URL could technically contain a resource.  E.g.,

```
https://foo.example.com/prefix
```

or simply

```
https://foo.example.com/
```

In this case, the code logic didn't handle bucket names correctly,
generating invalid URLs for directory listings and stat's.

This fixes said logic and adds some simple regression test coverage.
Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jhiemstrawisc jhiemstrawisc merged commit f6accba into PelicanPlatform:main Jul 23, 2024
6 checks passed
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.

2 participants