sdedic opened a new pull request, #6378:
URL: https://github.com/apache/netbeans/pull/6378

   The original commit 3fd09f3 that causes this bug changed the processing 
since although NBLS reported nbjrt or jar URIs in form 
`nbjrt:file:/space/java/17/!/modules/java.base/?CLASS#java.util.Collections`, 
the LSP client seems to mangle the scheme and ! by urlencoding it.  The 
original code in 3fd09f3  used URLDecoder, which demangles those parts, but 
also decodes other potentially URLeconded characters, such as spaces in path. 
   
   This PR handles the specific sitiuation when there are multiple (nested) 
schemes like `jar:file:` or `nbjrt:file:` -- these always precede the first 
slash. In both cases, `!` serves as a delimiter for the inner scheme's part, 
followed by `/`. So only these parts are searched for and demangled.
   
   The URI is later passed to `URI.create()` that decodes the rest.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to