RFR 8022580: sun.net.ftp.impl.FtpClient.nameList(null)
Svetlana Nikandrova
svetlana.nikandrova at oracle.com
Tue Jul 5 14:40:57 UTC 2016
Hello,
please review this fix for bug
https://bugs.openjdk.java.net/browse/JDK-8022580
Webrev:
http://cr.openjdk.java.net/~msolovie/8022580/webrev.00/
Description:
There is no handling for null path parameter in the method sun.net.ftp.impl.FtpClient#nameList(), while javadoc says that "@param path a String containing the pathname of the directory to list or null for the current working directory". Changeset adds check that if param is null NLST will be sent without parameter (no-parameter default is current directory).
JPRT tested.
Thank you,
Svetlana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20160705/fadd539d/attachment.html>
More information about the net-dev
mailing list