March 17th, 2007

underscore-dash ambiguity in usernames when using RPC

Dunno if it qualifies as a bug, but still - noticed when trying out MarsEdit.

LiveJournal's RPC backend does not allow usernames in postids to contain dashes instead of underscores, but does allow them when retrieving a list of posts via Blogger API (when the dashed username is used as blog key). This has to do with Interface/ having:

die "Invalid postid\n" unless $postid =~ /^(\w+):(\d+)$/;

The problem is you can use your dashed username to retrieve the posts (when setting up the blogging client it will be percieved as working by the user), but not to retrieve a concrete post or delete a post.

Either it should reject the login with dashes (implying that only an underscore might be used) or it should allow both for posting/deleting entries (i.e. when the journal name is used to retrieve entries). Or there should be a FAQ entry about it. include bug and fix

I'm new to LJ so if I'm posting this in the wrong place or something I'm sorry.
In reference to the thread at
I was experiencing a bug where was being included but wasn't present, the fix is to remove line 17 of cgi-bin/ where the file was still being included. I thought I should post to the dev community so it can be fixed and checked into (I've not tested it thoroughly, but my server starts now and it didn't before heh).