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

2022-05-26 Thread Brian Burkhalter
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 (`#`). - Commit messages: - 8287237: (fs) Files.probeContentType r

RFR: 8287390: Cleanup Map usage in AuthenticationInfo.requestAuthentication

2022-05-26 Thread Andrey Turbanov
`AuthenticationInfo.requestAuthentication` uses separate `HashMap`'s `get` +`put` calls. Thread t, c; c = Thread.currentThread(); if ((t = requests.get(key)) == null) { requests.put (key, c); assert cached == null;

Re: RFR: 8272707: Resolving URI relative path with no / may lead to incorrect toString

2022-05-26 Thread Alexey Ivanov
On Thu, 26 May 2022 09:18:56 GMT, KIRIYAMA Takuya wrote: > Consider an authority component without trailing "/" as a base URI. When > resolving a relative path against this base URI, the resulting URI is a > concatenated URI without "/". > This behaviour should be fixed, which is rationalized b

RFR: 8272707: Resolving URI relative path with no / may lead to incorrect toString

2022-05-26 Thread KIRIYAMA Takuya
Consider an authority component without trailing "/" as a base URI. When resolving a relative path against this base URI, the resulting URI is a concatenated URI without "/". This behaviour should be fixed, which is rationalized by rfc3986#section-5.2.3. Could you review this fix? -

RFR: 8287318: ConcurrentModificationException in sun.net.httpserver.ServerImpl$Dispatcher

2022-05-26 Thread Jaikiran Pai
Can I please get a review of this change which addresses the issue noted in https://bugs.openjdk.java.net/browse/JDK-8287318? The `ServerImpl` has a `Dispatcher` thread which uses a `Selector` to select keys of interested. The selected keys is then iterated over and each key is removed through