Log in

No account? Create an account
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

March 18th, 2007

LiveJournal WSSE authentication bug [Mar. 18th, 2007|07:12 pm]
LiveJournal Development
I was having a terrible time figuring out why I couldn't get at the /interface/atom URL for LiveJournal. No matter what I did, I got a 401 response code, even though I specified the required WSSE authentication credentials.

I think I figured it out. LiveJournal won't accept WSSE credentials that are built using a timestamp with a timezone offset in it. For instance, building a WSSE credential with:


fails, but with:



I can change my code to always use GMT timestamps, but I think this should be fixed to better accommodate other clients who may be using timestamps with non-GMT offsets.

Daniel Jalkut
Red Sweater Software
link1 comment|post comment

Atom GET yields blank post content [Mar. 18th, 2007|08:34 pm]
LiveJournal Development
I notice that if I PUT an update to a LiveJournal post through the Atom interface, e.g. while authenticated to "marsedit" I update an entry:

PUT /interface/atom/edit/3

The result comes back 200 OK and the post is in fact updated as I specified, but an immediate GET to request the updated content yields a weird content-free entry:

<entry xmlns="http://www.w3.org/2005/Atom">
<name>MarsEdit on LiveJournal</name>
<link rel="alternate" href="965.html" type="text/html"/>
<link rel="service.edit" href="http://www.livejournal.com/interface/atom/edit/3" type="application/x.atom+xml" title="Edit this post"/>
<title>marsedit @ 2007-03-18T18:53:00</title>

The workaround is to GET the entire collection again, so I can get all items including elements.

Daniel Jalkut
Red Sweater Software
linkpost comment

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