[
https://issues.apache.org/jira/browse/KNOX-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867937#comment-15867937
]
Sumit Gupta commented on KNOX-728:
----------------------------------
[~Wancy]. we did switch to always encoding URLs. We had a lot of issues with
special characters in URLs for some services. Specifically when we did it we
were solving for various URL issues in Ambari. So when you are looking at this,
please make sure you don't break that functionality and also I would double
check why jobhistory can't decode URLs.
> Don't encode Jobhistory URLs
> ----------------------------
>
> Key: KNOX-728
> URL: https://issues.apache.org/jira/browse/KNOX-728
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.9.0
> Environment: Knox 0.9.0, Hadoop 2.7.2
> Reporter: Andrey Kulikov
> Assignee: Shi Wang
>
> I think this problem is similar to KNOX-709. Going to the Jobhistory log page:
> https://hdp-node1:8443/gateway/hadoop-staging/jobhistory/joblogs/hdp-node2:45454/container_e696_1469407938027_0072_01_000011/attempt_1469407938027_0072_m_000009_0/hadoop
> {noformat}
> 16/07/26 10:21:37
> ||f4b6aeec-289f-4f96-9a81-fcf6df6cf762|audit|JOBHISTORYUI|akulikov|||dispatch|uri|http://hdp-node1:19888/jobhistory/logs/hdp-node2%3A45454/container_e696_1469407938027_0072_01_000011/attempt_1469407938027_0072_m_000009_0/hadoop/?user.name=akulikov|unavailable|Request
> method: GET
> 16/07/26 10:21:37
> ||f4b6aeec-289f-4f96-9a81-fcf6df6cf762|audit|JOBHISTORYUI|akulikov|||dispatch|uri|http://hdp-node1:19888/jobhistory/logs/hdp-node2%3A45454/container_e696_1469407938027_0072_01_000011/attempt_1469407938027_0072_m_000009_0/hadoop/?user.name=akulikov|success|Response
> status: 200
> 16/07/26 10:21:37
> ||f4b6aeec-289f-4f96-9a81-fcf6df6cf762|audit|JOBHISTORYUI|akulikov|||access|uri|/gateway/hadoop-staging/jobhistory/joblogs/hdp-node2:45454/container_e696_1469407938027_0072_01_000011/attempt_1469407938027_0072_m_000009_0/hadoop|success|Response
> status: 200
> {noformat}
> results in the error:
> {noformat}
> Cannot get container logs. Invalid nodeId: hdp-node2%3A45454
> {noformat}
> Jobhistory can't handle encoded paths.
> Knox 0.8.0 doesn't have this problem.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)