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

URL string not properly encoded by webdav

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.10
    • Fix Version/s: None
    • Component/s: wagon-webdav
    • Labels:
      None
    • Environment:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: