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 83335 - validation for property alias.
Summary: validation for property alias.
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-24 01:04 UTC by kiran_bhumana
Modified: 2008-10-06 15:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
bpel project (15.90 KB, application/octet-stream)
2006-08-24 01:05 UTC, kiran_bhumana
Details
updated test project for verification (5.34 KB, text/plain)
2008-02-21 11:01 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kiran_bhumana 2006-08-24 01:04:57 UTC
Validation should point out if the property alias doesn't resolve to a simpl
dataType.

for example, in the following propertyAlias, first one resolves to a simple data
type but not the second one ,because the query was absent. A combination of
Message part and query should resolve to a simple data type.

    <bpws:propertyAlias propertyName="tns:propJMSHeadersName1"
                        messageType="tns:messageRequestReply"
                        part="partReqReply">
        <bpws:query>correlationID</bpws:query>
    </bpws:propertyAlias>

    <bpws:propertyAlias propertyName="tns:propJMSHeadersName2"
                        messageType="tns:messageRequestReply"
                        part="partReqReply">
        <bpws:query></bpws:query>
    </bpws:propertyAlias>
Comment 1 kiran_bhumana 2006-08-24 01:05:22 UTC
Created attachment 33221 [details]
bpel project
Comment 2 Praveen Savur 2006-08-25 20:49:45 UTC
This validation is related to a wsdl extension. This should be handled by the
wsdl validator. 
Comment 3 Ritesh Adval 2006-09-19 18:49:20 UTC
I don't think we can really have a validation for this.
The reason is that what if a message/part points to xsd elememt which has any 
element and an xpath query is written which includes steps from this any 
element.

There is no way of knowing the content of any element in design time.


if no query specified then message/part combination should point to an schema 
simple type. This is doable but again we can do it only if part is not of any 
element type.

if query is specified then we need to run the xpath query against an instance 
document to be able to really check the result to be a simple type. For complex 
query which can have function , it is not possibly to do this unless there an 
instance document, so I think this better left at runtime to do this validation.


Comment 4 kiran_bhumana 2006-09-19 19:38:51 UTC
You have pointed some valid reasons and cases where validation can't be done.
BUt we can do validation for the rest of the 80% situations. In the 5.x
experience, i have never seen usage of functions in property alias. You should
confirm this with the field folks as to how many times they use or not.
Regardless, there are so many other situations we can validate based on the
schema. Why can't we solve those?

Btw, any is not a simple type. any as i understand is a complex type. If the
query leads to an any element then it should be wrong.
Comment 5 Ritesh Adval 2006-09-20 07:23:44 UTC
This is validation enhancement to propertyAlias, this can not be fixed now
in current release. Making this enhancement.
Comment 6 Shivanand Kini 2007-07-31 23:05:55 UTC
is this feature not present currently? I thought the validation was added last month or so.
Comment 7 kiran_bhumana 2007-07-31 23:12:51 UTC
I think i have seen some related things happened. But don't know for sure if this is fixed. Could you please verify and
close the bug?
Comment 8 Shivanand Kini 2007-08-07 18:55:46 UTC
nikita, can you verify whether the property alias validation that was added includes this scenario?
Comment 9 Vladimir Yaroslavskiy 2008-02-21 11:01:05 UTC
Created attachment 56972 [details]
updated test project for verification
Comment 10 Vladimir Yaroslavskiy 2008-02-21 11:08:56 UTC
fixed:

if a property alias has query and combination of query and
a combination of message part + query + associated property
points to the same type, validation checks whether this
type is simple.

For verification: open attached updated project "checktype",
see that first property alias passes validation (type is string),
but second property alias has error: it points to the complex
type VeryComplexType.
Comment 11 Vladimir Yaroslavskiy 2008-10-06 14:46:13 UTC
v/w lb
Comment 12 Vladimir Yaroslavskiy 2008-10-06 15:22:39 UTC
related 148447