You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2010/05/14 08:56:14 UTC
[jira] Created: (WAGON-307) Wrong basedir returned for URL without
protocol in PathUtils
Wrong basedir returned for URL without protocol in PathUtils
------------------------------------------------------------
Key: WAGON-307
URL: http://jira.codehaus.org/browse/WAGON-307
Project: Maven Wagon
Issue Type: Bug
Components: wagon-provider-api
Affects Versions: 1.0-beta-6
Reporter: Dennis Lundberg
PathUtils.basedir(String url) currently expects the url to contain the string "://". But this is not always true, see linked issue in the Site Plugin for the full use case. The result is that the returned value is off-by-one in the call substring(). This should be handled gracefully, to allow for urls without a protocol.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (WAGON-307) Wrong basedir returned for URL without
protocol in PathUtils
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGON-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed WAGON-307.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.0-beta-7
Assignee: Dennis Lundberg
Fixed in [r944139|http://svn.apache.org/viewvc?view=revision&revision=944139].
> Wrong basedir returned for URL without protocol in PathUtils
> ------------------------------------------------------------
>
> Key: WAGON-307
> URL: http://jira.codehaus.org/browse/WAGON-307
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-provider-api
> Affects Versions: 1.0-beta-6
> Reporter: Dennis Lundberg
> Assignee: Dennis Lundberg
> Fix For: 1.0-beta-7
>
>
> PathUtils.basedir(String url) currently expects the url to contain the string "://". But this is not always true, see linked issue in the Site Plugin for the full use case. The result is that the returned value is off-by-one in the call substring(). This should be handled gracefully, to allow for urls without a protocol.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira