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 84076 - Mapper allows for mapping of non-similar xsd type which it should not
Summary: Mapper allows for mapping of non-similar xsd type which it should not
Status: VERIFIED DUPLICATE of bug 81871
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Mapper (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Joshua Sandusky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-02 02:33 UTC by malkit
Modified: 2006-09-20 14:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
BPEL File (1.43 KB, text/xml)
2006-09-02 02:33 UTC, malkit
Details
WSDL File (4.40 KB, text/xml)
2006-09-02 02:34 UTC, malkit
Details
Schema File (553 bytes, text/xml)
2006-09-02 02:34 UTC, malkit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malkit 2006-09-02 02:33:02 UTC
Find attached BPEL, WSDL and XSD files. The bpel contains an assign that has the
input message type variable mapped to output message type variable. There are
multiple issues with this and should not be allowed in the mapper. The issues being:

1. The input variable has one part whereas the output variable has two parts,
hence they cannot be mapped.
2. If you delete the variable level mapping and try to map the parts, the mapper
does not complains and allows this to happen. This is not valid also, as the
parts are not of the same xsd type. One is xsd string simple type, other is
simpletype defind with restriction (user defined simple type).

The rule of thumb is the mappings should only be allowed for the type compatible
nodes on both the sides. Here is the snippet from the spec (section assignment)

"The <assign> activity copies a type-compatible value from the source
("from-spec") to the destination ("to-spec"), using the <copy> element."

I am also doing to file another bug with validation, to invalid such BPEL that
contain such mappings (user could hand code bpel, without using mapper).
Comment 1 malkit 2006-09-02 02:33:51 UTC
Created attachment 33534 [details]
BPEL File
Comment 2 malkit 2006-09-02 02:34:08 UTC
Created attachment 33535 [details]
WSDL File
Comment 3 malkit 2006-09-02 02:34:27 UTC
Created attachment 33536 [details]
Schema File
Comment 4 Joshua Sandusky 2006-09-12 21:37:47 UTC
This issue is known and is already covered by issue 81871.
I am rolling this bug into it.


*** This issue has been marked as a duplicate of 81871 ***
Comment 5 skrishnan 2006-09-20 10:18:21 UTC
Verified in 060918_1
Comment 6 skrishnan 2006-09-20 14:08:25 UTC
This bug has been verified as duplicate.