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

URL string not properly encoded by webdav

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.10
    • None
    • wagon-webdav
    • None
    • All

    Description

      wagon-webdav is not calling EncodingUtil prior to instantiating MkColMethod which results in

      Caused by: java.lang.IllegalArgumentException: Invalid uri 'https://snafu.sharefile-webdav.com/Shared Folders/Fit - Expert Services/IBM/': escaped absolute path not valid
      

      when there are special characters in the URI string.

      Changing line 153 of org.apache.maven.wagon.providers.webdav.WebDavWagon from

                  method = new MkColMethod( url );
      

      to

                  method = new MkColMethod( EncodingUtil.encodeURLToString( url ) );
      

      solves the issue although you may want to fix it elsewhere in the flow.

      Attachments

        1. logs.zip
          7 kB
          Mike Summers

        Issue Links

          Activity

            People

              Unassigned Unassigned
              msummers Mike Summers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: