This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
DD-1459 Fix uncontrolled data used in path expression #132
Merged
janvanmansum
merged 7 commits into
DANS-KNAW:master
from
aliassheikh:DD-1459-Fix-Uncontrolled-data-used-in-path-expression
Apr 11, 2024
Merged
DD-1459 Fix uncontrolled data used in path expression #132
janvanmansum
merged 7 commits into
DANS-KNAW:master
from
aliassheikh:DD-1459-Fix-Uncontrolled-data-used-in-path-expression
Apr 11, 2024
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
jo-pol
reviewed
Apr 5, 2024
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.
Just some style details
src/main/java/nl/knaw/dans/ingest/resources/ImportsResource.java
Outdated
Show resolved
Hide resolved
src/main/java/nl/knaw/dans/ingest/resources/MigrationsResource.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #132 +/- ##
============================================
- Coverage 54.39% 54.29% -0.11%
Complexity 709 709
============================================
Files 126 126
Lines 3219 3225 +6
Branches 223 224 +1
============================================
Hits 1751 1751
- Misses 1419 1425 +6
Partials 49 49 ☔ View full report in Codecov by Sentry. |
janvanmansum
suggested changes
Apr 8, 2024
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.
See inline comments.
…olled-data-used-in-path-expression
…sed-in-path-expression' into DD-1459-Fix-Uncontrolled-data-used-in-path-expression
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes DD-1459 Fix Uncontrolled data used in path expression
Description of changes
getSecurePath(Path path)
toImportArea.java
dd-ingest-flow
in the classesImoprtResource
andMigrationResource
How to test and follow it in debugger
start-preprovisioned-box.py -s dev_archaeology
deploy.py -m dd-ingest-flow dev_archaeology
vagrant ssh
cd /var/opt/dans.knaw.nl/tmp
tree -L 5
(to oversee the working folders and deposits)mkdir import/deposits/test-folder
mkdir migration/deposits/test-folder
cp -r auto-ingest/outbox/processed/33afaff6-e08a-4bfa-9960-2b48b616d2c9/ import/inbox/test-folder/
cp -r auto-ingest/outbox/processed/33afaff6-e08a-4bfa-9960-2b48b616d2c9/ migration/deposits/test-folder/
ingest-flow start-import -s import/inbox/test-folder/33afaff6-e08a-4bfa-9960-2b48b616d2c9/
ingest-flow start-migration -s migration/deposits/test-folder/33afaff6-e08a-4bfa-9960-2b48b616d2c9/
Related PRs
(Add links)
Notify
@DANS-KNAW/core-systems