Skip to content

Commit

Permalink
removing error with null name (MID-5417)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 25, 2020
1 parent 29c7fae commit 7d13d2f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -153,21 +153,21 @@ private <F extends ObjectType> LensProjectionContext determineProjectionWaveProv
LOGGER.trace(" processing dependency: {}: unsatisfied strict dependency", PrettyPrinter.prettyPrint(outDependency));
}
throw new PolicyViolationException("Unsatisfied strict dependency of account ["+projectionContext.getResourceShadowDiscriminator().toHumanReadableDescription(false)+
projectionResourceMessage+"] dependent on ["+refDiscr.toHumanReadableDescription(false)+refResourceMessage+"]: Account not provisioned");
projectionResourceMessage+"] dependent on ["+refDiscr.toHumanReadableDescription(nameRefResource == null)+refResourceMessage+"]: Account not provisioned");
} else if (outDependencyStrictness == ResourceObjectTypeDependencyStrictnessType.LAX) {
if (LOGGER.isTraceEnabled()) {
LOGGER.trace(" processing dependency: {}: unsatisfied lax dependency", PrettyPrinter.prettyPrint(outDependency));
}
// independent object not in the context, just ignore it
LOGGER.debug("Unsatisfied lax dependency of account ["+projectionContext.getResourceShadowDiscriminator().toHumanReadableDescription(false)
+projectionResourceMessage+"] dependent on ["+refDiscr.toHumanReadableDescription(false)+refResourceMessage+"]: dependency skipped");
+projectionResourceMessage+"] dependent on ["+refDiscr.toHumanReadableDescription(nameRefResource == null)+refResourceMessage+"]: dependency skipped");
} else if (outDependencyStrictness == ResourceObjectTypeDependencyStrictnessType.RELAXED) {
if (LOGGER.isTraceEnabled()) {
LOGGER.trace(" processing dependency: {}: unsatisfied relaxed dependency", PrettyPrinter.prettyPrint(outDependency));
}
// independent object not in the context, just ignore it
LOGGER.debug("Unsatisfied relaxed dependency of account ["+projectionContext.getResourceShadowDiscriminator().toHumanReadableDescription(false)+
projectionResourceMessage+"] dependent on ["+refDiscr.toHumanReadableDescription(false)+refResourceMessage+"]: dependency skipped");
projectionResourceMessage+"] dependent on ["+refDiscr.toHumanReadableDescription(nameRefResource == null)+refResourceMessage+"]: dependency skipped");
} else {
throw new IllegalArgumentException("Unknown dependency strictness "+outDependency.getStrictness()+" in "+refDiscr);
}
Expand Down

0 comments on commit 7d13d2f

Please sign in to comment.