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 derive paths for UploadedFileUploader #5755

Merged
merged 1 commit into from
Jun 29, 2022
Merged

correctly derive paths for UploadedFileUploader #5755

merged 1 commit into from
Jun 29, 2022

Conversation

no-reply
Copy link
Contributor

UploadedFileUploader's path generation was extremely fragile. for instance, it
would generate an incorrect path if the configuration option didn't end with
'/'.

to generate a vaild in a system independent way, use Pathname#/ and then cast
back to a string.

@samvera/hyrax-code-reviewers

@no-reply
Copy link
Contributor Author

this one could probably benefit from a backport to both the 2.x and 3.x release series.

dunn
dunn previously approved these changes Jun 28, 2022
dunn
dunn previously approved these changes Jun 28, 2022
`UploadedFileUploader`'s path generation was extremely fragile. for instance, it
would generate an incorrect path if the configuration option didn't end with
'/'.

to generate a vaild in a system independent way, use `Pathname#/` and then cast
back to a string.
@dunn dunn merged commit 1a7689d into main Jun 29, 2022
@dunn dunn deleted the uploader-path branch June 29, 2022 00:16
@dlpierce dlpierce added the notes-minor Release Notes: Non-breaking features label Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport needed notes-minor Release Notes: Non-breaking features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants