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.
WSDL editor is not identifying error when "query" element is not qualified Steps to reproduce: ------------------- 1. Extract the attachment AirlineReservation_Errored.zip . Open the project BpelModule1 and edit AirlineReservationWSDL.wsdl file 2. Under <vprop:propertyAlias> tag, I manually added a <query> tag. The query tag was not qualified with "vprop" and still the XML validation passed. The correct project is also attached. Expected Output: ---------------- Error stating that <query> tag is not qualified. Actual Output: -------------- XML Validation is passing NetBeans build details: ------------------------ Netbeans IDE build = 20071220_1336 [source: d:/space/netbeans/6.0/platform7/build_number] Netbeans IDE base build = 20071220074851 [source: d:/space/netbeans/6.0/platform7/lib/boot.jar META-INF/MANIF EST.MF] Netbeans IDE build date = Thu Dec 20 08:25:26 GMT+05:30 2007 [source: d:/space/netbeans/6.0/platform7/core/core.jar] CAPS Modules build date = Thu Dec 20 13:38:14 GMT+05:30 2007 [source: d:/space/netbeans/6.0/soa1/modules/org-netbeans-modul es-compapp-projects-jbi.jar]
Created attachment 54734 [details] File with Wrong tags
Created attachment 54735 [details] File with Correct tags
The property alias elements are extensibility elements. WSDL Editor currently recognizes only those elements that are already registered as extensibility elements. So unless, it is element name is a qualified name, wsdl editor cannot "recognize" it. I will add a new icon in the tree editor to mark unrecognized items. And add a general validation warning, "Some of the extensibility elements were not recognized and are not part of the validation" as a fix to this bug.
The proposal of un-recognized elements does not help the user. By schema it is possible to have elements from NSs other than "http://docs.oasis-open.org/wsbpel/2.0/varprop", but it is almost never would happen. So we should identify query element with no prefix as invalid element and error on it.
Filed http://www.netbeans.org/issues/show_bug.cgi?id=125954 with the wsdlext module owner to put this property alias specific validation as error.
The dependent issue is fixed. Changing this issue to fixed. Please ignore the following comment: I will add a new icon in the tree editor to mark unrecognized items. And add a general validation warning, "Some of the extensibility elements were not recognized and are not part of the validation" as a fix to this bug.
Based on the original complaint, this doesn't seem to be fixed. When I download and open the projects in AirlineRes_Errored.zip, I don't get any errors when I validate the AirlineReservationWSDL.wsdl file. Retested with Product Version: NetBeans IDE Dev (Build 200804040802) - Java CAPS Enabled 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/sierrabuilds/JavaCAPS20080406/.netbeans/caps
In the trunk build 1549, I see the error and 125954 has been fixed. The steps here also show an error. Changing this to fixed.
Verified fixed with Java CAPS 6.0 EA2 with NB 6.1 FCS.
Validation Error "ERROR: Property alias has <query> element with wrong prefix or without prefix at all." is thrown This issue can be closed