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 692811 - problem with validating XML files with ":" in name
problem with validating XML files with ":" in name
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-29 15:17 UTC by petr.sumbera
Modified: 2021-07-05 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description petr.sumbera 2013-01-29 15:17:30 UTC
Tested with libxml 2.9.0:

$ cat myprefix\:mysuffix.xml 
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<service_bundle type='manifest' name='myprefix:mysuffix'>
<service
        name='myprefix/mysuffix'
        type='service'
        version='1'>
</service>
</service_bundle>

$ xmllint --valid myprefix\:mysuffix.xml
myprefix:mysuffix.xml:2: warning: failed to load external entity "myprefix:///usr/share/lib/xml/dtd/service_bundle.dtd.1"
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
                                                                              ^
myprefix:mysuffix.xml:4: validity error : Validation failed: no DTD found !
<service_bundle type='manifest' name='myprefix:mysuffix'>
                                                        ^
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="myprefix:mysuffix">
<service name="myprefix/mysuffix" type="service" version="1">
</service>
</service_bundle>


Where with absolute or relative path it will work:

$ xmllint --valid ./myprefix\:mysuffix.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="myprefix:mysuffix">
<service name="myprefix/mysuffix" type="service" version="1">
</service>
</service_bundle>
Comment 1 Daniel Veillard 2013-01-29 22:12:50 UTC
yeah, somehow it is taken as an URI-Reference and then reparsed and
: looks like the protocol separator ... Annoying, this looks like a
real bug, I will need to look at it !

Daniel
Comment 2 Nick Wellnhofer 2017-06-18 10:15:02 UTC
Also see the discussion in bug 668245.
Comment 3 GNOME Infrastructure Team 2021-07-05 13:21:48 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.