fn:nilled failures (at least 23)

Bug #1147563 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Cezar Andrei

Bug Description

There are at least 15 failures in "fn-nilled" test set:

"cbcl-nilled-002,cbcl-nilled-005,fn-nilled-33,fn-nilled-35,fn-nilled-37,fn-nilled-38,fn-nilled-39,fn-nilled-41,fn-nilled-44,fn-nilled-45,fn-nilled-46,fn-nilled-47,fn-nilled-50,fn-nilled-51,fn-nilled-52"

Related branches

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :
Chris Hillery (ceejatec)
Changed in zorba:
milestone: none → 2.9
importance: Undecided → High
tags: added: hotlist
Revision history for this message
Juan Zacarias (juan457) wrote :

The implementation of nilled was wrong it always returned false.

So I fixed it, but now different tests fail, the thing with this now failing tests is that.

when you send the query

fn:nilled(<a xsi:nil="true" />) should return false but it returns true

zorba auto assigns xsi prefix to the namespace "http://www.w3.org/2001/XMLSchema-instance" and also it validates it automatically, I don't know if this is intended.

But without considering that it should return false because 1) The namespace is never specified (unless auto assigning xsi to the namespace "http://www.w3.org/2001/XMLSchema-instance" is intended) and/or 2) because is not validated against a schema

Any idea of what zorba do in an automatic way, and is there a way to turn it off for testing?

Changed in zorba:
status: New → In Progress
summary: - FOTS: fn:nilled failures (at least 15)
+ fn:nilled failures (at least 15)
tags: added: function-library
Changed in zorba:
assignee: Juan Zacarias (juan457) → Markos Zaharioudakis (markos-za)
Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Cezar Andrei (cezar-andrei)
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote : Re: fn:nilled failures (at least 15)

There are also 8 failures in "prod-SchemaImport" related to nillable elements:
cbcl-schema-element-1, cbcl-schema-element-2, cbcl-schema-element-4, cbcl-schema-element-5, cbcl-schema-element-8, cbcl-validated-schema-element-1, cbcl-validated-schema-element-3, cbcl-validated-schema-element-4

summary: - fn:nilled failures (at least 15)
+ fn:nilled failures (at least 23)
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.