You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
In order to use session based functions, specifically ones that use SessionValidationUtil, it is required that properties are set in identity.xml. The properties that need to be set are described here. For example, SessionBasedValidation.TableSearchURL.
The issue is that there is no relevant config mapping listed in the config-mapping repo. Because of this, when SessionValidationUtil attempts to get any "SessionBasedValidation" config properties they are null.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
Identity Server 5.9.0 and later
OS, DB, other environment details and versions:
5.11.0 running in Docker
Steps to reproduce:
Add the session functions JAR to the dropins folder
Invoke a function, getSessionData for instance, in the Script Based Adaptive Authentication console
NPE is thrown because the URL returned from the properties is null
Snippet of the stacktrace:
java.lang.NullPointerException
at java.base/java.net.URI$Parser.parse(URI.java:3104)
at java.base/java.net.URI.<init>(URI.java:600)
at java.base/java.net.URI.create(URI.java:881)
at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:76)
at org.wso2.carbon.identity.conditional.auth.functions.session.util.SessionValidationUtil.createHttpRequest(SessionValidationUtil.java:158)
at org.wso2.carbon.identity.conditional.auth.functions.session.util.SessionValidationUtil.getSessionDetails(SessionValidationUtil.java:69)
at org.wso2.carbon.identity.conditional.auth.functions.session.function.GetSessionDataFunction.getData(GetSessionDataFunction.java:63)
Related Issues:
The text was updated successfully, but these errors were encountered:
Description:
In order to use session based functions, specifically ones that use SessionValidationUtil, it is required that properties are set in identity.xml. The properties that need to be set are described here. For example,
SessionBasedValidation.TableSearchURL
.The issue is that there is no relevant config mapping listed in the config-mapping repo. Because of this, when SessionValidationUtil attempts to get any "SessionBasedValidation" config properties they are null.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
Identity Server 5.9.0 and later
OS, DB, other environment details and versions:
5.11.0 running in Docker
Steps to reproduce:
getSessionData
for instance, in the Script Based Adaptive Authentication consoleSnippet of the stacktrace:
Related Issues:
The text was updated successfully, but these errors were encountered: