This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197775 - Unreadable error message when renaming a file
Summary: Unreadable error message when renaming a file
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0.1
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-14 21:33 UTC by jsmith5and5
Modified: 2011-08-02 13:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jsmith5and5 2011-04-14 21:33:05 UTC
This is in a file system implemented from AbstractFileSystem.

When you attempt to rename a file and include disallowed characters such as '/' (because the rename is only meant to be within a folder) then a warning dialog pops up with the message:

Cannot rename file folderA/file.txt in FSName to folderB/file.txt.. New file exists: {3}. Rename result: {4}.

As you can see there is missing text replacement.

This isn't a problem for the file-based file system because it uses a different resource bundle.

The resource bundle that needs to be modified is openide.filesystems/src/org/openide/filesystems/Bundle.properties and the property is:

EXC_CannotRename=Cannot rename file {0} in {1} to {2}. New file exists: {3}. Rename result: {4}.

As far as I can see, the key is only used a couple times; both within org.openide.filesystems.AbstractFileObject. Both usages only provide 3 parameters so the part starting at "New file" should just be gotten rid of to make it similar to
masterfs/src/org/netbeans/modules/masterfs/filebasedfs/Bundle.properties which just has:

EXC_CannotRename=Cannot rename file {0} in {1} to {2}.
Comment 1 Jaroslav Tulach 2011-07-29 13:13:31 UTC
ergonomics#83456140df59
Comment 2 Quality Engineering 2011-08-02 13:43:07 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/83456140df59
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #197775: Using special bundle key for three arguments message