• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Security-scoped bookmarks linked to code signing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Security-scoped bookmarks linked to code signing?


  • Subject: Re: Security-scoped bookmarks linked to code signing?
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 25 Oct 2012 10:18:59 +0100

On 25 Oct 2012, at 00:27, Graham Cox wrote:

>
> On 25/10/2012, at 10:05 AM, Mike Abdullah <email@hidden> wrote:
>
>>
>> On 24 Oct 2012, at 23:31, Graham Cox wrote:
>>
>>>
>>> On 24/10/2012, at 8:47 PM, Mike Abdullah <email@hidden> wrote:
>>>
>>>> Handling security-scoped bookmarks most certainly relies upon code-signing, as without you can’t create or resolve them. Are you dealing with app or document scoped bookmarks here?
>>>>
>>>
>>>
>>> App-scoped.
>>>
>>> In dev and testing no problem was encountered but "in the wild" we have this crash deep within -[NSURL URLByResolvingBookmarkData:options:.....]. The app was incorrectly signed due to a stuff-up with the developer ID certs which was resolved, but that won't help until we get an update published. What's annoying is that the bookmark resolving just crashes rather than handle the problem gracefully, and we're still not certain whether the incorrect signing is the real cause or not (the apps were signed, just not using the correct cert). This deep connection between parts of the OS that behave very differently according to the situation they find themselves in is a recipe for very hard-to-find bugs that easily escape QA.
>>
>> Is it possible http://www.mikeabdullah.net/nsurl-bookmark-error-handling.html is biting you?
>>
>
>
> Hmm, interesting...
>
> I wasn't setting error to nil, I am now.
>
> However, all I do with the value of error is log it if the URL returns nil. While that could crash in the circumstances your post describes, that isn't where it appears to actually be crashing. (Unfortunately I don't have a stack trace handy).
>
> Do you know of a way to force this resolution to fail so I can test it?

Oops, I forgot to mention in the post that I’d seen it crash internally too, from trying to do something with the junk pointer being fed in. Sadly I don’t have a stack trace or repro steps handy :(


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Security-scoped bookmarks linked to code signing? (From: Graham Cox <email@hidden>)
 >Re: Security-scoped bookmarks linked to code signing? (From: Mike Abdullah <email@hidden>)
 >Re: Security-scoped bookmarks linked to code signing? (From: Graham Cox <email@hidden>)
 >Re: Security-scoped bookmarks linked to code signing? (From: Mike Abdullah <email@hidden>)
 >Re: Security-scoped bookmarks linked to code signing? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: [Q] a view is associated with more than one view controller?
  • Next by Date: Binding InfoPanel to currentDocument
  • Previous by thread: Re: Security-scoped bookmarks linked to code signing?
  • Next by thread: Re: Security-scoped bookmarks linked to code signing?
  • Index(es):
    • Date
    • Thread