ref 11719: Add management of VREs to the NLPHub interface
https://support.d4science.org/issues/11719 Fixed some issue on webapp: Errors of shared variables on servlets Added slf4j over the whole application and logs in nlphub.log Problem of checking nulls on arrays in Javascript Added the ability to retrieve the context and token from the RequestUri git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/nlphub@167440 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1f6de059c7
commit
08439833e0
|
@ -6,7 +6,6 @@ public class Constants {
|
||||||
|
|
||||||
public static final String DEFAULT_USER = "giancarlo.panichi";
|
public static final String DEFAULT_USER = "giancarlo.panichi";
|
||||||
public static final String DEFAULT_SCOPE = "/gcube/devNext/NextNext";
|
public static final String DEFAULT_SCOPE = "/gcube/devNext/NextNext";
|
||||||
public static final String DEFAULT_TOKEN = "";
|
|
||||||
|
|
||||||
public static final String DEFAULT_DATAMINER_URL = "http://dataminer-prototypes.d4science.org";
|
public static final String DEFAULT_DATAMINER_URL = "http://dataminer-prototypes.d4science.org";
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,7 @@ public class SessionUtils {
|
||||||
public static String getToken(HttpServletRequest request) {
|
public static String getToken(HttpServletRequest request) {
|
||||||
String token = request.getParameter(Constants.TOKEN_PARAMETER);
|
String token = request.getParameter(Constants.TOKEN_PARAMETER);
|
||||||
if(token == null || token.isEmpty()){
|
if(token == null || token.isEmpty()){
|
||||||
if(Constants.DEBUG){
|
|
||||||
token = Constants.DEFAULT_TOKEN;
|
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue