« Last Day | Main | Comments Fixed »

MT3.2 & Lifeblog

Posted by Martin on Oct 25, 2005 in Lifeblog and Mobile

I finally found the time to take a look at mod'ing the MT3.2 AtomServer for compatibility with the Series 60 Lifeblog client. In the end it was fairly straightforward to apply the previous the changes, although I did discover one change of behaviour that may or may not be a bug in MT3.2. The MT::App function uri returns /cgi-bin/mt.cgi rather than the uri of the file invoked (in this case mt-atom.cgi). Very odd.

This file is made available subject to the usual proviso of using it at your own risk. I have only tested it with a Nokia 6630 running the latest download of Lifeblog.

To install:

  1. Download this file. Replace the standard Moveable Type version of AtomServer.pm (this file can be found in lib/MT) with it.
  2. Create a directory lifeblog with the normal 755 permissions in the root directory of your blog.
  3. Add the entries described in my original post to your style sheet template and rebuild it
  4. Configure the Lifeblog client with your username and API password (not the standard password). This can be found on your Author Profile page. The server address to use is http://yourwebaddress/cgi-bin/mt-atom.cgi/weblog/
  5. Post an entry from your phone. I'd recommend enabling the Lifeblog Optimise images setting.

Note 1: If you use any other Atom client that needs to authenticate itself, it may no longer work due to changes I had to make to allow the Lifeblog client to do so. If you need this other client DO NOT use this version of the script.

Note 2: If your mt-atom.cgi file is not in /cgi-bin then you will need to edit the AtomServer.pm file. Find the line

my $ATOM_CGI = '/cgi-bin/mt-atom.cgi';
and change it to refer to your mt-atom.cgi file.

Have fun and let me know of your successes and failures.

Comments

man yak geme nokia 7610 baraye downlods mekhaham

:(

so cool but my server won't let me run your script says it is not a regular file:

Execution of (managed-mt) is not permitted for the following reason:

Script is not a regular file

i still cant get the lifeblog client to auth to the server. error says "no accounts found on any weblog"

Every time i post i get a, "There was a problem registering your account, please check the details you entered and try again"

i'm using MT v 3.2 and lifeblog 1.7 for the PC and i'm getting the similar error on my phone the nokia N70

Everytime i try to post from the pc software i get "There was a problem registering your account, please check the details and try again", i get a similar error on the mobile, a nokia n70.

using MT 3.2 and Lifeblog 1.7
The error logs just say
"Authenticate failed"

ok the exact error is "no weblogs found for any account", and the authenticate failed still is the same

$app->SUPER::authenticate or return;

ok, i know my perl, however it's like 2am here, i'd particularly not like to go hunting down the module, this is what is causeing the system to return the error. I'll have a look at it tommorrow sometime, however if you know what might be causing it

Thanks

This seems to work from the phone but not from the PC client. When I try to re-submit the data the pcclient is sending, the result is:


HTTP/1.1 403 X-WSSE PasswordDigest is incorrect
Date: Tue, 31 Jan 2006 19:55:35 GMT
Server: Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.6b FrontPage/5.0.2.2635
mod_throttle/3.1.2
Pragma: no-cache
Www-authenticate: WSSE profile="UsernameToken"
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

32
(error) X-WSSE PasswordDigest is incorrect(/error)

0

I would expect this. Due to different interpretations of the spec, the phone and pcclient have implememented authentication differently. My script changes are made to enable the phone to work.

I know this is annoying and I think it may have been fixed in more recent versions of the phone software. If it has the script may not work at all! I need to get an N70 to verify this.

Running Lifeblog 1.7 on pc or Nokia N70 gives me the no weblogs found for any account error

Lifeblog with versions 1.7 and later do implement the ATOM WSSE authentication correctly. In the given AtomServer.pm of this posting you have to remove one hash on an outcommented line and everything is fine again.

In sub authenticate (~line 181) remove the hash from the following line:

# $auth->{Nonce} = MIME::Base64::decode_base64($auth->{Nonce});

Then it works :-) unfortunately this breaks Lifeblog versions before 1.7.
If somebody has time the sub authenticate could be changed to try both versions before failing.

Very cool! Just one problem - I'm getting "Posting failed, please try again" errors when trying to post from N70, Lifeblog 1.7.

It seems to have retrieved my blog alright, but immediately fails after it connected. Would this have anything to do with me running MT on XP/IIS?

Does the atomserver.pm need to be modified for XP? Sorry, I'm pretty primitive when it comes to perl...

I have tried absolutely everything I have seen and more, and cannot for thl ife of me get this to work lifeblog to post to the web in MT 3.2.

Is there anyone who could help further? As the last post was a while ago.

So does that mean theres noone else with problems and its just me?

Please anyone who can help or spare the time as i honestly have spent 3 whole days trying everything.

Thanks

Ok,, After another day of trying to get my head round it all.

I have finally got Nokia Lifeblog on my pc to send the picture and notes, texts etc, into the folders on my MT3.2 website. :-)

However the pictures and texts arent showing at all, although a blank entry is being made in the blog!

:-(

Anyone any ideas of where i can look to sort this out, is it a template issue? Is my blog setup right?

So close now, and yet so far im sure!

Is there any chance of you updating the atomserver.pm you have configured to work with Movable type 3.3?

You are the only person I have found who seems to have worked this out (and told anybody publically!).

I have tried but i cannot seem to get it to work. It gets a list of blogs but then posts a "web server error please try again"

Here's hoping.

I have it working on my site under MT 3.31. Martin, I can't seem to find an e-mail address of yours, so I'm not sure if this is alright with you or not, but my modifications (basically merging your patches with 3.31) are available here.

I tried both yours and Sean's on a MT3.2 / Lifeblog 2.1.131 setup.

It will post, and it will upload the images to the /Lifeblog folder. However, the post itself does not contain any links to the image.

(Posting from the PC client, not the phone)

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)