-
Notifications
You must be signed in to change notification settings - Fork 5
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
File Service - Update Documenation and Verify Temp Storage #59
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…yaml - Update the README to be more clear about role of PASS_CORE_FILE_SERVICE_ROOT_DIR
- Add INFO log for the root file dir env variable
markpatton
approved these changes
Sep 18, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good and tests pass for me locally.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Things to note:
PASS_CORE_FILE_SERVICE_ROOT_DIR
is supposed to be used is noted in the READMETo Test:
Mvn verify
To check that files are uploaded, they are logged in the logs:
Example:
INFO o.e.p.f.s.storage.FileStorageService.storeFile - File Service: File with ID 469d149c-df88-4baa-b7a2-793ba6d91ce0/Nanometer-Scale Thermometry.pdf was stored in the file system repo at the location:C:\Users\tsande16\AppData\Local\Temp\1944912672741001035\ocfl\211\b3c\73a\211b3c73a7aaf393803607b3be9710a16169e89375a0eac1648feff7e4aa9173\v1\content\469d149c-df88-4baa-b7a2-793ba6d91ce0.pdf
To check your temp, the location is logged here:
14-09-2023 11:38:49.362 [main] [pass-core, ] INFO o.e.p.f.s.storage.FileStorageService.<init> - File Service: C:\Users\tsande16\AppData\Local\Temp\1944912672741001035 Storage Root Directory
I also tested locally running the jar and checking my local file system to ensure that the temp directory was being cleaned up after uploading files. I also tested in docker by running
docker-compose up -d
and uploading files there and checking the/tmp
directory to ensure that was being cleaned up as well. Also to ensure thatPASS_CORE_FILE_SERVICE_ROOT_DIR
wasn't being created as a temp directory I grepped the filesystem in docker.