just renaming
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@174958 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
704654b8cf
commit
a4b5a67c5d
|
@ -227,10 +227,10 @@ public class AnalyticsCreateResolver {
|
|||
*/
|
||||
private static String readApplicationTokenFromSE(HttpServletRequest req, String scope){
|
||||
|
||||
String origalScope = null;
|
||||
String callerScope = null;
|
||||
String gCubeAppToken = null;
|
||||
try{
|
||||
origalScope = ScopeProvider.instance.get();
|
||||
callerScope = ScopeProvider.instance.get();
|
||||
ScopeProvider.instance.set(scope);
|
||||
logger.info("Searching SE "+ANALYTICS_RESOLVER_SERVICE_ENDPOINT_NAME+" configurations in the scope: "+ScopeProvider.instance.get());
|
||||
|
||||
|
@ -284,9 +284,9 @@ public class AnalyticsCreateResolver {
|
|||
throw ExceptionManager.internalErrorException(req, errorMessage, AnalyticsCreateResolver.class, helpURI);
|
||||
|
||||
}finally{
|
||||
if(origalScope!=null){
|
||||
logger.info("Setting the original scope: "+origalScope);
|
||||
ScopeProvider.instance.set(origalScope);
|
||||
if(callerScope!=null){
|
||||
logger.info("Setting to the callerScope scope: "+callerScope);
|
||||
ScopeProvider.instance.set(callerScope);
|
||||
}else{
|
||||
logger.info("Reset scope");
|
||||
ScopeProvider.instance.reset();
|
||||
|
|
Loading…
Reference in New Issue