Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 617DEC6F4 for ; Sat, 12 May 2012 20:51:20 +0000 (UTC) Received: (qmail 51807 invoked by uid 500); 12 May 2012 20:51:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 51410 invoked by uid 500); 12 May 2012 20:51:19 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 51392 invoked by uid 99); 12 May 2012 20:51:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 20:51:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 20:51:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 786DE492B62 for ; Sat, 12 May 2012 20:50:56 +0000 (UTC) Date: Sat, 12 May 2012 20:50:56 +0000 (UTC) From: "Gary D. Gregory (JIRA)" To: issues@commons.apache.org Message-ID: <165996318.58750.1336855856494.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1887094468.9935.1318525872040.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (VFS-368) SFTP documentation implies that "userDirIsRoot" defaults to true (but it defaults to false) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274071#comment-13274071 ] Gary D. Gregory commented on VFS-368: ------------------------------------- How much of a surprise would this change be for current implementations that use the defaults? IOW, how much would this break existing apps? > SFTP documentation implies that "userDirIsRoot" defaults to true (but it defaults to false) > ------------------------------------------------------------------------------------------- > > Key: VFS-368 > URL: https://issues.apache.org/jira/browse/VFS-368 > Project: Commons VFS > Issue Type: Bug > Reporter: Brendan Long > Priority: Minor > Labels: sftp > > On this documentation page: > http://commons.apache.org/vfs/filesystems.html#SFTP > It says: > SFTP > Provides access to the files on an SFTP server (that is, an SSH or SCP server). > URI Format > sftp://[ username[: password]@] hostname[: port][ absolute-path] > Examples > sftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz > The default is actually that the path is relative from the user's home directory. This can be changed by running: > SftpFileSystemConfigBuilder > .getInstance() > .setUserDirIsRoot(options, false); > I suggest changing the documentation to say [ relative-path ] and adding a note about absolute paths (but I'm not sure how to make it fit the style of this page). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira