Summary: | If directory has spaces, then add API baseline doesn't work | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] PDE | Reporter: | Vikas Chandra <Vikas.Chandra> | ||||
Component: | API Tools | Assignee: | Vikas Chandra <Vikas.Chandra> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | akurtakov, daniel_megert, edscadding, sarika.sinha | ||||
Version: | 4.14 | Keywords: | regression | ||||
Target Milestone: | 4.14 RC1 | Flags: | sarika.sinha:
review+
|
||||
Hardware: | PC | ||||||
OS: | Windows 7 | ||||||
See Also: |
https://git.eclipse.org/r/153288 https://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=38ca2f903f105ac23b0d576c3d8fb3749fbc4ea7 |
||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Vikas Chandra
2019-11-20 10:33:54 EST
Created attachment 280744 [details]
Code where problem starts
PluginPathFinder.scanLocations(File[]) line: 284 New Gerrit change created: https://git.eclipse.org/r/153284 >>Problem happens in 4.11 as well but works in Luna
I double checked and found that this works well in 4.12 and 4.13, not sure how I check it problem to be happening in 4.11
New Gerrit change created: https://git.eclipse.org/r/153285 New Gerrit change created: https://git.eclipse.org/r/153288 Candidate gerrit for RC1 - > https://git.eclipse.org/r/153288 Looks good to me for RC1. Caused by 176312d9c10572510576b11df4e711a4d118025e Address SonarQube blockers - URL maps/sets performance Change-Id: I0759732abe9bd1d2d659e0ac5f9a676647c40df6 Gerrit change https://git.eclipse.org/r/153288 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=38ca2f903f105ac23b0d576c3d8fb3749fbc4ea7 verified on Eclipse SDK Version: 2019-12 (4.14) Build id: I20191125-1800 Explanation of problem: File-to-URL conversion Current conversion: File.toURL() Problem: Deprecated; doesn't produce properly escaped URLs Improved conversion: File.toURI().toURL() URL-to-File conversion Current conversion: new File(URL.getFile()) Problem: Doesn't unescape URLs Improved conversion: new File(URL.toURI()) The earlier patch improved the File-to-URL conversion to address a SonarQube blocker, but in doing so revealed the issue with URL-to-File conversion. If the SonarQube blocker is to be (re-)addressed, both sides of the conversion will need updating at once. As PDE does a lot of conversions in both directions I'm not sure how desirable that work would be! |