Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-307

Wrong basedir returned for URL without protocol in PathUtils

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-6
    • 1.0-beta-7
    • wagon-provider-api
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dennisl@apache.org Dennis Lundberg
              dennisl@apache.org Dennis Lundberg
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: