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 124025 - WSDL view: deleting a documentation element under a partnerlinktype deletes the plnk prefix
Summary: WSDL view: deleting a documentation element under a partnerlinktype deletes t...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-12-14 12:01 UTC by jlautz
Modified: 2008-02-25 15:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project containing wsdl file used in the scenario (17.31 KB, text/plain)
2007-12-14 12:02 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-12-14 12:01:38 UTC
Seen with Sierra nb build 546 20071214:

1. Open the SynchronousSample.wsdl document in the attached project.
2. In the WSDL Source view, note that the xmlns:plnk is defined in the definitions element.
3. In the WSDL tree view, delete the plnk:documentation element under the myPartnerLink element.
4. Click back to the Source view. 

=> Note that the xmlns:plnk declaration is deleted from the definitions element.

5. Click the Validate XML button.

=> The partnerlinktype elements are still expecting the plnk prefix to be available.

6. Add a new partner link type under Extensibility Elements.

=> Look at the Source view -- the schema for partner link type is given a new prefix: plink. The user can't ever really
recover from what happens under #4 unless they hand edit.
Comment 1 jlautz 2007-12-14 12:02:50 UTC
Created attachment 54259 [details]
Project containing wsdl file used in the scenario
Comment 2 jlautz 2007-12-14 12:16:52 UTC
Note to self: a number of tests in wsdl1003 (wsdl1003Extensibility) to add and delete documentation elements have been
disabled. These need to be reenabled when the bug is fixed.
Comment 3 jlautz 2007-12-14 14:24:48 UTC
Additional info:

-- If I delete a role defined under the partnerlinktype, the namespace prefix (xmlns:plnk) used by the partnerlinktype
and the role is deleted from the definitions element, even though the partnerlinktype still requires the prefix.

-- If I delete a partnerlinktype, the namespace prefix (xmlns:plnk) still used by another partnerlinktype is deleted
from the definitions element.

-- The same behavior occurs if I delete a partnerlinktype role or partnerlinktype in the Partner view.

QE: Also disabling tests that delete a partnerlinktype role and a partnerlinktype.

Workaround is to only delete partnerlinktype-related items in the source view. 
Comment 4 Shivanand Kini 2007-12-14 17:10:51 UTC
Fixed
Comment 5 jlautz 2008-02-25 15:46:36 UTC
Verified fixed with 
Product Version: NetBeans IDE Dev (Build 20080225100950)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\lautz\.netbeans\sierra

WSDL automated tests now pass as expected.