Zorba Internal Fatal error when applying a PUL changes the type of a typed node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Cezar Andrei |
Bug Description
If a PUL changes the type of a typed node there is a Zorba Internal Fatal error when applying.
Query
import schema namespace d="http://
declare revalidation lax;
declare variable $doc:=validate{
xmlns="http://
<a attr="12"/>
<b>
<bb/>
</b>
<c/>
</root>};
rename node $doc//d:b as fn:QName("http://
Schema
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://
targetNames
elementForm
<xs:element name="root" type="rootType"/>
<xs:complexType name="rootType">
</xs:
<xs:complexType name="aType">
</xs:
<xs:complexType name="bType">
</xs:
<xs:simpleType name="newbType">
</xs:
<xs:simpleType name="cType">
</xs:
</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) → Cezar Andrei (cezar-andrei) |
Changed in zorba: | |
milestone: | none → 2.2 |
Changed in zorba: | |
milestone: | 2.2 → 2.5 |
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
/home/federico/ zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x9e8f99) [0x7ff30bbf5f99] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x9e9066) [0x7ff30bbf6066] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x1217b7d) [0x7ff30c424b7d] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x1255aa3) [0x7ff30c462aa3] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x123d9cc) [0x7ff30c44a9cc] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x12435b2) [0x7ff30c4505b2] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x1245603) [0x7ff30c452603] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x124333d) [0x7ff30c45033d] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0xeefb9e) [0x7ff30c0fcb9e] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0xeef631) [0x7ff30c0fc631] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0xef3cf2) [0x7ff30c100cf2] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0xed6539) [0x7ff30c0e3539] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x10a689d) [0x7ff30c2b389d] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x10b627c) [0x7ff30c2c327c] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0xed6539) [0x7ff30c0e3539] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0xed5f1a) [0x7ff30c0e2f1a] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x669751) [0x7ff30b876751] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x669455) [0x7ff30b876455] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x60a83d) [0x7ff30b81783d] zorba/build/ bugs2/src/ libzorba_ simplestore. so.2.1. 0(+0x609aaa) [0x7ff30b816aaa] zorba/build/ bugs2/bin/ zorba() [0x41224c] zorba/build/ bugs2/bin/ zorba() [0x4135bd] 64-linux- gnu/libc. so.6(__ libc_start_ main+0xed) [0x7ff30a54d30d] zorba/build/ bugs2/bin/ zorba() [0x410099] zorba/repositor y/bugs2/ src/store/ naive/simple_ pul.cpp: 1717: build/$ STR/bin/ zorba -f -q $line > $BASEDIR/ testing/ actual. xml ------- ------- ------- ----- zorba/build/ bugs2/bin/ zorba -f -q /home/federico/ zorba/repositor y/bugs2/ ./test/ rbkt/Queries/ zorba/updates/ upd14.xq ------- ------- ------- -----
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/home/federico/
/lib/x86_
/home/federico/
Zorba Internal Fatal Error in /home/federico/
"0": condition failed: Unexpected error during application of revalidation PUL
./why-fail.sh: line 20: 24998 Aborted $BASEDIR/
-------
COMMAND LINE: /home/federico/
-------