• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IQSS / dataverse / #22411

23 May 2024 05:54PM UTC coverage: 20.585% (-0.001%) from 20.586%
#22411

push

github

web-flow
Read zip file in try-with-resources (#10079)

* Read zip file in try-with-resources

* Prevent zip slip vulnerability

Sonarcloud warns strongly against blindly trusting paths in a zip file.
This first checks that the resolved path for an entry is in the
directory that we want it to be,
before trying to write the file.
If a path is outside `dataverseLangDirectory + "/"`, return HTTP 400

0 of 13 new or added lines in 1 file covered. (0.0%)

17230 of 83701 relevant lines covered (20.59%)

0.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

8.03
/src/main/java/edu/harvard/iq/dataverse/api/DatasetFieldServiceApi.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc