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

unpack crates into temp/:uuid #83

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from
Draft

Conversation

Code42Cate
Copy link
Contributor

No description provided.

@coveralls
Copy link

Pull Request Test Coverage Report for Build #96

  • 8 of 9 (88.89%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 89.605%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/edu/kit/datamanager/ro_crate/reader/ZipReader.java 8 9 88.89%
Files with Coverage Reduction New Missed Lines %
src/main/java/edu/kit/datamanager/ro_crate/reader/ZipReader.java 1 73.08%
Totals Coverage Status
Change from base Build #95: -0.06%
Covered Lines: 1293
Relevant Lines: 1443

💛 - Coveralls

@Pfeil
Copy link
Member

Pfeil commented Dec 13, 2022

This is a workaround around issue #56 for the usage with a service offering ro-crate-java as a REST API.

@@ -55,6 +62,6 @@ public File readContent(String location) {
if (!read) {
this.readCrate(location);
}
return new File("temp");
return new File(tempFolder);
Copy link
Contributor

Choose a reason for hiding this comment

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

18% of developers fix this issue

💬 4 similar findings have been found in this PR


PATH_TRAVERSAL_IN: This API (java/io/File.(Ljava/lang/String;)V) reads a file whose location might be specified by user input


🔎 Expand here to view all instances of this finding
File Path Line Number
src/main/java/edu/kit/datamanager/ro_crate/reader/ZipReader.java 36
src/main/java/edu/kit/datamanager/ro_crate/reader/ZipReader.java 50
src/main/java/edu/kit/datamanager/ro_crate/reader/ZipReader.java 29
src/main/java/edu/kit/datamanager/ro_crate/reader/ZipReader.java 31

Visit the Lift Web Console to find more details in your report.


ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@ThomasJejkal ThomasJejkal changed the base branch from main to development January 11, 2024 08:47
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.

3 participants