| Summary: | [ltk] "A file or folder with this name already exist" on empty input for resource rename dialog | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Ilya Platonov <realill> | ||||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | daniel_megert, malgorzata.tomczyk, markus.kell.r, Szymon.Brandys | ||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | 3.7 M4 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Ilya Platonov
Created attachment 182199 [details]
screenshot
Submitting screenshot
Created attachment 182290 [details]
Changed order of validation
The same error displayed as well for ?\? and ?/? file names. The reason that validator displayed the ?already exists? message was that the full path of target file was identical with parent directory. I?ve moved validation of the name earlier and now validator displays correct message.
Moving to JDT/UI. Well, the original problem is in IContainer.findMember(String): it specifies to find the members with the given *name* but there is no member with name "". Looking at the implementation, the method actually treats the name as path. I've filed bug 329373 to track this. Having said that, the patch works and I've committed it to HEAD (including updated copyright date). Available in builds >= N20101103-2000. |