Uses of Class
nl.knaw.dans.bagit.exceptions.MaliciousPathException
Packages that use MaliciousPathException
Package
Description
-
Uses of MaliciousPathException in nl.knaw.dans.bagit.conformance
Methods in nl.knaw.dans.bagit.conformance that throw MaliciousPathExceptionModifier and TypeMethodDescriptionstatic voidManifestChecker.checkManifests(Version version, Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) Check for all the manifest specific potential problems(package private) static voidManifestChecker.checkManifestSets(Version version, List<Path> tagManifests, List<Path> payloadManifests, Set<BagitWarning> warnings, Charset encoding) (package private) static voidManifestChecker.checkManifestsListSameSetOfFiles(Set<BagitWarning> warnings, List<Path> manifestPaths, Charset charset) static Set<BagitWarning>The BagIt specification is very flexible in what it allows which leads to situations where something may be technically allowed, but should be discouraged.static Set<BagitWarning>BagLinter.lintBag(Path rootDir, Collection<BagitWarning> warningsToIgnore) The BagIt specification is very flexible in what it allows which leads to situations where something may be technically allowed, but should be discouraged. -
Uses of MaliciousPathException in nl.knaw.dans.bagit.reader
Methods in nl.knaw.dans.bagit.reader that throw MaliciousPathExceptionModifier and TypeMethodDescriptionstatic PathTagFileReader.createFileFromManifest(Path bagRootDir, String path) Read the bag from the filesystem and create a bag object(package private) static voidManifestReader.readAllManifests(BagitAlgorithmNameToSupportedAlgorithmMapping nameMapping, Path rootDir, Bag bag) Finds and reads all manifest files in the rootDir and adds them to the given bag.ManifestReader.readChecksumFileMap(Path manifestFile, Path bagRootDir, Charset charset) Reads a fetch.txt filestatic ManifestManifestReader.readManifest(BagitAlgorithmNameToSupportedAlgorithmMapping nameMapping, Path manifestFile, Path bagRootDir, Charset charset) Reads a manifest file and converts it to aManifestobject. -
Uses of MaliciousPathException in nl.knaw.dans.bagit.verify
Methods in nl.knaw.dans.bagit.verify that throw MaliciousPathExceptionModifier and TypeMethodDescriptionManifestVerifier.getAllFilesListedInManifests(Bag bag) voidBagVerifier.isComplete(Bag bag, boolean ignoreHiddenFiles) See https://tools.ietf.org/html/draft-kunze-bagit-13#section-3
A bag is complete if
every element is present every file in the payload manifest(s) are present every file in the tag manifest(s) are present.voidSee https://tools.ietf.org/html/draft-kunze-bagit-13#section-3
A bag is valid if the bag is complete and every checksum has been verified against the contents of its corresponding file.voidManifestVerifier.verifyManifests(Bag bag, boolean ignoreHiddenFiles) Verify that all the files in the payload directory are listed in the payload manifest and all files listed in all manifests exist.