diff --git a/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/validate/component/metadata/MetadataColumnsValidator.java b/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/validate/component/metadata/MetadataColumnsValidator.java index ffe8c4870..07dae59ea 100644 --- a/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/validate/component/metadata/MetadataColumnsValidator.java +++ b/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/validate/component/metadata/MetadataColumnsValidator.java @@ -231,7 +231,11 @@ private boolean validateLobFolder(String schemaFolder, String tableFolder, Strin rowNumber++; if (streamReader.getLocalName().equalsIgnoreCase(column)) { if (streamReader.getAttributeCount() > 0) { - String fileName = streamReader.getAttributeValue(null, "file"); + String fileName = Constants.SIARD_CONTENT_FOLDER + "/" + folder + + streamReader.getAttributeValue(null, "file"); + if (!zipFileManagerStrategy.getZipArchiveEntriesPath(this.path).contains(fileName)) { + fileName = streamReader.getAttributeValue(null, "file"); + } if (!fileName.isEmpty()) { if (Paths.get(fileName).getName(0).toString().equals(Constants.SIARD_CONTENT_FOLDER)) { // Internal LOB