Bug 304966

Summary: Send file using bluetooth fails
Product: [Frameworks and Libraries] solid Reporter: ceolesen
Component: bluetoothAssignee: Alex Fiestas <afiestas>
Status: RESOLVED DUPLICATE    
Severity: normal CC: scarpino
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description ceolesen 2012-08-11 10:01:17 UTC
Send of file from one computer to another using bluetooth fails.

Fedora 17 + KDE 4.8.4 all up to date.

Reproducible: Always

Steps to Reproduce:
Requirements are two computers such as a PC running Linux and a mobile phone both supporting bluetooth
1. Put phone is discoverable mode.
2. Click bluetooth symbol in tray. Menu opens.
3. Click "Send File" in menu. Menu closes. Window "Bluetooth Send Files" opens.
4. Select phone in window. Phone is highlighted.
5. Click "Send one or more files" in window.  Window "Bluetooth Send File Helper" opens.
6. Select file in window. Windows closes.
7. Click "Send Files" in window "Bluetooth Send Files". window changes to "Connecting to phone..." and closes. Progress window "no running jobs" temporarily appears. Window "Sending file over Bluetooth [Finished]" temporarily appears.
8. Check receive of file on phone. File was not received on phone.
Actual Results:  
/var/log/messages
Aug 11 00:36:49 xxxxxx bluetoothd[786]: bluetoothd[786]: Discovery session 0xb7cc1610 with :1.75 activated
Aug 11 00:36:49 xxxxxx bluetoothd[786]: Discovery session 0xb7cc1610 with :1.75 activated
Aug 11 00:36:54 xxxxxx bluetoothd[786]: bluetoothd[786]: Stopping discovery
Aug 11 00:36:54 xxxxxx bluetoothd[786]: Stopping discovery
Aug 11 00:36:54 xxxxxx bluetoothd[786]: bluetoothd[786]: Mode session 0xb7cbf4e0 with :1.53 activated
Aug 11 00:36:54 xxxxxx bluetoothd[786]: Mode session 0xb7cbf4e0 with :1.53 activated
Aug 11 00:36:59 xxxxxx dbus-daemon[853]: dbus[853]: [system] Rejected send message, 2 matched rules; type="method_return", sender=":1.0" (uid=0 pid=786 comm="/usr/sbin/bluetoothd -n ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.53" (uid=1000 pid=1867 comm="/usr/libexec/obex-client ")
Aug 11 00:36:59 xxxxxx dbus[853]: [system] Rejected send message, 2 matched rules; type="method_return", sender=":1.0" (uid=0 pid=786 comm="/usr/sbin/bluetoothd -n ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.53" (uid=1000 pid=1867 comm="/usr/libexec/obex-client ")


Send of file from the commandline works as for example using this script

#!/bin/sh
#
# send file using bluetooth
# args: [ bdaddr [ channel file ] ]
#   <>                        : get the <bdaddr> (must be discoverable)
#   <bdaddr>                  : get the <channel>
#   <bdaddr> <channel> <file> : send the <file>
#
case "$#" in
0) hcitool scan ;;
1) sdptool search --bdaddr $1 OPUSH ;;
3) obexftp --nopath --noconn --uuid none --bluetooth $1 --channel $2 --put "$3" ;;
esac
Comment 1 Andrea Scarpino 2012-09-06 14:10:25 UTC
Which version of obexd are you using?
Comment 2 ceolesen 2012-09-06 15:43:23 UTC
(In reply to comment #1)
> Which version of obexd are you using?
I'm using package
obexd-0.44-1.fc17.i686
Comment 3 Alex Fiestas 2012-10-08 08:28:01 UTC

*** This bug has been marked as a duplicate of bug 297785 ***