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 124787 - WSDL editor is not identifying error when "query" element is not qualified
Summary: WSDL editor is not identifying error when "query" element is not qualified
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on: 125954
Blocks:
  Show dependency tree
 
Reported: 2008-01-07 05:16 UTC by senthilprabhu
Modified: 2008-10-20 12:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
File with Wrong tags (66.90 KB, application/x-compressed)
2008-01-07 05:19 UTC, senthilprabhu
Details
File with Correct tags (67.75 KB, application/x-compressed)
2008-01-07 05:20 UTC, senthilprabhu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description senthilprabhu 2008-01-07 05:16:57 UTC
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]
Comment 1 senthilprabhu 2008-01-07 05:19:40 UTC
Created attachment 54734 [details]
File with Wrong tags
Comment 2 senthilprabhu 2008-01-07 05:20:18 UTC
Created attachment 54735 [details]
File with Correct tags
Comment 3 Shivanand Kini 2008-01-07 19:26:57 UTC
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.
Comment 4 Murali Pottlapelli 2008-01-24 08:16:10 UTC
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.

 
Comment 5 Shivanand Kini 2008-01-24 19:29:35 UTC
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.

Comment 6 Shivanand Kini 2008-02-19 20:22:32 UTC
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.
Comment 7 jlautz 2008-04-08 16:06:53 UTC
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
Comment 8 Shivanand Kini 2008-04-10 00:44:33 UTC
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.
Comment 9 jlautz 2008-05-22 03:24:32 UTC
Verified fixed with Java CAPS 6.0 EA2 with NB 6.1 FCS.
Comment 10 senthilprabhu 2008-10-20 12:20:28 UTC
Validation Error "ERROR: Property alias has <query> element with wrong prefix or without prefix at all." is thrown
This issue can be closed