Skip to content

Commit

Permalink
Validator allowing inside lob path to be defined on lobFolder attribu…
Browse files Browse the repository at this point in the history
…te + file
  • Loading branch information
AntonioG70 committed Jan 24, 2024
1 parent 1c97873 commit e75940e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e75940e

Please sign in to comment.