art1c0 / mooha

Automatically exported from code.google.com/p/mooha
0 stars 0 forks source link

nokia 6700 error 'Data transfer not possible' #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. get a nokia 6700
2. try to connect to synchronize

What is the expected output? What do you see instead?
I expected  my phone synchronizing. Instead i get the error 'Data transfer not 
possible'

What version of the product are you using? On what operating system?
mooha 0.3b on PHP 5.3.2

Please provide any additional information below.
I already deeply dived into the source code to see what's going on. For 
debugging i extracted the xml files that are received from my phone 
(input_.xml) and that are send by mooha (output_.xml). Maybe you can see what's 
going wrong.

Original issue reported on code.google.com by jo...@slikkie.nl on 24 Sep 2010 at 6:26

Attachments:

GoogleCodeExporter commented 9 years ago
alert status is 401!

means: 
Invalid credentials. The requested command failed because the requestor MUST 
provide proper authentication. If the

property type of authentication was presented in the original request, then the 
response code indicates that the requested command has been refused for those 
credentials.

Original comment by konstant...@gmail.com on 27 Sep 2010 at 6:52

GoogleCodeExporter commented 9 years ago
Yes, but that's in output 0. My phone then respond with input 1, which provide 
creditals and two anchors. Then mooha sends output 1, with status 212 
(authentication accepted) and also some anchors. But then my phone gives the 
error 'Data transfer not possible'.

Original comment by jo...@slikkie.nl on 27 Sep 2010 at 9:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i see that's a bug.

mooha_server assume in the first message the authentication.
mooha_server save successful auth and some more properties in $_SESSION var, 
over this properties it handle next messages etc...

see outpup1.xml it begin again with message id 1. if authentication were 
successful the output1.xml has message id 2.

what you got in output1.xml is a logic error. 

typical errors by nokia, the developers must add an exception for devices

Original comment by konstant...@gmail.com on 29 Sep 2010 at 9:15

GoogleCodeExporter commented 9 years ago
Not sure if this is the reason, but it could be that the $_SESSION variable is 
actually empty on each request made by the phone.  That's what happened for me. 
  If this is the case, every request will have message id 1.....

I integrated all the code with Joomla, then ripped out all of Mooha's session 
handling and replaced it with Joomla session handling - all works fine now.

Original comment by smartmul...@gmail.com on 6 Dec 2010 at 2:31

GoogleCodeExporter commented 9 years ago
Hi,

Gavin could you share your part of code, that is handling problem please? 
Thanks a lot.

Original comment by ludvikto...@gmail.com on 8 Feb 2011 at 3:32

GoogleCodeExporter commented 9 years ago
How could it be fixed? I use module for drupal 6.x site.

Original comment by 13ha...@gmail.com on 30 Aug 2011 at 6:26

GoogleCodeExporter commented 9 years ago
Hey, @all -> can someone send me a solution?
Regards Andy

Original comment by handler....@googlemail.com on 11 Jan 2012 at 12:54