Assertion `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Markos Zaharioudakis |
Bug Description
The following query and schema cause an assertion to fail.
src/types/
-------------- query --------------
import schema namespace f = "http://
declare namespace an = "http://
declare %an:no-cache %an:sequential function local:test2() {
variable $form := validate strict {
<f:form>
<f:hidden name="myid" value="3"/>
</f:form>
};
replace value of node $form/f:
"ok"
};
local:test2()
-------------- schema --------------
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://
xmlns = "http://
<xs:complexType name="Form">
<xs:sequence>
<xs:any namespace=
</xs:any>
</xs:sequence>
</xs:
<xs:element name="form" type="Form"
<xs:complexType name="Hidden">
<xs:attribute name="value" type="xs:
</xs:
<xs:element name="hidden" type="Hidden"
</xs:schema>
Related branches
- Cezar Andrei: Approve
- Markos Zaharioudakis: Approve
-
Diff: 113 lines (+52/-4)5 files modifiedChangeLog (+6/-2)
src/types/schema/revalidateUtils.cpp (+2/-2)
test/rbkt/ExpQueryResults/zorba/updates/upd14.xml.res (+2/-0)
test/rbkt/Queries/zorba/updates/forms.xsd (+23/-0)
test/rbkt/Queries/zorba/updates/upd14.xq (+19/-0)
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
milestone: | none → 2.7 |
Changed in zorba: | |
assignee: | Cezar Andrei (cezar-andrei) → Markos Zaharioudakis (markos-za) |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
milestone: | 2.7 → 2.6 |
status: | Fix Committed → Fix Released |
Assigning to Cezar to get review.