bugGNUstep - Bugs: bug #30218, NSURL's initWithCoder doesn't...

 
 

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

bug #30218: NSURL's initWithCoder doesn't account for rel being nil in the archive

Submitted by:  Thomas Davie <beelsebob>
Submitted on:  Tue 22 Jun 2010 04:07:17 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 05 Mar 2011 03:15:32 PM UTC, comment #3:

No update after several months ... assume fixed.

Richard Frith-Macdonald <CaS>
Project Member
Fri 25 Jun 2010 04:01:39 PM UTC, comment #2:

I implemented keyed archiving for NSURL.
I expect that fixes the issue.

Richard Frith-Macdonald <CaS>
Project Member
Wed 23 Jun 2010 07:11:28 AM UTC, comment #1:

I'm not sure about the problem diagnosis here ...
'Some archives produced by apple contain NSURL with no relative string'

The GNUstep binary archive format is not compatible with Apple's one (and NSURL doesn't support keyed archiving), so I can't see how this can appear.

Perhaps the actual problem is a lack of keyed archiving support and we need to reverse engineer that support from some apple archives?

Richard Frith-Macdonald <CaS>
Project Member
Tue 22 Jun 2010 04:07:17 PM UTC, original submission:

Some archives produced by apple contain NSURL with no relative string, this causes a crash, because initWithString:relativeToURL: may not accept nil as it's first argument

I've attached a patch to fix it.

My employer Hunted Cow Studios Ltd. asked me to note that I created this patch on their time :).

Thomas Davie <beelsebob>

 

Attached Files
file #20791:  url.diff added by beelsebob (578B - application/octet-stream)

 

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 beelsebob (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 05 Mar 2011 03:15:32 PM UTCCaSOpen/ClosedIn Test=>Closed
    Fri 25 Jun 2010 04:01:39 PM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>In Test
    Tue 22 Jun 2010 04:07:17 PM UTCbeelsebobAttached File-=>Added url.diff, #20791

    Back to the top


    Powered by Savane 3.1-cleanup1