Menu

#37 Crashes when URL contains a question mark

open
nobody
None
5
2008-06-29
2008-06-29
Matt Gibson
No

I just tried Cocoalicious (both from normal distribution 1.0b45, and latest CVS), and found that it crashed consistently when getting my bookmarks from del.icio.us.

I ran it up in debug, and traced the problem as far as:

    \[cache setObject: currentPost forKey: URLString\];

in
DCAPICache - (void) addPosts: (NSArray *) posts clean: (BOOL) clean

The key it's using, URLString, is empty.

Having looked at the two posts that were exhibiting the problem, they both have a question mark in their URLs on del.icio.us -- they were:

http://www.urbandictionary.com/define.php?term=%s
http://discussions.apple.com/thread.jspa?messageID=3877372&#3877372

...so I'm guessing that might be the problem.

Unfortunately, I don't have the time to go track down the root cause at the moment, but hopefully this might give someone with a bit more knowledge of Cocoalicious enough clues to fix things.

In the meantime, I've just deleted those rather elderly posts of mine, and Cocoalicious seems to be working fine for me.

Cheers,

Matt

Discussion


Log in to post a comment.

Auth0 Logo