bugGNUstep - Bugs: bug #35437, NSURL.m incorrectly...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #35437: NSURL.m incorrectly percent-encodes URLs

Submitted by:  Larry Campbell <lcampbel>
Submitted on:  Thu 02 Feb 2012 04:48:08 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 02 Feb 2012 06:31:06 PM UTC, comment #2:

Fixed, thanks.

Richard Frith-Macdonald <CaS>
Project Member
Thu 02 Feb 2012 05:13:29 PM UTC, comment #1:

Thanks ... fixed that ... the extra percent escaping should only be used for file URLs

Richard Frith-Macdonald <CaS>
Project Member
Thu 02 Feb 2012 04:48:08 PM UTC, original submission:

r31501 in NSURL.m somehow managed to do exactly the wrong thing. It added question mark and semicolon to the set of characters that would be percent-escaped, but this is incorrect, and incompatible with Mac OS X.

This tiny test demonstrates the problem:

void test()
{
NSURL *u = [[[NSURL alloc] initWithScheme:@"http" host:@"1.2.3.4" path:@"/a?b;foo"] autorelease];
NSLog(@"url = %@", [u absoluteURL]);
}

On Mac OS X 10.6.8, it prints:

2012-02-02 11:42:51.673 urltest[410:903] url = http://1.2.3.4/a?b;foo

With gnustep-base 1.22.0 it prints:

2012-02-02 16:43:08.276 urltest[1743] url = http://1.2.3.4/a%3Fb%3Bfoo

Larry Campbell <lcampbel>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by lcampbel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Feb 2012 05:13:29 PM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1