Skip to content

Commit 32ee2b8

Browse files
author
Joerg Huber
committed
Use correct value for default context in log message.
1 parent f920da4 commit 32ee2b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SIF3InfraREST/SIF3REST/src/main/java/sif3/infra/rest/resource/BaseResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ protected ErrorDetails validClient(String serviceName, AccessRight right, Access
693693
if (!sif3Session.hasAccess(right, accessType, serviceName, zone, context))
694694
{
695695
String zoneID = (zone == null) ? "Default" : zone.getId();
696-
String contextID = (context == null) ? "Default" : context.getId();
696+
String contextID = (context == null) ? CommonConstants.DEFAULT_CONTEXT_NAME : context.getId();
697697
error = new ErrorDetails(Status.FORBIDDEN.getStatusCode(), "Consumer is not authorized to issue the requested operation.", right.name()+ " access is not set to "+accessType.name()+" for the service "+serviceName+" and the given zone ("+zoneID+") and context ("+contextID+") in the environment "+sif3Session.getEnvironmentName(), "Provider side check.");
698698
}
699699
}

0 commit comments

Comments
 (0)