| Summary: | QueuedBuildData cannot handle projects names with spaces | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Mark Christiaens <mark.g.j.christiaens> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | damian_gonzalez, mark.g.j.christiaens, sebastian.zarnekow | ||||
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
||||
| Target Milestone: | SR1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 344373, 349887 | ||||||
| Attachments: |
|
||||||
|
Description
Mark Christiaens
Doing this as a patch:
...
public void queueURI(URI uri) {
if (uri.isPlatformResource()) {
String projectName = URI.decode (uri.segment(1));
...
BTW, In order to patch this, I had to pretty much copy the entire QueuedBuildData class because its fields are private. Maybe make those protected? BTW (2), This bug also manifests itself as follows: If you create a new project with a space in its name and the project creation also immediately opens a file in that project, then that file doesn't get build properly. So, it's probably useful to triage the existing bug reports to see if they could be caused by this flaw. Created attachment 198703 [details]
proposed patch
I believe the IStorage2UriMapper should be used here.
Mark, thanks for the ticket and the detailed description on how to reproduce the issue. Thanks for patch and the pointer to the IStorage2URIMapper, Knut. Pushed a slightly modified solution to master. Please verify. *** Bug 353425 has been marked as a duplicate of this bug. *** Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |