Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F089D200B8B for ; Mon, 15 Aug 2016 22:30:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ED8CA160AA7; Mon, 15 Aug 2016 20:30:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 77E4B160AB8 for ; Mon, 15 Aug 2016 22:30:23 +0200 (CEST) Received: (qmail 48463 invoked by uid 500); 15 Aug 2016 20:30:22 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 48412 invoked by uid 99); 15 Aug 2016 20:30:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 20:30:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 250652C02A9 for ; Mon, 15 Aug 2016 20:30:22 +0000 (UTC) Date: Mon, 15 Aug 2016 20:30:22 +0000 (UTC) From: "Michael Osipov (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WAGON-461) URL string not properly encoded by webdav MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 15 Aug 2016 20:30:24 -0000 [ https://issues.apache.org/jira/browse/WAGON-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421619#comment-15421619 ] Michael Osipov commented on WAGON-461: -------------------------------------- I have no idead what Sharefile but I am trying to figure out *who* is actually providing this faulty URI. What makes you think that this is a valid URI? > URL string not properly encoded by webdav > ----------------------------------------- > > Key: WAGON-461 > URL: https://issues.apache.org/jira/browse/WAGON-461 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-webdav > Affects Versions: 2.10 > Environment: All > Reporter: Mike Summers > > wagon-webdav is not calling EncodingUtil prior to instantiating MkColMethod which results in > {code:java} > Caused by: java.lang.IllegalArgumentException: Invalid uri 'https://snafu.sharefile-webdav.com/Shared Folders/Fit - Expert Services/IBM/': escaped absolute path not valid > {code} > when there are special characters in the URI string. > Changing line 153 of org.apache.maven.wagon.providers.webdav.WebDavWagon from > {code:java} > method = new MkColMethod( url ); > {code} > to > {code:java} > method = new MkColMethod( EncodingUtil.encodeURLToString( url ) ); > {code} > solves the issue although you may want to fix it elsewhere in the flow. -- This message was sent by Atlassian JIRA (v6.3.4#6332)