| Summary: | [common] URIUtil.append doesn't work as expected (on windows) | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Ian Bull <irbull> |
| Component: | Components | Assignee: | equinox.components-inbox <equinox.components-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | john.arthorne, tjwatson |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
When using URIUtil.append(new URI("file:///c:/foo", "bar"); It returned "file:/c:/foo/bar" instead of "file:///c:/foo/bar" (notice the extra slashes). This fine, until you try to make relative URIs from this. In that case, the devices are different. Here is a snippet that demonstrates what I mean: public static void main(String[] args) throws URISyntaxException { URI uri1 = new URI("file:///c:/foo"); URI uri2 = URIUtil.append(uri1, "bar"); // Expected output: .. System.out.println(URIUtil.makeRelative(uri1, uri2)); // Actual output: file:///c:/foo <-- an absolte URI? }