After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 646219 - xmlSchemaValidateStream not functioning properly
xmlSchemaValidateStream not functioning properly
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: xmlschema
git master
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-30 11:18 UTC by Praneeth Kumar
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Function for Validation of XSD (2.58 KB, text/plain)
2011-03-30 11:18 UTC, Praneeth Kumar
Details

Description Praneeth Kumar 2011-03-30 11:18:11 UTC
Created attachment 184682 [details]
Function for Validation of XSD

As the Parameter1 for xmlSchemaValidateStream, I gave the first parameter as an XSD and the input XML supplied is a wrong one accordingly with the XSD. As the name seems the validation should fail at very beginning of the element (not mentioned in XSD), but it fails after parsing of the end tag of the element. 

XSD is 

 <xsd:element name="Request">
        <xsd:complexType>
            <xsd:sequence>
		    <xsd:element name="sso" type="xsd:string" />
		    <xsd:element name="ConfigCollection" type="ConfigCollectionType" maxOccurs="unbounded"/>
            </xsd:sequence>
            <xsd:attribute name="module" type="xsd:string" fixed="NodeAttributes" use="required"/>
            <xsd:attribute name="command" type="xsd:string" fixed="SetConfigData" use="required"/>
        </xsd:complexType>
    </xsd:element>

XML is 

<Request command="SetConfigData" module="NodeAttributes">
	<sso>HOYlrk97pNPjWqCAB8h5JsOLm/imd4xC</sso>
	<Configllection HostIP="10.0.15.90">
        <Rawdata>   [Mentioned in XSD as type]

Accordingly with the above shown XSD and XML
as the element Configllection is not specified in XSD, the parse should fail immediately but the func. does'nt
Comment 1 Praneeth Kumar 2011-03-31 05:22:31 UTC
Sorry, If am not Clear, pls. refer to bug#646304 !!
Comment 2 GNOME Infrastructure Team 2021-07-05 13:22:00 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/

Thank you for your understanding and your help.