Skip to content

Commit

Permalink
Fix #373 dcm4che/dcm4chee-arc-light : Audit message is not generated …
Browse files Browse the repository at this point in the history
…for event 'Instances Stored' when previously rejected instances with 'Retention Expired' reason are stored again in archive
  • Loading branch information
vrindanayak committed Sep 15, 2016
1 parent bb76e59 commit f3973ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static EventType forQuery(QueryContext ctx) {
static EventType forInstanceStored(StoreContext ctx) {
return !ctx.getLocations().isEmpty()
? ctx.getPreviousInstance() != null ? STORE_UPDT : STORE_CREA
: null;
: ctx.getStoredInstance() != null ? STORE_CREA : null;
}

static HashSet<EventType> forBeginTransfer(RetrieveContext ctx) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void onStore(@Observes StoreContext ctx) {
if (auditService.isAuditInstalled()) {
if (ctx.getRejectionNote() != null)
auditService.spoolInstancesDeleted(ctx);
else if (!ctx.getLocations().isEmpty() || ctx.getException() != null)
else if (ctx.getStoredInstance() != null || ctx.getException() != null)
auditService.spoolInstanceStoredOrWadoRetrieve(ctx, null);
}
}
Expand Down

0 comments on commit f3973ab

Please sign in to comment.