[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2021-10-22 Thread Yani Mihaylov (Jira)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17432854#comment-17432854
 ] 

Yani Mihaylov commented on NET-642:
---

Hi [~ggregory] ,

[https://github.com/apache/commons-net/pull/90|https://github.com/apache/commons-net/pull/90,]

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2021-10-18 Thread Gary D. Gregory (Jira)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17430214#comment-17430214
 ] 

Gary D. Gregory commented on NET-642:
-

Hi [~ymihaylov]

Feel free to provide a PR on GitHub. 

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2021-10-18 Thread Yani Mihaylov (Jira)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17430056#comment-17430056
 ] 

Yani Mihaylov commented on NET-642:
---

Hello,

Currently this is blocking us switching to apache-commons-net.

Is there any plan soon to start working on this?

Thanks!

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2020-08-01 Thread Sebb (Jira)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17169316#comment-17169316
 ] 

Sebb commented on NET-642:
--

[~dsylaiev] Thanks for the suggested fix. However it uses reflection, which is 
risky as it depends on implementation details.

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2019-09-27 Thread Dmytro Sylaiev (Jira)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16939233#comment-16939233
 ] 

Dmytro Sylaiev commented on NET-642:


[https://github.com/Talend/tdi-studio-se/tree/master/main/plugins/org.talend.designer.components.libs/libs_src/commons-net-ftps-proxy]

 

Here's additional lib with fix for commons-net

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2019-09-26 Thread Danish Kamaal (Jira)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938804#comment-16938804
 ] 

Danish Kamaal commented on NET-642:
---

I am writing a fix for this. This issue has been open for too long and I think 
there should be a fix.

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2019-02-14 Thread Andreas Bisiach (JIRA)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16768364#comment-16768364
 ] 

Andreas Bisiach commented on NET-642:
-

I have the exact same issue using HTTP Proxy. The failing combination is HTTP 
proxy +  Local Passive Mode + execPROT = P

 

FTPSClient ftps;

Proxy proxy = *new* Proxy(Type.*_HTTP_*, *new* InetSocketAddress("", 
));

ftps.setProxy(proxy);

ftps.execPROT("P");

ftps.enterLocalPassiveMode();

 

I could not make the mentioned work around work (adding explicit 
System._setProperty_("socksProxyPort", ""); 
System._setProperty_("socksProxyHost" ,"");

 Any suggested workaround?

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2018-12-14 Thread Dmytro Sylaiev (JIRA)


[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16721590#comment-16721590
 ] 

Dmytro Sylaiev commented on NET-642:


Also have this issue. Can't use HTTP proxy for FTPS connection which require 
PROT P

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2018-02-08 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16357162#comment-16357162
 ] 

Sebb commented on NET-642:
--

Yes, I realise that.
But it is still a potential work-round for some circumstances.
And it also allows one to check that the code is otherwise working OK.

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2018-02-08 Thread Johannes Frank (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16357039#comment-16357039
 ] 

Johannes Frank commented on NET-642:


The issue with the java way of using proxies is that it's totally cumbersome. 
The fact that commons-net has its own proxy management is basically one of the 
major selling points for us to keep using commons-net. We already have this 
proxy management for several other things but whenever we have alternative 
approaches we take them. Main issue is that especially with proxies that have 
authentication you can basically only have one set of credentials for any given 
proxy server at any given time.

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2018-02-08 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16356981#comment-16356981
 ] 

Sebb commented on NET-642:
--

Looks like NET-637 may be due to the same cause.

It has a work-round which is to use system properties to define the SOCKS proxy.

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2018-02-08 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16356952#comment-16356952
 ] 

Sebb commented on NET-642:
--

I see.

So what needs to be done then?
I assume there is a good reason to clear the proxy in setSocketFactory, so 
dropping that might break some existing code.

[It looks like there is an unrelated bug in execPROT - it calls 
initSslContext() (which sets context if necessary) after using context.
If the code works in other situations I assume it is because the context has 
already been set up.]

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2018-02-08 Thread Johannes Frank (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16356931#comment-16356931
 ] 

Johannes Frank commented on NET-642:


No it doesn't because setProxy() resets the Socketfactory to a 
DefaultSocketFactory (which does not utilize TLS) - execPROT("P") earlier 
replaces the socket factory with a specific FTPSSocketFactory and initializes 
the SSL/TLS Context - all of which is lost when setProxy bluntly resets the 
socketfactory to default afterwards in your example.

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2018-02-08 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16356894#comment-16356894
 ] 

Sebb commented on NET-642:
--

execPROT("P") calls setSocketFactory which clears the proxy variable.
I don't know enough about this to determine whether execProt should always call 
setSocketFactory and/or whether setSocketFactory should clear the proxy.

But an obvious work-round is to use:

{code}
Proxy p =client.getProxy(); // save ...
client.execPROT("P");
client.setProxy(p); // ... restore the proxy
{code}

Does that fix the issue?

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2017-09-18 Thread Johannes Frank (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16170126#comment-16170126
 ] 

Johannes Frank commented on NET-642:


*bump*

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2017-08-28 Thread Johannes Frank (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16143544#comment-16143544
 ] 

Johannes Frank commented on NET-642:


Any thoughts on my PR?

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2017-08-11 Thread Johannes Frank (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16123134#comment-16123134
 ] 

Johannes Frank commented on NET-642:


I have the unit test but how and to which branch should I create a PR for that?

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2017-08-10 Thread Gary Gregory (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16122295#comment-16122295
 ] 

Gary Gregory commented on NET-642:
--

Hi Johannes,

Thank you for your report.

Feel free to create a PR on GitHub with a unit test if you can.

Gary

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (NET-642) using execPROT on FTPSClients with Proxy Settings removes Proxy Settings

2017-08-10 Thread Johannes Frank (JIRA)

[ 
https://issues.apache.org/jira/browse/NET-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16121397#comment-16121397
 ] 

Johannes Frank commented on NET-642:


Setting it to critical because we already have two customers now that can't 
switch from FTP to FTPS due to the need of going through a Proxy.

> using execPROT on FTPSClients with Proxy Settings removes Proxy Settings
> 
>
> Key: NET-642
> URL: https://issues.apache.org/jira/browse/NET-642
> Project: Commons Net
>  Issue Type: Bug
>  Components: FTP
>Affects Versions: 3.6
> Environment: Java 1.8.0_112
> Linux 64bit
>Reporter: Johannes Frank
>Priority: Critical
>
> In Reference to https://issues.apache.org/jira/browse/NET-578
> I'm trying to establish an FTPS Connection via a HTTP Proxy. The Control 
> Connection is properly established, however the Moment I do execPROT the 
> Proxy settings are resetted by call to setSocketFactory(new 
> FTPSSocketFactory(context)); in FTPSClient.java:534.
> This causes FTPSClients with a call to execPROT to actually ignore the proxy 
> settings and attempt to contact the FTPS Server directly for data connections.
> Since we are required to use PROT P this is currently blocking our feature 
> for FTPS Connections via HTTP proxy.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)