RFR: 8353440: Disable FTP fallback for non-local file URLs by default

Eirik Bjørsnøs eirbjo at openjdk.org
Wed Apr 23 09:31:43 UTC 2025


On Tue, 22 Apr 2025 08:53:54 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

> No objection here to this change either.

Thanks for your help in making progress here!


> The property will need to be documented in src/java.base/share/classes/java/net/doc-files/net-properties.html also.

I have made a first attempt of a text documenting the new property. Since I don't want the documentation of this feature to encourage wider use, I added some verbiage recommending that explicit `ftp://` URIs should be used instead.

Happy to take input on formatting, content and language. Here's a rendered view of the current state:

<img width="644" alt="image" src="https://github.com/user-attachments/assets/ed0ed26e-8fbb-4a7c-a7f2-95afa1ca270a" />
 
> As for the name: how about something like "jdk.net.file.ftpfallback" ?

I think this works so have renamed and updated the tests as well.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24657#issuecomment-2823663291


More information about the net-dev mailing list