Issue 8273 - file:// URLs broken on Windows
Summary: file:// URLs broken on Windows
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-19 07:48 UTC by Howard Chu
Modified: 2015-11-30 18:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Howard Chu 2015-10-19 07:48:05 UTC
Full_Name: Howard Chu
Version: 2.4
OS: Win32
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (78.155.231.14)
Submitted by: hyc


file URLs with absolute paths are parsed incorrectly on Windows. The current
code expects an absolute path in Unix form:
  file:///etc/ldap.conf

In our test suites we just concatenate "file://" with an absolute path.

On Windowsn ababsolute path starts with a drive letter and a colon, so our test
suite doing simple concatenation uses
  file://C:/some/thing

This is actually invalid; the proper form would be
  file:///C:/some/thing

but the current parser won't do the right thing for either form.

It MUST be fixed to accept the latter form with 3 slashes. I'm inclined to also
accept the form with 2 slashes, to avoid hacking up our test suite to handle
this case.
Comment 1 Howard Chu 2015-10-19 07:54:31 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2015-10-26 21:01:52 UTC
changed notes
changed state Test to Release
Comment 3 Quanah Gibson-Mount 2015-10-26 21:02:02 UTC
changed notes
Comment 4 OpenLDAP project 2015-11-30 18:21:30 UTC
fixed in master
fixed in RE25
fixed in RE24 (2.4.43)
Comment 5 Quanah Gibson-Mount 2015-11-30 18:21:30 UTC
changed notes
changed state Release to Closed