[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #33453] stringByDeletingLastPathComponent replaces consecutive slas
From: |
Andreas Voegele |
Subject: |
[bug #33453] stringByDeletingLastPathComponent replaces consecutive slashes in GNUstep 1.22.0 |
Date: |
Wed, 01 Jun 2011 10:28:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; OpenBSD amd64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 |
URL:
<http://savannah.gnu.org/bugs/?33453>
Summary: stringByDeletingLastPathComponent replaces
consecutive slashes in GNUstep 1.22.0
Project: GNUstep
Submitted by: avoegele
Submitted on: Wed 01 Jun 2011 10:28:09 AM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
According to Apple's documentation the stringByDeletingLastPathComponent
method of the NSString class must only be used with file paths and not with
URLs. But SOGo and possibly other software uses it with URLs. Somewhere
between version 1.20.0 and 1.22.0 of GNUstep the
stringByDeletingLastPathComponent method started to replace consecutive
slashes by a single slash. For example,
"mysql://user:secret@localhost/sogo/foo" becomes
"mysql:/user:secret@localhost/sogo". I informed the SOGo project, but IMHO
GNUstep shouldn't replace consecutive slashes for the sake of compatibility
with earlier versions.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 01 Jun 2011 10:28:09 AM GMT Name: GNUmakefile Size: 221B By:
avoegele
Example program
<http://savannah.gnu.org/bugs/download.php?file_id=23489>
-------------------------------------------------------
Date: Wed 01 Jun 2011 10:28:09 AM GMT Name:
TestStringByDeletingLastPathComponent.m Size: 547B By: avoegele
Example program
<http://savannah.gnu.org/bugs/download.php?file_id=23490>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33453>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #33453] stringByDeletingLastPathComponent replaces consecutive slashes in GNUstep 1.22.0,
Andreas Voegele <=