You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2007/10/24 08:39:50 UTC
[jira] Created: (VFS-178) Indicate that passive FTP (and other
options) should be used when writing to a FTP location
Indicate that passive FTP (and other options) should be used when writing to a FTP location
-------------------------------------------------------------------------------------------
Key: VFS-178
URL: https://issues.apache.org/jira/browse/VFS-178
Project: Commons VFS
Issue Type: Improvement
Affects Versions: Nightly Builds
Reporter: Asankha C. Perera
I am trying to use VFS to connect to a FTP file, but the problem is that I cannot specify that PASSIVE mode should be used. I think we could use the format below to specify for example: ?passive=true etc.
ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz?option=value
---------------- Referece thread ----------------------------
http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/%3c46DFE27E.6070903@ops.co.at%3e
> I think the use of the ?? would not be a good URI scheme. However, maybe we
> > could simply make the VFS parameters unique. For example add vfs. in front
> > of them.
> >
> > For example,
> > http://www/path/cgi-bin/send.pl?FILE=ABC&TYPE=PDF&vfs.proxyHost=proxy.host&vfs.proxyPort=8080
> >
Yes, for sure, this could make it too - I thought about it too. Even if
I am still not that happy with this query-string parsing/repacking stuff
I'd commit it if someone contributes a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (VFS-178) Indicate that passive FTP (and other
options) should be used when writing to a FTP location
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537229 ]
Mario Ivankovits commented on VFS-178:
--------------------------------------
Sorry for being so busy lately with other things ....
This patch is just for vfs.passive and just for ftp, but we need a more general solution for this by using the DelegatingFileSystemOptionsBuilder.setConfigString() method.
Done right it will immediately allow to set any configuration exposed through the various FileSystemOptionBuilders ... and any future addition too - as long as it is possible to create the required value-type out of a simple string.
> Indicate that passive FTP (and other options) should be used when writing to a FTP location
> -------------------------------------------------------------------------------------------
>
> Key: VFS-178
> URL: https://issues.apache.org/jira/browse/VFS-178
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: Nightly Builds
> Reporter: Asankha C. Perera
> Attachments: vfs-ftp.patch
>
>
> I am trying to use VFS to connect to a FTP file, but the problem is that I cannot specify that PASSIVE mode should be used. I think we could use the format below to specify for example: ?passive=true etc.
> ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz?option=value
> ---------------- Referece thread ----------------------------
> http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/%3c46DFE27E.6070903@ops.co.at%3e
> > I think the use of the ?? would not be a good URI scheme. However, maybe we
> > > could simply make the VFS parameters unique. For example add vfs. in front
> > > of them.
> > >
> > > For example,
> > > http://www/path/cgi-bin/send.pl?FILE=ABC&TYPE=PDF&vfs.proxyHost=proxy.host&vfs.proxyPort=8080
> > >
> Yes, for sure, this could make it too - I thought about it too. Even if
> I am still not that happy with this query-string parsing/repacking stuff
> I'd commit it if someone contributes a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (VFS-178) Indicate that passive FTP (and other
options) should be used when writing to a FTP location
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622497#action_12622497 ]
Sebb commented on VFS-178:
--------------------------
According to RFX1738, "?" is allowed to be used unencoded as part of the ftp path, so using it for defining parameters seems a bit risky.
Perhaps it would be better to choose a different introducer, for example ";" - the FTP scheme already has ";type=" as an optional qualifier.
Maybe it would be safer to use ";vfs.mode=" for this specific case?
Or perhaps ";vfs.option=" for the general case?
> Indicate that passive FTP (and other options) should be used when writing to a FTP location
> -------------------------------------------------------------------------------------------
>
> Key: VFS-178
> URL: https://issues.apache.org/jira/browse/VFS-178
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: Nightly Builds
> Reporter: Asankha C. Perera
> Attachments: vfs-ftp.patch
>
>
> I am trying to use VFS to connect to a FTP file, but the problem is that I cannot specify that PASSIVE mode should be used. I think we could use the format below to specify for example: ?passive=true etc.
> ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz?option=value
> ---------------- Referece thread ----------------------------
> http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/%3c46DFE27E.6070903@ops.co.at%3e
> > I think the use of the ?? would not be a good URI scheme. However, maybe we
> > > could simply make the VFS parameters unique. For example add vfs. in front
> > > of them.
> > >
> > > For example,
> > > http://www/path/cgi-bin/send.pl?FILE=ABC&TYPE=PDF&vfs.proxyHost=proxy.host&vfs.proxyPort=8080
> > >
> Yes, for sure, this could make it too - I thought about it too. Even if
> I am still not that happy with this query-string parsing/repacking stuff
> I'd commit it if someone contributes a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (VFS-178) Indicate that passive FTP (and other
options) should be used when writing to a FTP location
Posted by "Rajika Kumarasiri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830060#action_12830060 ]
Rajika Kumarasiri commented on VFS-178:
---------------------------------------
hi,
Can some one please explain the status of this issue? Has the discussion been implemented in the trunk ?
Thanks,
Rajika
> Indicate that passive FTP (and other options) should be used when writing to a FTP location
> -------------------------------------------------------------------------------------------
>
> Key: VFS-178
> URL: https://issues.apache.org/jira/browse/VFS-178
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: Nightly Builds
> Reporter: Asankha C. Perera
> Attachments: vfs-ftp.patch
>
>
> I am trying to use VFS to connect to a FTP file, but the problem is that I cannot specify that PASSIVE mode should be used. I think we could use the format below to specify for example: ?passive=true etc.
> ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz?option=value
> ---------------- Referece thread ----------------------------
> http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/%3c46DFE27E.6070903@ops.co.at%3e
> > I think the use of the ?? would not be a good URI scheme. However, maybe we
> > > could simply make the VFS parameters unique. For example add vfs. in front
> > > of them.
> > >
> > > For example,
> > > http://www/path/cgi-bin/send.pl?FILE=ABC&TYPE=PDF&vfs.proxyHost=proxy.host&vfs.proxyPort=8080
> > >
> Yes, for sure, this could make it too - I thought about it too. Even if
> I am still not that happy with this query-string parsing/repacking stuff
> I'd commit it if someone contributes a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (VFS-178) Indicate that passive FTP (and other
options) should be used when writing to a FTP location
Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622471#action_12622471 ]
Sergey Vladimirov commented on VFS-178:
---------------------------------------
Mario,
Can you apply current fix and redo it in generic way later, or we need to wait for generic patch?
> Indicate that passive FTP (and other options) should be used when writing to a FTP location
> -------------------------------------------------------------------------------------------
>
> Key: VFS-178
> URL: https://issues.apache.org/jira/browse/VFS-178
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: Nightly Builds
> Reporter: Asankha C. Perera
> Attachments: vfs-ftp.patch
>
>
> I am trying to use VFS to connect to a FTP file, but the problem is that I cannot specify that PASSIVE mode should be used. I think we could use the format below to specify for example: ?passive=true etc.
> ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz?option=value
> ---------------- Referece thread ----------------------------
> http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/%3c46DFE27E.6070903@ops.co.at%3e
> > I think the use of the ?? would not be a good URI scheme. However, maybe we
> > > could simply make the VFS parameters unique. For example add vfs. in front
> > > of them.
> > >
> > > For example,
> > > http://www/path/cgi-bin/send.pl?FILE=ABC&TYPE=PDF&vfs.proxyHost=proxy.host&vfs.proxyPort=8080
> > >
> Yes, for sure, this could make it too - I thought about it too. Even if
> I am still not that happy with this query-string parsing/repacking stuff
> I'd commit it if someone contributes a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (VFS-178) Indicate that passive FTP (and other
options) should be used when writing to a FTP location
Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asankha C. Perera updated VFS-178:
----------------------------------
Attachment: vfs-ftp.patch
Mario
Could you commit this fix? This is required for Apache Synapse
thanks
asankha
> Indicate that passive FTP (and other options) should be used when writing to a FTP location
> -------------------------------------------------------------------------------------------
>
> Key: VFS-178
> URL: https://issues.apache.org/jira/browse/VFS-178
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: Nightly Builds
> Reporter: Asankha C. Perera
> Attachments: vfs-ftp.patch
>
>
> I am trying to use VFS to connect to a FTP file, but the problem is that I cannot specify that PASSIVE mode should be used. I think we could use the format below to specify for example: ?passive=true etc.
> ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz?option=value
> ---------------- Referece thread ----------------------------
> http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/%3c46DFE27E.6070903@ops.co.at%3e
> > I think the use of the ?? would not be a good URI scheme. However, maybe we
> > > could simply make the VFS parameters unique. For example add vfs. in front
> > > of them.
> > >
> > > For example,
> > > http://www/path/cgi-bin/send.pl?FILE=ABC&TYPE=PDF&vfs.proxyHost=proxy.host&vfs.proxyPort=8080
> > >
> Yes, for sure, this could make it too - I thought about it too. Even if
> I am still not that happy with this query-string parsing/repacking stuff
> I'd commit it if someone contributes a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.