AssetPathConstructorImpl should URL-encode the application version
------------------------------------------------------------------
Key: TAP5-1691
URL: https://issues.apache.org/jira/browse/TAP5-1691
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.2.6
Reporter: Jochen Kemnade
Priority: Minor
When I deploy snapshot versions of T5 webapps, I usually extend the
maven/gradle version number by an ISO timestamp. Therefore, my version number
always contains a '+', ("...+0[12]00"). The asset urls generated by
AssetPathConstructorImpl don't encode that plus using URLEncoder but
ContextPathEncoderImpl.decodePath tries to decode the version string via
URLEncoder.decode() which fails:
java.lang.IllegalArgumentException: Input string
'3.10.0-SNAPSHOT20111010T153002+0200' is not valid; the character '+' at
position 31 is not valid.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira