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 authored and hmiguim committed Feb 22, 2024
1 parent cde9855 commit 8aa2b3a
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 8aa2b3a

Please sign in to comment.