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

Add storage relative path to ResourceHeaders #58

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

whikloj
Copy link
Collaborator

@whikloj whikloj commented Aug 21, 2024

JIRA Ticket: https://fedora-repository.atlassian.net/browse/FCREPO-3935

What does this Pull Request do?

Adds the storageRelativePath from the OcflObjectVersionFile to the ResourceHeaders so we can pass it up to Fedora.

This does not show the storage specific prefix. At this level we only have an objectSession and (I think) we would need the entire repository (io.ocfl.api.OcflRepository) to get the storage (io.ocfl.core.storage.OcflStorage) to get the objectRootPath().

This method also does not have a way to stop this new information from being loaded. Because of the existing functionality, it requires a second touch of the file which (I imagine) will have some performance impacts.
Edit: I have moved things around to hopefully reduce duplication related to this processing.

How should this be tested?

Interested parties

Tag (@ mention) interested parties or, if unsure, @fcrepo/committers

@whikloj whikloj marked this pull request as ready for review September 5, 2024 18:59
@bbpennel bbpennel merged commit 969bb5b into fcrepo:main Sep 12, 2024
3 checks passed
@whikloj whikloj deleted the FCREPO-3935 branch September 13, 2024 15:31
Surfrdan pushed a commit to Surfrdan/fcrepo-storage-ocfl that referenced this pull request Jan 24, 2025
* Add storage relative path to ResourceHeaders

* Modify headers before caching

* Add storagerelativepath when caching from staging

* Remove duplicate code
Surfrdan pushed a commit to Surfrdan/fcrepo-storage-ocfl that referenced this pull request Feb 7, 2025
* Add storage relative path to ResourceHeaders

* Modify headers before caching

* Add storagerelativepath when caching from staging

* Remove duplicate code
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