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 124788 - XPath validation: WSDL editor is not identifying invalid query specified in the "query" element
Summary: XPath validation: WSDL editor is not identifying invalid query specified in t...
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-07 05:46 UTC by senthilprabhu
Modified: 2008-04-02 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description senthilprabhu 2008-01-07 05:46:50 UTC
WSDL editor is not identifying invalid query specified in the "query" element

Steps to reproduce:
-------------------
1. Extract the attachment AirlineReservation_Errored.zip . Open the project BpelModule1 and edit
AirlineReservationWSDL.wsdl file

2. Under <vprop:propertyAlias> tag and under the <query> tag, I misspelt the CustomerID as CutomerID
[/ns0:CustomerInfo/ns0:CutomerID]. The XML validation passed and it resulted in NPE during execution.

The property is of type XSD and so the query can be validated against the XSD.

The Errored and correct projects are attached to the bug 124787 [ http://www.netbeans.org/issues/show_bug.cgi?id=124787 ]

Expected Output:
----------------
Error stating that query inside <query> tag is not valid.

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 Sergey Lunegov 2008-01-18 12:00:20 UTC
Changed the target milestone
Comment 2 Shivanand Kini 2008-01-24 19:41:27 UTC
Not able to reproduce the NPE. Please attach stacktrace in future.

But I am not getting any error in the query as per the expected result. Assigning the appropriate module owner.
Comment 3 Shivanand Kini 2008-01-24 19:41:31 UTC
Not able to reproduce the NPE. Please attach stacktrace in future.

But I am not getting any error in the query as per the expected result. Assigning the appropriate module owner.
Comment 4 Shivanand Kini 2008-01-24 19:43:25 UTC
http://www.netbeans.org/issues/show_bug.cgi?id=124788 also seems to be filed along similiar lines. Please evaluate.
Comment 5 senthilprabhu 2008-01-25 06:21:05 UTC
The NPE is in the Runtime. You can see it in the server logs.
Because this validation is not done in design time, I get a NPE in the runtime.

The path under the <query> tag should be validated against the xsd [ the BPEL Variable is of type XSD Element ] and if
incorrect, it should be reported. This is the expected behaviour.
Comment 6 senthilprabhu 2008-01-25 06:24:41 UTC
Issue 124787 deals with the namespace issues of the <query> element itself

This issue (124788) deals with the path specified within the <query> and </query> tags.
eg.) In  <query> /ns0:CustomerInfo/ns0:CutomerID </query>   , " /ns0:CustomerInfo/ns0:CutomerID " should be validated
against the XSD
Comment 7 Sergey Lunegov 2008-01-25 08:05:51 UTC
Vladimir, please investigate. If it's XSD validation issue please reaasign it to more appropriate component.
Comment 8 Vladimir Yaroslavskiy 2008-01-25 11:47:25 UTC
it is XPath validation of wsdl extension (bpel) element.
Comment 9 Vladimir Yaroslavskiy 2008-02-18 14:19:49 UTC
Steps to reproduce:

1. Create SOA > BluePrint1 sample
2. Open POService.wsdl file
3. In <bpws:query>/sns:purchaseOrder/sns:orderId</bpws:query> (line 101)
   change orderId to ordrId.
4. Invoke validation, error should be.
Comment 10 Vladimir Yaroslavskiy 2008-02-18 15:25:40 UTC
fixed.
Comment 11 senthilprabhu 2008-04-02 10:20:00 UTC
Working with the Milestone 8 build
Closing this bug