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 750365 - Conversion of absolute Windows filepaths to URI is broken
Conversion of absolute Windows filepaths to URI is broken
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
git master
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
: 752219 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-06-03 20:35 UTC by Christoph M. Becker
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christoph M. Becker 2015-06-03 20:35:59 UTC
If an absolute Windows filepath (such as "C:\Users\") is given to xmlCanonicPath(), an invalid URI is returned ("file:/C:/Users/"). This is a regression from libxml2 2.9.1 (where it returned "file:///C:/Users/"), and most likely caused by fixing bug #731063.

A code snippet to reproduce the behavior:

    char *filename = "C:\\Users\\cmb\\invalid.xml";
    xmlDocPtr doc;
    xmlErrorPtr error;

    doc = xmlReadFile(filename, NULL, 0);
    error = xmlGetLastError();
    printf("%s\n", error->file);

Expected output:

    file:///C:/Users/cmb/invalid.xml

Actual output:

    file:/C:/Users/cmb/invalid.xml
Comment 1 Nick Wellnhofer 2016-04-19 13:14:13 UTC
*** Bug 752219 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Veillard 2016-09-16 12:56:55 UTC
It's true that it sounds broken but not a windows user at all, best to
have a patch discussed on the mailing list xml@gnome.org as this can potentially
affect a lot of people
  https://mail.gnome.org/mailman/listinfo/xml

thanks,

Daniel
Comment 3 GNOME Infrastructure Team 2021-07-05 13:22: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.