Skip to content

Commit

Permalink
#2262: if extracted_path does not reference a ufedId, use the ufedId …
Browse files Browse the repository at this point in the history
…of attached file
  • Loading branch information
aberenguel committed Jul 19, 2024
1 parent a5e60df commit f52a7f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,11 @@ private String handleAttachment(Item item) {
// Replace extracted path by attached file's local path
extracted_path = ufedFileIdToLocalPath.get(item.getMetadata().get(FILE_ID_ATTR));
}

// if extracted_path does not reference a ufedId, use the ufedId of attached file
if (ufedId == null && ufedFileIdToLocalPath.containsKey(item.getMetadata().get(FILE_ID_ATTR))) {
ufedId = item.getMetadata().get(FILE_ID_ATTR);
}

}
setContent(item, extracted_path);
Expand Down

0 comments on commit f52a7f3

Please sign in to comment.