From c8ea9dd8e51767f9e2f13637e1b77bf91e406bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Berenguel?= Date: Thu, 15 Aug 2024 23:01:24 -0300 Subject: [PATCH] #2286: always add owner in bookmark name if it is present --- .../src/main/java/iped/engine/task/P2PBookmarker.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iped-engine/src/main/java/iped/engine/task/P2PBookmarker.java b/iped-engine/src/main/java/iped/engine/task/P2PBookmarker.java index 0491fb6247..9359344da1 100644 --- a/iped-engine/src/main/java/iped/engine/task/P2PBookmarker.java +++ b/iped-engine/src/main/java/iped/engine/task/P2PBookmarker.java @@ -167,11 +167,12 @@ public void createBookmarksForSharedFiles(File caseDir) { String source = doc.get(ExtraProperties.UFED_META_PREFIX + "Source"); //$NON-NLS-1$ if (source != null) bookmarkSufix = source; - String owner = doc.get(ExtraProperties.COMMUNICATION_OWNER); - if (owner != null && !owner.isEmpty()) - bookmarkSufix += " by " + owner; //$NON-NLS-1$ } + String owner = doc.get(ExtraProperties.COMMUNICATION_OWNER); + if (owner != null && !owner.isEmpty()) + bookmarkSufix += " by " + owner; //$NON-NLS-1$ + int labelId = ipedSrc.getBookmarks() .newBookmark(Messages.getString("P2PBookmarker.P2PBookmarkPrefix") + bookmarkSufix); //$NON-NLS-1$ if (program.color != null) {