Log in

No account? Create an account
March 17th, 2007 - LiveJournal Development — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

March 17th, 2007

underscore-dash ambiguity in usernames when using RPC [Mar. 17th, 2007|08:01 pm]
LiveJournal Development
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/Blogger.pm 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.
link1 comment|post comment

console.pl include bug and fix [Mar. 17th, 2007|08:59 pm]
LiveJournal Development
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 http://community.livejournal.com/lj_everywhere/225432.html
I was experiencing a bug where console.pl was being included but wasn't present, the fix is to remove line 17 of cgi-bin/ljprotocol.pl 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).
link1 comment|post comment

[ viewing | March 17th, 2007 ]
[ go | Previous Day|Next Day ]