This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3372 - K-QuantExprWith-9, K-QuantExprWith-10: undeclared variable $b influences result
Summary: K-QuantExprWith-9, K-QuantExprWith-10: undeclared variable $b influences result
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 13:17 UTC by Tom Brosens
Modified: 2006-07-17 10:25 UTC (History)
2 users (show)

See Also:


Attachments

Description Tom Brosens 2006-06-20 13:17:57 UTC
The query in Expressions\QuantExpr\QuantExprWith\K-QuantExprWith-9.xq uses an undeclared variable $b. Because of that our implementation returns a XPST0008. The error condition that is expected, which is XPTY0004, is never reached.

Because the undeclared variable is not essential for the test, we think the query should be changed into something like:

 some $a as xs:anyURI in 1 satisfies fn:true()

Note that K-QuantExprWith-10 has the same issue.

Thanks,
Tom.
Comment 1 Frans Englich 2006-06-27 14:53:31 UTC
Fixed in CVS. However, I changed the test to:

every $a as xs:anyURI in 1 satisfies count($a)

such that the variable is used, since implementations may skip evaluation of expressions/variables and hence skip reporting errors if it can evaluate successfully without them.

K-QuantExprWith-10 was fixed accordingly.


Frans
Comment 2 Frans Englich 2006-06-27 19:06:10 UTC
Since this report was resolved as suggested, I am changing status to CLOSED. If
this report was not resolved in a satisfactory way, feel free to change status to REOPENED.


Frans
Comment 3 Tom Brosens 2006-07-05 08:43:32 UTC
We're using XQTS_current.zip v1.8. As far as I can see the query in K-QuantExprWith-9 changed to:

some $a as xs:anyURI in 1 satisfies count($b)

and so the undeclared variable $b is still causing the same problem.

Reopening.

Thanks,
Tom.
Comment 4 Frans Englich 2006-07-05 11:49:50 UTC
A second attempt at fixing this is in CVS. See http://www.w3.org/Bugs/Public/show_bug.cgi?id=3352 for instructions on how to retrieve these changes.

Feel free to resolve this bug when able to verify.


Frans
Comment 5 Tom Brosens 2006-07-17 10:25:53 UTC
Fix was verified and OK now (XQTS_current.zip v1.14). Closing.