This is an automated email from the ASF dual-hosted git repository.
more pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new 303645a KNOX-2601: ZeppelinUI created multiple sessions when going
via Knox (#446)
303645a is described below
commit 303645acc9dcad81984f7cdd9f26a736809aa6bb
Author: vedantlodha <[email protected]>
AuthorDate: Tue May 4 23:55:58 2021 +0530
KNOX-2601: ZeppelinUI created multiple sessions when going via Knox (#446)
Zeppelin uses JSESSIONID to identify a session. Zeppelin UI service
definition uses DefaultDispatch which prevents "SET-COOKIE" response header
from being set causing Zeppelin to create multiple sessions with KnoxSSO.
Co-authored-by: vedant.lodha <[email protected]>
---
.../src/main/resources/services/zeppelinui/0.8.1/service.xml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/gateway-service-definitions/src/main/resources/services/zeppelinui/0.8.1/service.xml
b/gateway-service-definitions/src/main/resources/services/zeppelinui/0.8.1/service.xml
index 8afd53d..61e6edb 100644
---
a/gateway-service-definitions/src/main/resources/services/zeppelinui/0.8.1/service.xml
+++
b/gateway-service-definitions/src/main/resources/services/zeppelinui/0.8.1/service.xml
@@ -98,5 +98,10 @@
</route>
</routes>
- <dispatch classname="org.apache.knox.gateway.dispatch.DefaultDispatch"/>
+ <dispatch classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch"
ha-classname="org.apache.knox.gateway.ha.dispatch.ConfigurableHADispatch"
use-two-way-ssl="false">
+ <param>
+ <name>responseExcludeHeaders</name>
+ <value>WWW-AUTHENTICATE</value>
+ </param>
+ </dispatch>
</service>