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 127970 - Can't delete partnerlinktypes or properties
Summary: Can't delete partnerlinktypes or properties
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-02-21 03:53 UTC by jlautz
Modified: 2008-02-22 11:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing warning and inability to delete. (142.60 KB, image/png)
2008-02-21 03:55 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2008-02-21 03:53:43 UTC
Seen with 
Product Version: NetBeans IDE Dev (Build 200802191203)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: SunOS version 5.10 running on x86; ISO646-US; en (nb)
Userdir: /Users/lautz/.netbeans/dev

Scenario A. Trying to delete a partnerlinktype:
1. Create a new WSDL document using the WSDL wizard and clicking Next, Next, Finish to accept all defaults.
2. In the WSDL view for the new document, rt-click the <filename> parterlinktype, and choose Delete from the context
menu (or press the Delete key).
3. Click the Refactor button in the Safe Delete dialog.

=>  I get a dialog that says: Cascade delete in BPEL is supported for property alias only. I have the choice only to
cancel or go back. Screenshot is attached.

Scenario B: I get the same behavior and message if I try to delete the partnerlinktype in the Partner view.

Scenario C: I get similar behavior and the same message if I try to delete a property.

I can delete a property alias without even getting the Safe Delete dialog.

Workaround: delete the partnerlinktype or property in the Source WSDL view.
Comment 1 jlautz 2008-02-21 03:55:27 UTC
Created attachment 56958 [details]
Screenshot showing warning and inability to delete.
Comment 2 jlautz 2008-02-21 03:58:00 UTC
This problem affects WSDL automated tests in wsdl1003.
Comment 3 Shivanand Kini 2008-02-21 18:41:43 UTC
Was this partnerlinktype being used by any bpel? If not, then its a bug.
Comment 4 Shivanand Kini 2008-02-21 18:50:43 UTC
Noticed that though the partnerlinktype was not used by any other artifact like bpel, this error is being thrown, which
is wrong.

Assigning to the bpel refactoring team to look at this and fix this. Unless there is a usage, user should be able to
delete anything. In this case, find usages does not show any usages.
Comment 5 Vladimir Yaroslavskiy 2008-02-22 11:37:36 UTC
fixed.