Ticket #143 (closed defect: fixed)

Opened 4 months ago

Last modified 1 week ago

syncml_obex_client fails with Forbidden (0x43)

Reported by: chi70 Assigned to: bellmich
Priority: normal Component: libsyncml
Version: 0.4.6 Severity: major
Keywords: Cc: julian@mehnle.net

Description

syncml-obex-client fails with 0x43 forbidden

There is nothing visible on the mobile. I saw this with an E65 and an E9500 communicator.

syncml-obex-client --identifier "PC Suite" --sync text/x-vcard Contacts --sync text/x-vcalendar 
Calendar --wbxml -b $MAC $CHANNEL --dumpinfo
connection with device succeeded
Received an Alert for the DS Server at Calendar: Type: 201, Last , Next 20080328T150443Z
Received an Alert for the DS Server at Contacts: Type: 201, Last , Next 20080328T150443Z
Just received a new session with ID 32
Received the DevInf
Session 32 reported final. flushing
Received an transport error: Forbidden (0x43)
Send the output below to the libsyncml developers

========================================
Man: NOKIA
Mod: 9500
FirmwareVersion: (null)
SoftwareVersion: 05.22(01)
HardwareVersion: (null)

ReceiveLimit: 0
MaxObjSize: 0
Connection used: OBEX Client
Identifier: PC Suite

Databases:
DB Locations: Contacts
DB Type: text/x-vcard
DB Slow: 0

DB Locations: Calendar
DB Type: text/x-vcalendar
DB Slow: 0

Bluetooth: Yes
Wbxml: Yes
SyncML Version: 1.1
SupportsNumberofChanges: Yes
SupportsLargeObjects: Yes

Attachments

log.tar.bz2 (3.0 kB) - added by Yenya on 06/21/08 00:13:42.
SYNCML_LOG dir for the Nokia E51
opensync_logs.tgz (3.9 kB) - added by tibi on 06/22/08 03:17:38.
Forbidden (0x43) error on Sony Ericsson P1i

Change History

05/27/08 17:58:43 changed by chi70

  • severity changed from normal to major.

It was shown that this happens if the mobile requests a slow-sync.
Opensync or libsyncml response is incorrect and that triggers the 0x43 forbidden

workaround:

  • sync once with the vendor software

06/03/08 19:53:56 changed by bellmich

Sync once with the vendor software should not work because the mobile should detect the remote peer. If the mobile does not detect this then it is buggy.

Did you sniff the communication or how do you know of the wrong response? BTW there was such an issue.

06/05/08 10:30:32 changed by bellmich

Please forget my first comment. I got a hint from Christian. We discussed the issue some time ago.

I commited a very small patch to SVN. The problem is/was that the tool always send status 508 if a slow sync alert is send from the tool but this is only correct if a normal sync is requested by the client.

Please test libsyncml svn v440.

06/05/08 10:31:01 changed by bellmich

  • owner changed from dgollub to bellmich.

06/05/08 10:31:31 changed by bellmich

  • status changed from new to assigned.

06/12/08 13:31:12 changed by bellmich

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed with v440.

Bug description ===============

client received: alert 201 client answers: status 508 alert 201

Mistake: status must be 200 and not 508

06/21/08 00:04:58 changed by Yenya

  • status changed from closed to reopened.
  • resolution deleted.

Hello, I am not sure if I have the same problem, but here we go:

with libopensync 0.4.5 (included in Fedora 9), 0.4.6 (compiled from the source tarball), and SVN version 465 I cannot sync with my new Nokia E51 - I am getting the Forbidden error:

# syncml-obex-client -b $MAC $CHANNEL --slow-sync text/x-vcard Contacts --wbxml --identifier "PC Suite" --dumpinfo
connection with device succeeded
Received an Alert for the DS Server at Contacts: Type: 201, Last , Next 20080620T215507Z
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
Received an transport error: Forbidden (0x43)
Send the output below to the libsyncml developers

========================================
Man: Nokia
Mod: E51
FirmwareVersion: 
SoftwareVersion: 100.34.20
HardwareVersion: 

ReceiveLimit: 65535
MaxObjSize: 0
Connection used: OBEX Client
Identifier: PC Suite

Databases:
DB Locations: Contacts
DB Type: text/x-vcard
DB Slow: 1

Bluetooth: Yes
Wbxml: Yes
SyncML Version: 1.1
SupportsNumberofChanges: Yes
SupportsLargeObjects: Yes

The device then displays a "System error" message. My OS is Fedora 9, i386, wbxml2-0.9.2-13.fc9.i386. I have Linux only, so I have not synced with the vendor software at all. I use channel 10, which "sdptool browse" reports as "Service Name: SyncMLClient".

I am reopening the ticket, but feel free to tell me to open a new one.

06/21/08 00:13:42 changed by Yenya

  • attachment log.tar.bz2 added.

SYNCML_LOG dir for the Nokia E51

06/22/08 03:16:36 changed by tibi

Version 0.46 with a Sony Ericsson P1i seems to trigger the same bug:

$ syncml-obex-client -b $MAC $CHANNEL --version '1.2' --identifier 'Sony Ericss' --slow-sync text/x-vcard Contacts --wbxml --dumpinfo --add text/x-vcard test.vcard
connection with device succeeded
Received an transport error: Forbidden (0x43)
Didnt receive the devinf though it was requested

Using version 1.1 or 1.2 of SyncML doesn't make any difference.

When trying again I get the following error:

Received an transport error: Bluetooth connect error
Received an transport error: Link Error: 0x0

Note that the BT stack on the phone did not crash, e.g. file transfer works just fine, but it seems the SyncML channel is closed (just speculating).

Attaching log files in the next comment.

06/22/08 03:17:38 changed by tibi

  • attachment opensync_logs.tgz added.

Forbidden (0x43) error on Sony Ericsson P1i

07/07/08 00:34:05 changed by Julian Mehnle

  • cc set to julian@mehnle.net.

07/07/08 14:30:48 changed by bellmich

  • status changed from reopened to closed.
  • resolution set to fixed.

Don't re-open this bug. It is senseless to re-open a bug from another mobile because it is useless for us to close a bug when the next user with the next mobile opens the bug again. If you open a bug then please build a subject like this:

syncml-obex-client and E51 fail with Forbidden (0x43)

It is wasted time to handle the behavior of a Nokia series 40, a Nokia Symbian series 60 and a Sony-Ericsson UIQ 3 in the same ticket.

Today E65 (Nokia S60) and E9500 (Nokia S80) work.

08/12/08 12:30:03 changed by Yenya

OK, the E51 problem opened as

http://libsyncml.opensync.org/ticket/153