RFR: 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux [v3]

Brian Burkhalter bpb at openjdk.java.net
Tue May 31 18:13:35 UTC 2022


> Modify `sun.net.www.MimeTable.findByFileName(String)` to attempt to find the file extension in the entire file name if it is not found in the portion of the name preceding the optional fragment beginning with a hash (`#`).

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8287237: Correct off-by-one endIndex passed to String.substring()

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8909/files
  - new: https://git.openjdk.java.net/jdk/pull/8909/files/eab33e80..7c877f9e

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8909&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8909&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8909.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8909/head:pull/8909

PR: https://git.openjdk.java.net/jdk/pull/8909


More information about the net-dev mailing list