You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steve Brown (JIRA)" <ji...@apache.org> on 2019/08/08 09:03:00 UTC

[jira] [Updated] (WAGON-566) Fix for MSITE-738

     [ https://issues.apache.org/jira/browse/WAGON-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Brown updated WAGON-566:
------------------------------
    Description: 
This is a simple fix for MSITE-738. I have set the priority as Major because that is the priority set for MSITE-738

Some Repository Managers, e.g. JFrog's Artifactory, do not allow puts to a URL with relative path elements ("." or "..").

Artifactory are addressing the issue for downloads from remote sites ([RTFACT-16457|https://www.jfrog.com/jira/browse/RTFACT-16457]).  Artifactory returns this error:

{{"status" : 500,"}}
 {{"Path element cannot end with a dot: sites/ ... redacted ... */../*"}}

The fix is to amend 
 {{org.apache.maven.wagon.shared.http.EncodeUtils.encodeURL( String url )}}
  to normalize the returned URI.

I will create a pull request.

 

  was:
This is a simple fix for MSITE-738. I have set the priority as Major because that is the priority set for MSITE-738

Some Repository Managers, e.g. JFrog's Artifactory do not allow puts to a URL with relative path elements ("." or "..").

Artifactory are addressing the issue for downloads from remote sites ([RTFACT-16457|https://www.jfrog.com/jira/browse/RTFACT-16457]).  Artifactory returns this error:

{{"status" : 500,"}}
{{"Path element cannot end with a dot: sites/ ... redacted ... */../*"}}

The fix is to amend 
{{org.apache.maven.wagon.shared.http.EncodeUtils.encodeURL( String url )}}
 to normalize the returned URI.

I will create a pull request.

 


> Fix for MSITE-738
> -----------------
>
>                 Key: WAGON-566
>                 URL: https://issues.apache.org/jira/browse/WAGON-566
>             Project: Maven Wagon
>          Issue Type: Improvement
>          Components: wagon-http
>    Affects Versions: 3.3.3
>            Reporter: Steve Brown
>            Priority: Major
>              Labels: easyfix, newbie
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> This is a simple fix for MSITE-738. I have set the priority as Major because that is the priority set for MSITE-738
> Some Repository Managers, e.g. JFrog's Artifactory, do not allow puts to a URL with relative path elements ("." or "..").
> Artifactory are addressing the issue for downloads from remote sites ([RTFACT-16457|https://www.jfrog.com/jira/browse/RTFACT-16457]).  Artifactory returns this error:
> {{"status" : 500,"}}
>  {{"Path element cannot end with a dot: sites/ ... redacted ... */../*"}}
> The fix is to amend 
>  {{org.apache.maven.wagon.shared.http.EncodeUtils.encodeURL( String url )}}
>   to normalize the returned URI.
> I will create a pull request.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)