From b61edbd9d3b3454ff915ff1db8cc089682cfcff8 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Sat, 5 Dec 2020 12:08:25 +0100 Subject: [PATCH] implementation Issue #136 --- imixs-archive-signature/pom.xml | 10 +++------- .../archive/signature/workflow/SignatureAdapter.java | 4 ++++ pom.xml | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/imixs-archive-signature/pom.xml b/imixs-archive-signature/pom.xml index eecf8f14..3974e8d4 100644 --- a/imixs-archive-signature/pom.xml +++ b/imixs-archive-signature/pom.xml @@ -7,12 +7,7 @@ imixs-archive-signature - - - 1.67 - - - + org.imixs.workflow @@ -39,7 +34,8 @@ org.bouncycastle - bcmail-jdk15on + + bcpkix-jdk15on true ${bouncycastle.version} diff --git a/imixs-archive-signature/src/main/java/org/imixs/archive/signature/workflow/SignatureAdapter.java b/imixs-archive-signature/src/main/java/org/imixs/archive/signature/workflow/SignatureAdapter.java index b59dd7db..3482a016 100644 --- a/imixs-archive-signature/src/main/java/org/imixs/archive/signature/workflow/SignatureAdapter.java +++ b/imixs-archive-signature/src/main/java/org/imixs/archive/signature/workflow/SignatureAdapter.java @@ -188,6 +188,10 @@ public ItemCollection execute(ItemCollection document, ItemCollection event) thr FileData signedFileData = new FileData(fileName, signedContent,"application/pdf", null); document.addFileData(signedFileData); + + // force overwriting content... + document.appendItemValue(SnapshotService.ITEM_SNAPSHOT_OVERWRITEFILECONTENT, fileName); + logger.info("......signing " + fileName + " completed!"); } } diff --git a/pom.xml b/pom.xml index 2306b9ee..6d288240 100644 --- a/pom.xml +++ b/pom.xml @@ -82,7 +82,8 @@ 5.2.6 1.0.19 - 2.0.19 + 2.0.21 + 1.67 3.0 2.3