Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320537

Summary: XPath validator can not resolve multiple variable reference arguments passed to XPath function calls
Product: z_Archived Reporter: Robert Brodt <bbrodt>
Component: BPELAssignee: BPEL Validation Inbox <bpel.validation-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: grid.qian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch for XPathValidator.java bbrodt: iplog+

Description Robert Brodt CLA 2010-07-21 13:35:06 EDT
Build Identifier: 20100617-1415

The expression:

concat('Error: ',$inventoryStatus.inventoryPart/invsh:inventoryStatusMessage,' code: ',$inventoryStatus.inventoryPart/invsh:inventoryStatusCode)

causes the validator to report an error, whereas this:

concat('Error: ',$inventoryStatus.inventoryPart/invsh:inventoryStatusMessage,' code: ','123')

is OK. 

Non known workaround.

This expression (which could have been a workaround) also fails to validate:

concat(concat('Error: ',$inventoryStatus.inventoryPart/invsh:inventoryStatusMessage,' code: '),concat($inventoryStatus.inventoryPart/invsh:inventoryStatusCode))

Reproducible: Always

Steps to Reproduce:
1. Enter one of the expressions in Details section in an Assign activity
Comment 1 Robert Brodt CLA 2010-07-21 13:44:28 EDT
Created attachment 174886 [details]
patch for XPathValidator.java

duplicate variable check was bailing out too early
Comment 2 Robert Brodt CLA 2010-07-21 18:05:09 EDT
https://jira.jboss.org/browse/JBIDE-6000
Comment 3 Robert Brodt CLA 2010-07-21 18:16:25 EDT
https://jira.jboss.org/browse/JBIDE-6000
Comment 4 grid.qian CLA 2010-07-23 01:57:03 EDT
apply and test the patch from Bob
Comment 5 Robert Brodt CLA 2012-04-18 15:04:38 EDT
Comment on attachment 174886 [details]
patch for XPathValidator.java

Updated iplog flag for v1.0 release review.