Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
combined path checks for manifest and fetch files and added tests for…
… malicious urls
- Loading branch information
1 parent
9b0db29
commit 30669a0
Showing
12 changed files
with
98 additions
and
109 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
src/main/java/gov/loc/repository/bagit/exceptions/InvalidBagitFileFormatException.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package gov.loc.repository.bagit.exceptions; | ||
|
||
/** | ||
* Class to represent an error when the bag manifest file does not conform to the bagit specfication format | ||
*/ | ||
public class InvalidBagitFileFormatException extends Exception { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public InvalidBagitFileFormatException(final String message){ | ||
super(message); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
src/main/java/gov/loc/repository/bagit/exceptions/InvalidFetchFormatException.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/gov/loc/repository/bagit/exceptions/InvalidManifestFormatException.java
This file was deleted.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.