[
https://jira.codehaus.org/browse/WAGON-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed WAGON-325.
--------------------------------
Resolution: Won't Fix
Please refer to
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
if you're wondering why this issue was closed out.
> Interpretation of sftp and ftp URIs is inconsistent
> ---------------------------------------------------
>
> Key: WAGON-325
> URL: https://jira.codehaus.org/browse/WAGON-325
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-ssh
> Affects Versions: 1.0-beta-7
> Reporter: Andreas Sewe
>
> Currently, a {{sftp}} URI of {{sftp://example.org/some/project}} essentially
> translates to the following commands:
> {quote}
> sftp example.org
> cd /
> cd some
> cd project
> ...
> {quote}
> But this is inconsistent with the interpretation of {{ftp}} URIs (as
> standardized by <http://www.ietf.org/rfc/rfc1738> and followed by
> {{wagon-ftp}}):
> {quote}
> ftp example.org
> cd some
> cd project
> ...
> {quote}
> Unlike {{wagon-ftp}}, {{wagon-ssh}} seems to treat the slash after
> {{example.org}} as a part of the path already.
> But at least for the {{ftp}} URI scheme this is wrong (according to RFC 1738):
> {quote}
> url-path
> The rest of the locator consists of data specific to the
> scheme, and is known as the "url-path". It supplies the
> details of how the specified resource can be accessed. Note
> that the "/" between the host (or port) and the url-path is
> NOT part of the url-path.
> {quote}
> {quote}
> The url-path of a FTP URL has the following syntax:
> <cwd1>/<cwd2>/.../<cwdN>/<name>;type=<typecode>
> Where <cwd1> through <cwdN> and <name> are (possibly encoded) strings
> and <typecode> is one of the characters "a", "i", or "d". The part
> ";type=<typecode>" may be omitted. The <cwdx> and <name> parts may be
> empty. The whole url-path may be omitted, including the "/"
> delimiting it from the prefix containing user, password, host, and
> port.
> The url-path is interpreted as a series of FTP commands as follows:
> Each of the <cwd> elements is to be supplied, sequentially, as the
> argument to a CWD (change working directory) command.
> ...
> {quote}
> It would be great if an option could be added to {{wagon-ssh}} such that
> interprets {{sftp}} in a RFC-1738-compliant fashion.
> In particular, it would make the life of Maven users easier who do not have
> any control over the location of their remote _home_ directory. Such a setup
> (common with shared webhosting) makes it hard if not impossible to include an
> absolute URI in one's POM (e.g.,
> {{sftp://example.org//path/could/change/at/any/moment/some/project}}; note
> the double slash) as a workaround.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)