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 175478 - Static rule [SA00040]: Optional third parameter pairs for DoXslTransform() function not being validated correctly
Summary: Static rule [SA00040]: Optional third parameter pairs for DoXslTransform() fu...
Status: CLOSED 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: 2009-10-26 23:56 UTC by terrybraun
Modified: 2010-11-16 15:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (9.80 KB, application/zip)
2009-11-11 01:46 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terrybraun 2009-10-26 23:56:49 UTC
Using the DoXslTransform mapping, if the user supplies a valid XPath string literal for the first parameter, and a 
valid XPath node for the second parameter, and a valid XPath string as the first part for the third parameter pair, but 
leaves the second part of the pair empty, the validation is not caught as described in the this snippet from the spec.

• The optional parameters that follow MUST appear in pairs. Each pair is defined as:
o an XPath string parameter providing the qualified name of an XSLT parameter
o an XPath object parameter providing the value for the named XSLT parameter. It can be an XPath Expr.

[SA00040] The WS-BPEL processor MUST enforce the pairing of these parameters by static analysis (i.e., an odd number of 
parameters must cause a static analysis error).
Comment 1 Sergey Lunegov 2009-10-27 09:04:46 UTC
Vladimir, please fix.
Comment 2 Vladimir Yaroslavskiy 2009-10-27 09:40:56 UTC
[SA00040]
	
In the XPath 1.0 extension function bpel:doXslTransform(string, node-set, (string, object)*) the optional parameters
after the second parameter MUST appear in pairs. An odd number of parameters is not valid.

Section 8.4
Comment 3 Vladimir Yaroslavskiy 2009-11-11 01:46:21 UTC
Created attachment 90770 [details]
Test project
Comment 4 Vladimir Yaroslavskiy 2009-11-11 01:46:48 UTC
fixed in gfesbv22: af85a26becaf
Comment 5 senthilprabhu 2010-11-16 15:23:22 UTC
Static analysis is enforced in the latest build.

BPEL validation started.
C:/Documents and Settings/sp201017/Desktop/BpelTestDoXslTransform/BpelTestDoXslTransform/src/bpelTestDoXslTransform.bpel:25,16
ERROR: In the function 'doXslTransform' the optional parameters after the second parameter MUST appear in pairs. An odd number of parameters is not valid.

1 Error(s),  0 Warning(s).


This is verified to work correctly in CAPS 63 M5 build (20101103-1248).
This issue can be closed.