[Empty Batch Socket] (julik_tar) wrote in lj_dev,
[Empty Batch Socket]

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/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.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment