[
https://issues.apache.org/jira/browse/KNOX-2973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17779088#comment-17779088
]
ASF subversion and git services commented on KNOX-2973:
-------------------------------------------------------
Commit 03064bdbc6ae19b911f2b004778256f85df048df in knox's branch
refs/heads/master from Sandeep Moré
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=03064bdbc ]
KNOX-2973 - Fix redirect URI when host and port are query params of originalUrl
(#809)
> HbaseUI>Table Details not accessible from Knox endpoint intermittently
> ----------------------------------------------------------------------
>
> Key: KNOX-2973
> URL: https://issues.apache.org/jira/browse/KNOX-2973
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Reporter: Sandeep More
> Assignee: Sandeep More
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> This is due to the [SSO logic that checks for
> originalURL|https://github.com/apache/knox/blob/master/gateway-service-knoxsso/src/main/java/org/apache/knox/gateway/service/knoxsso/WebSSOResource.java#L365]
> query param.
> During the first login, this is the redirect URL:
> https://local.site/gateway/knoxsso/api/v1/websso?originalUrl=https://local.site/gateway/proxy/hbase/webui/master?host=local.site&port=16010
> When this reaches WebSSOResource.getOriginalUrlFromQueryParams()
> functionvalue of request.getParameter(ORIGINAL_URL_REQUEST_PARAM) is
> https://local.site/gateway/proxy/hbase/webui/master?host=local.site
> Note: port information is missing. This is because of the & query param which
> treats port as a separate param and not part of original URL.
> Also, because of the same reason '?' is added after the host, this is where
> it is done
> This is why additional ? gets added.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)