RFR: 8223880: Update sun/net/ftp/FtpURL.java and sun/net/ftp/FtpURLConnectionLeak.java to work with IPv6 addresses

Arthur Eubanks aeubanks at google.com
Tue May 14 22:57:16 UTC 2019


In test/jdk/sun/net/ftp/FtpURL.java, extendedEnabled is always true. Same
with portEnabled and pasvEnabled. Is the assumption that all current
servers support these modes? If so, why is there a bool to say those modes
are not enabled?

*From: *Daniel Fuchs <daniel.fuchs at oracle.com>
*Date: *Tue, May 14, 2019 at 9:02 AM
*To: *OpenJDK Network Dev list
*Cc: *Arthur Eubanks

Hi,
>
> Some recent test stabilization fixes had a side effect on
> two FTP tests: now that the client might use the IPv6 loopback,
> the test might fail on IPv6 only hosts if the test server
> doesn't support the extended EPSV mode, or if the client
> isn't configured to use NO_PROXY and the default proxy selector
> doesn't bypass [0:0:0:0:0:0:0:1] - as happened on my local
> machine.
>
> I'd like to push this change that fixes two of the FTP
> test recently modified to work with IPv6 addresses as an example
> of what might need to be done to get such tests working on
> IPv6 only hosts.
>
> http://cr.openjdk.java.net/~dfuchs/webrev_8223880/webrev.00/
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8223880
>
> best regards,
>
> -- daniel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190514/84fe23d1/attachment.html>


More information about the net-dev mailing list