[ 
https://issues.apache.org/jira/browse/HDFS-2025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065482#comment-13065482
 ] 

sravankorumilli commented on HDFS-2025:
---------------------------------------

Thanks Daryn for your comments, as I observe form's fields will be encoded and 
sent through the HTTP request implicitly then there is no need to encode once 
again. Encoding the referrer once again is failing further URL validations 
which will be called when we click submit as in the corresponding code snippet
{code}
referrer = JspHelper.validateURL(req.getParameter("referrer"));
{code}
req.getParameter("referrer") will give the encoded URL value and inside 
validateURL URL constructor will throw an Exception as the value passed to it 
is not a URL.

Correct me if I am wrong...


> Go Back to File View link is not working in tail.jsp
> ----------------------------------------------------
>
>                 Key: HDFS-2025
>                 URL: https://issues.apache.org/jira/browse/HDFS-2025
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: data-node
>    Affects Versions: 0.23.0
>            Reporter: sravankorumilli
>            Assignee: sravankorumilli
>            Priority: Minor
>         Attachments: HDFS-2025.patch, HDFS-2025_1.patch, ScreenShot_1.jpg
>
>
> While browsing the file system.
> Click on any file link to go to the page where the file contents are 
> displayed, then when we click on '*Tail this file*' link.
> The control will go to the tail.jsp here when we
> Click on '*Go Back to File View*' option.
> HTTP Error page not found will come.
> This is because the referrer URL is encoded and the encoded URL is itself 
> being used in the '*Go Back to File View*' hyperlink which will be treated as 
> a relative URL and thus the HTTP request will fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to