You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "AlesD (JIRA)" <ji...@apache.org> on 2008/02/24 15:45:14 UTC
[jira] Created: (CHAIN-43) ChainListener URL translation does not
work as expected
ChainListener URL translation does not work as expected
-------------------------------------------------------
Key: CHAIN-43
URL: https://issues.apache.org/jira/browse/CHAIN-43
Project: Commons Chain
Issue Type: Bug
Affects Versions: 1.1, Nightly Builds
Reporter: AlesD
Priority: Trivial
Method org.apache.commons.chain.web.ChainListener#translate(String) simply discards any spaces in URL instead of replacing them with %20 as stated in it's documentation.
As result the configuration form chain-config.xml files stored in JAR files on path with spaces is not processed.
BTW: Why not use
jarURL.toExternalForm().replaceAll(" ", "%20")
instead of
translate(jarURL.toExternalForm())
AlesD
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CHAIN-43) ChainListener URL translation does not
work as expected
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHAIN-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved CHAIN-43.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.2
Assignee: Niall Pemberton
Fixed thanks - http://svn.apache.org/viewvc?view=rev&revision=658426
P.S. The reason for not using replaceAll is that wasn't introduced until JDK 1.4 and Chain is still targetting JDK 1.3 as a minimum
> ChainListener URL translation does not work as expected
> -------------------------------------------------------
>
> Key: CHAIN-43
> URL: https://issues.apache.org/jira/browse/CHAIN-43
> Project: Commons Chain
> Issue Type: Bug
> Affects Versions: 1.1, Nightly Builds
> Reporter: Ales Dolecek
> Assignee: Niall Pemberton
> Priority: Trivial
> Fix For: 1.2
>
>
> Method org.apache.commons.chain.web.ChainListener#translate(String) simply discards any spaces in URL instead of replacing them with %20 as stated in it's documentation.
> As result the configuration form chain-config.xml files stored in JAR files on path with spaces is not processed.
> BTW: Why not use
> jarURL.toExternalForm().replaceAll(" ", "%20")
> instead of
> translate(jarURL.toExternalForm())
> AlesD
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.