tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2424) Application folder doesn't support "sub folders" (slash in path)
Date Mon, 08 Dec 2014 18:43:13 GMT

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

Jochen Kemnade commented on TAP5-2424:
--------------------------------------

Writing the test case took me far too long. I've probably become so accustomed to writing
Spock tests that it almost physically hurts to have to write TestNG or JUnit tests again.
;-)
It doesn't exactly belong here, but the build should run fine with Java 8. What kind of errors
did you get?

> Application folder doesn't support "sub folders" (slash in path)
> ----------------------------------------------------------------
>
>                 Key: TAP5-2424
>                 URL: https://issues.apache.org/jira/browse/TAP5-2424
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4, 5.3.8
>            Reporter: Nicolas Bouillon
>            Assignee: Jochen Kemnade
>              Labels: easyfix, newbie, patch
>             Fix For: 5.4
>
>         Attachments: 0001-Trim-the-applicationFolderPrefix-for-Event-Request-on-tap-5.3.8.patch
>
>
> I've set my tapstry servlet filter as :
> 	<filter-mapping>
> 		<filter-name>app</filter-name>
> 		<url-pattern>/path1/path2/*</url-pattern>
> 	</filter-mapping>
> And in the AppModule 
>         configuration.add(SymbolConstants.APPLICATION_FOLDER, "path1/path2");
> It works for Page Requests, but for Event requests it doesn't work.
> The probleme is here org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl#decodeComponentEventRequest
> The method used to remotve the application folder is not the same as the one used in
org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl#decodePageRenderRequest
> In decodeComponentEventRequest, the request path comparison is done between the applicationFolderPrefix
and the substring until the first "/". In decodePageRenderRequest, the comparison is done
otherwise.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message