Validate in-place causes Zorba Internal Fatal error if a node which might have a simple type contains other nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Cezar Andrei |
Bug Description
The following query crashes zorba with an Internal fatal error.
Query
import schema namespace d="http://
import module namespace schema = "http://
declare revalidation lax;
declare variable $doc:=<root xmlns:xsi="http://
xmlns="http://
<a/>
</root>;
schema:
Schema
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://
targetNames
elementForm
<xs:element name="root" type="xs:int"/>
</xs:schema>
Related branches
- Markos Zaharioudakis: Approve
- Cezar Andrei: Approve
-
Diff: 159 lines (+74/-2)13 files modifiedChangeLog (+1/-0)
src/types/schema/SchemaValidatorFilter.cpp (+8/-2)
test/rbkt/Queries/zorba/schemas/extracontent.xsd (+9/-0)
test/rbkt/Queries/zorba/schemas/val-attInSimpleContent-err.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-attInSimpleContent-err.xq (+9/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err2.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err2.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err3.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err3.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err3.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err3.xq (+11/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err4.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err4.xq (+11/-0)
Changed in zorba: | |
assignee: | Federico Cavalieri (fcavalieri) → nobody |
assignee: | nobody → Cezar Andrei (cezar-andrei) |
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |