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

        

Reply via email to