Skip to content

Commit

Permalink
Fixed wrong path when lobfolder is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioG70 committed Jan 8, 2024
1 parent 0cddcff commit ff144a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ public void startElement(String uri, String localName, String qName, Attributes
SIARDArchiveContainer container;
if (lobDir.startsWith("..")) {
container = lobContainer;
lobPath = lobContainer.getPath().toString() + '/' + lobPath.replace("../", "");
} else {
container = contentContainer;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public String getLobPath(String basePath, String schemaName, String tableId, Str

if (".".equals(basePath) && ".".equals(columnPart) && lobFileName.startsWith("..")) {
return lobFileName.substring(3);
} else if (".".equals(columnPart)) {
return lobFileName;
} else {
return new StringBuilder().append(basePath).append(RESOURCE_FILE_SEPARATOR).append(schemaPart)
.append(RESOURCE_FILE_SEPARATOR).append(tablePart).append(RESOURCE_FILE_SEPARATOR).append(columnPart)
Expand Down

0 comments on commit ff144a3

Please sign in to comment.