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 95943 - REGRESSION: Mapper adds an invalid extra parameter to a function with variable number of parameters
Summary: REGRESSION: Mapper adds an invalid extra parameter to a function with variabl...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@soa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-19 15:08 UTC by Andrei Chistiakov
Modified: 2007-02-21 11:55 UTC (History)
1 user (show)

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 Andrei Chistiakov 2007-02-19 15:08:15 UTC
Reproduced in build 070218_8.

To reproduce the bug:
- put 'concat' function on the Mapper diagram;
- bind 2 inputs of the function to some nodes of the source tree;
- bind the output to a node of the target tree;
- switch to source.
Notice the invalid extra patameter $unconnectedInput_2 of the contat method.

<xsl:value-of select="concat(/ns1:inputData/ns1:str1, /ns1:inputData/ns1:str2,
$unconnectedInput_2)"/>
Comment 1 Andrei Chistiakov 2007-02-19 15:38:04 UTC
The bug badly affects the important functionality so I'm changing the priority
to P1.
Comment 2 Alexey Yarmolenko 2007-02-20 11:48:18 UTC
Fix integrated into release551: ExpressionBuilder for concat ignores unconnected
input fields and does not produce $unconnectedInput_nnn for them.

Comment 3 Chris Webster 2007-02-20 17:22:17 UTC
One thing I noticed in the patch is that there is a cast to a specific node
type, perhaps lookup or cookies should be used to prevent problems if filter
nodes are used. 
                   
Comment 4 Sergey Lunegov 2007-02-21 07:32:30 UTC
fixed
Comment 5 Andrei Chistiakov 2007-02-21 11:55:05 UTC
Verified in build 070220_4 (gavotte_beta).