Schema validation: can not cast to "02B6E590"

Bug #894009 reported by Gabriel Petrovay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Cezar Andrei

Bug Description

Query:

import schema namespace union = "http://my.schema" at "sch.xsd";

validate strict { <elem xmlns="http://my.schema">+</elem> }

Schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:this="http://my.schema"
      targetNamespace="http://my.schema">

  <xs:simpleType name="my-type">
    <xs:restriction base="xs:QName"/>
  </xs:simpleType>

  <xs:element name="elem" type="this:my-type"/>

</xs:schema>

Result:

<d:\sch.xq>:3,1: dynamic error [err:FORG0001]: "+": invalid value for cast/constructor: can not cast to "02B6E590": value '+' is invalid QName; raised at zorba\src\types\schema\schema.cpp:1761

Changed in zorba:
importance: Undecided → High
assignee: nobody → Cezar Andrei (cezar-andrei)
Changed in zorba:
milestone: none → 2.7
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 2.7 → 3.0
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 3.0 → 2.9
Revision history for this message
Cezar Andrei (cezar-andrei) wrote :

This was fixed already.

Changed in zorba:
status: New → Fix Released
Chris Hillery (ceejatec)
tags: added: hotlist
Changed in zorba:
milestone: 2.9 → 2.8
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.