[
https://issues.apache.org/jira/browse/VFS-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerome Lacoste updated VFS-185:
-------------------------------
Attachment: VFS-185-testcode.diff
The code I used to test. I tested by doing:
mvn clean install
cd examples
java -classpath
"target\commons-vfs-examples-1.1-20071218_edb_1.jar;..\core\target\commons-vfs-1.1-20071218_edb_1.jar;c:\Documents
and
Settings\et4642\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;c:\Documents
and Settings\et4642\.m2\repository\com\jcraft\jsch\0.1.36\jsch-0.1.36.jar"
org.apache.commons.vfs.libcheck.SftpCheck2 SFTP://user:[EMAIL
PROTECTED]/tmp/afile.txt
You may want to add this code somewhere as an example although it doesn't need
to be exactly in that place.
> sftp: URI with high case SFTP scheme are not accepted
> -----------------------------------------------------
>
> Key: VFS-185
> URL: https://issues.apache.org/jira/browse/VFS-185
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: Jerome Lacoste
> Priority: Minor
> Fix For: 1.1
>
> Attachments: VFS-185-testcode.diff, VFS-185.diff
>
>
> The sftp RFC only specifies low case sftp:// scheme, but I think commons vfs
> we should also consider high case sftp ones because of
> > http://www.ietf.org/rfc/rfc2396.txt
> >
> > 3.1. Scheme Component
> >
> > [...]
> >
> > Scheme names consist of a sequence of characters beginning with a
> > lower case letter and followed by any combination of lower case
> > letters, digits, plus ("+"), period ("."), or hyphen ("-"). For
> > resiliency, programs interpreting URI should treat upper case letters
> > as equivalent to lower case in scheme names (e.g., allow "HTTP" as
> > well as "http").
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.