Skip to content

Commit

Permalink
Fixing consistence result storage in shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Aug 3, 2015
1 parent be4156b commit ebace02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -1153,7 +1153,7 @@ public boolean handle(ShadowType shadowType) {
handleResult.computeStatus();
handleResult.recordSuccessIfUnknown();

if (!handleResult.isSuccess()) {
if (!handleResult.isSuccess() && !handleResult.isHandledError()) {
Collection<? extends ItemDelta> shadowModificationType = PropertyDelta
.createModificationReplacePropertyCollection(ShadowType.F_RESULT,
getResourceObjectShadowDefinition(), handleResult.createOperationResultType());
Expand Down
Expand Up @@ -1178,10 +1178,10 @@ public int synchronize(ResourceShadowDiscriminator shadowCoordinates, PrismPrope
throw new SystemException("Synchronization error: " + ex.getMessage(), ex);
}

notifyChangeResult.computeStatus("Error by notify change operation.");
notifyChangeResult.computeStatus("Error in notify change operation.");

boolean successfull = false;
if (notifyChangeResult.isSuccess()) {
if (notifyChangeResult.isSuccess() || notifyChangeResult.isHandledError()) {
deleteShadowFromRepo(change, result);
successfull = true;
// // get updated token from change,
Expand Down
1 change: 1 addition & 0 deletions testing/consistency-mechanism/.gitignore
@@ -1,2 +1,3 @@
/target
/test-output
/target/

0 comments on commit ebace02

Please sign in to comment.