Bug 1197644 - Configurable Workbench: Exception is displayed after copying or renaming plugin
Summary: Configurable Workbench: Exception is displayed after copying or renaming plugin
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: DR2
: 6.3.0
Assignee: Eder Ignatowicz
QA Contact: Tomas David
URL:
Whiteboard:
Depends On:
Blocks: 1200811
TreeView+ depends on / blocked
 
Reported: 2015-03-02 10:02 UTC by Tomas David
Modified: 2020-03-27 19:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:13:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas David 2015-03-02 10:02:36 UTC
Description of problem:
When you try to rename or copy plugin to existing plugin name, exception is displayed instead of correct error. For example "Plugin name already exists.".

Version-Release number of selected component (if applicable):
6.1.0.ER5

How reproducible:
-

Steps to Reproduce:
1. Create two plugins. (Extensions -> Plugin Management -> New...)
2. Open second plugin and try to rename or copy it to name of the first plugin.  

Actual results:
"Unable to complete your request. The following exception occurred: org.uberfire.java.nio.file.FileAlreadyExistsException." error is diplayed

Expected results:
"help-inline" error is displayed below or next to the "New name input". (It should be same as in case of illegal name when you try to create new plugin.)

Additional info:
-

Comment 1 manstis 2015-03-02 10:34:07 UTC
Eder, see here:

https://github.com/uberfire/uberfire-extensions/blob/master/uberfire-commons-editor/uberfire-commons-editor-client/src/main/java/org/uberfire/ext/editor/commons/client/menu/BasicFileMenuBuilderImpl.java#L144

This is the "default" renaming implementation we use for most editors. The important bit (if you cannot use BasicFileMenuBuilder) is to have HasBusyIndicatorDefaultErrorCallback in the "error" callback in your client code. If VFS throws a File Already Exists exception HasBusyIndicatorDefaultErrorCallback will show a popup with a i18n'ed message.

Comment 2 Tomas David 2015-03-02 11:09:03 UTC
Additional info:
Same problem appears when you try to rename or copy plugin with name containing only space chars.

Comment 3 Tomas David 2015-09-24 06:51:03 UTC
Still appears in 6.2.0.ER3.

Comment 5 Tomas David 2016-03-03 07:08:50 UTC
Verified on 6.3.0.DR2.


Note You need to log in before you can comment on or make changes to this bug.