[jboss-jira] [JBoss JIRA] (WFLY-3385) when using jsp:include the jsp:param being encoded at the included jsp

Gael Marziou (JIRA) issues at jboss.org
Wed Aug 20 13:31:30 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994459#comment-12994459 ] 

Gael Marziou commented on WFLY-3385:
------------------------------------

I tried replacing undertow-core, undertow-servlet and undertow-websockets-jsr in wildfly 8.1 modules with 1.1.0.Beta7 snasphot I built but I got an IndexOutOfBoundsException in ServletPrintWriter.
So I replaced by official 1.1.0.Beta6 and still got the same issue: http://pastebin.com/GunGKqqu

I even tried to update jastow to 1.0.1.Final but it did not make any difference with Undertow 1.1.0.Beta6

So I grabbed latest WildFly 9 build (#1334)  from https://ci.jboss.org/hudson/view/All/job/WildFly-latest-master/
It included Undertow 1.1.0.Beta5, I copied the jars to wildfly 8.1 modules and this time it worked for me.



> when using jsp:include the jsp:param being encoded at the included jsp
> ----------------------------------------------------------------------
>
>                 Key: WFLY-3385
>                 URL: https://issues.jboss.org/browse/WFLY-3385
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Undertow)
>    Affects Versions: 8.1.0.CR2
>            Reporter: roy mizrachi
>            Assignee: Stuart Douglas
>             Fix For: 9.0.0.Beta1
>
>
> I have JSP A that includes JSP B like this:
> <jsp:include page="../anotherFolder/B.jsp">
>       <jsp:param name="pathToRootContext" value='../' />                                
> </jsp:include>
> In JSP B i have the following:
> String pathToRootContext = request.getParameter("pathToRootContext");
> The value i get in the pathToRootContext  is "..%2f"
> I tried the following but it didn't help:
> <servlet-container name="default" default-encoding="UTF-8">
>                 <jsp-config development="true" java-encoding="UTF-8"/>
>             </servlet-container>



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list