After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 694347 - Port to obexd as available in BlueZ 5.x
Port to obexd as available in BlueZ 5.x
Status: RESOLVED FIXED
Product: gnome-user-share
Classification: Core
Component: bluetooth
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-user-share maintainers
gnome-user-share maintainers
Depends on: 685717
Blocks:
 
 
Reported: 2013-02-21 10:47 UTC by Bastien Nocera
Modified: 2013-11-09 14:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bluetooth: remove old obex-data-server support (37.12 KB, patch)
2013-05-13 14:14 UTC, Emilio Pozuelo Monfort
none Details | Review
Implement obexd agent (8.50 KB, patch)
2013-05-13 14:15 UTC, Emilio Pozuelo Monfort
none Details | Review
Register the agent with the AgentManager (2.65 KB, patch)
2013-05-13 14:15 UTC, Emilio Pozuelo Monfort
none Details | Review
Reimplement accepting files (7.79 KB, patch)
2013-05-13 14:15 UTC, Emilio Pozuelo Monfort
none Details | Review
obexd: notify the user when a transfer is completed (9.74 KB, patch)
2013-05-13 14:15 UTC, Emilio Pozuelo Monfort
none Details | Review
obexd: implement asking the user to accept transfers (5.11 KB, patch)
2013-05-13 14:15 UTC, Emilio Pozuelo Monfort
none Details | Review
Bring back obex push enabled/disabled support (5.54 KB, patch)
2013-05-13 14:15 UTC, Emilio Pozuelo Monfort
none Details | Review
Port to BlueZ 5 (29.00 KB, patch)
2013-05-13 17:20 UTC, Emilio Pozuelo Monfort
none Details | Review
obexd: implement asking the user to accept transfers (5.04 KB, patch)
2013-05-13 17:21 UTC, Emilio Pozuelo Monfort
none Details | Review
Remove marshal generation (1.37 KB, patch)
2013-05-13 17:21 UTC, Emilio Pozuelo Monfort
none Details | Review
Port to BlueZ 5 (29.08 KB, patch)
2013-05-15 11:14 UTC, Emilio Pozuelo Monfort
committed Details | Review
obexd: implement asking the user to accept transfers (5.01 KB, patch)
2013-05-15 11:14 UTC, Emilio Pozuelo Monfort
committed Details | Review
Remove marshal generation (1.37 KB, patch)
2013-05-15 11:14 UTC, Emilio Pozuelo Monfort
committed Details | Review
Implement auto-accept when bonded (5.70 KB, patch)
2013-06-05 20:42 UTC, Emilio Pozuelo Monfort
committed Details | Review

Description Bastien Nocera 2013-02-21 10:47:45 UTC
Rather than relying on the unmaintained obex-data-server.
Comment 1 Emilio Pozuelo Monfort 2013-05-09 19:11:46 UTC
I'm working on this, will have a branch soon
Comment 2 Emilio Pozuelo Monfort 2013-05-13 14:14:57 UTC
Created attachment 244000 [details] [review]
Bluetooth: remove old obex-data-server support

This will be reimplemented as an obexd agent.
Comment 3 Emilio Pozuelo Monfort 2013-05-13 14:15:01 UTC
Created attachment 244001 [details] [review]
Implement obexd agent
Comment 4 Emilio Pozuelo Monfort 2013-05-13 14:15:04 UTC
Created attachment 244002 [details] [review]
Register the agent with the AgentManager
Comment 5 Emilio Pozuelo Monfort 2013-05-13 14:15:08 UTC
Created attachment 244003 [details] [review]
Reimplement accepting files

We have regressed support for ACCEPT_BONDED.
Comment 6 Emilio Pozuelo Monfort 2013-05-13 14:15:12 UTC
Created attachment 244004 [details] [review]
obexd: notify the user when a transfer is completed
Comment 7 Emilio Pozuelo Monfort 2013-05-13 14:15:17 UTC
Created attachment 244005 [details] [review]
obexd: implement asking the user to accept transfers

And ask the user when the preference is 'bond' for now.
Comment 8 Emilio Pozuelo Monfort 2013-05-13 14:15:22 UTC
Created attachment 244006 [details] [review]
Bring back obex push enabled/disabled support

We don't look at whether bluetoothd is enabled yet as the default
adapter concept is gone in bluez 5.
Comment 9 Emilio Pozuelo Monfort 2013-05-13 14:24:39 UTC
I initially removed the old bluez support and later on merged the bits that made sense. This made it easier to rewrite the agent as a GObject and to port to GDBus while at it.

One thing that's still missing is 'paired' support. org.bluez.obex.Session1 should give us enough information to implement this I believe, but it doesn't seem to be working atm. So for now I implemented 'ask' (which wasn't implemented before the porting) and decided to fall back to 'ask' if the user has 'bonded'.
Comment 10 Emilio Pozuelo Monfort 2013-05-13 17:20:57 UTC
Created attachment 244074 [details] [review]
Port to BlueZ 5
Comment 11 Emilio Pozuelo Monfort 2013-05-13 17:21:00 UTC
Created attachment 244075 [details] [review]
obexd: implement asking the user to accept transfers

And ask the user when the preference is 'bond' for now.
Comment 12 Emilio Pozuelo Monfort 2013-05-13 17:21:04 UTC
Created attachment 244076 [details] [review]
Remove marshal generation

The code that used this is gone.
Comment 13 Emilio Pozuelo Monfort 2013-05-15 11:14:07 UTC
New patches coming up fixing two issues:
-only check changed_properties in transfer_property_changed()
-fix return values for Release() and Cancel()
Comment 14 Emilio Pozuelo Monfort 2013-05-15 11:14:27 UTC
Created attachment 244299 [details] [review]
Port to BlueZ 5
Comment 15 Emilio Pozuelo Monfort 2013-05-15 11:14:30 UTC
Created attachment 244300 [details] [review]
obexd: implement asking the user to accept transfers

And ask the user when the preference is 'bond' for now.
Comment 16 Emilio Pozuelo Monfort 2013-05-15 11:14:34 UTC
Created attachment 244301 [details] [review]
Remove marshal generation

The code that used this is gone.
Comment 17 Emilio Pozuelo Monfort 2013-05-29 22:07:50 UTC
(In reply to comment #9)
> One thing that's still missing is 'paired' support. org.bluez.obex.Session1
> should give us enough information to implement this I believe, but it doesn't
> seem to be working atm. So for now I implemented 'ask' (which wasn't
> implemented before the porting) and decided to fall back to 'ask' if the user
> has 'bonded'.

Gustavo fixed this in bluez so this should be possible to implement now. I'll have a look at it, but probably not until next week.
Comment 18 Emilio Pozuelo Monfort 2013-06-05 20:42:21 UTC
Created attachment 246114 [details] [review]
Implement auto-accept when bonded

(In reply to comment #17)
> (In reply to comment #9)
> > One thing that's still missing is 'paired' support. org.bluez.obex.Session1
> > should give us enough information to implement this I believe, but it doesn't
> > seem to be working atm. So for now I implemented 'ask' (which wasn't
> > implemented before the porting) and decided to fall back to 'ask' if the user
> > has 'bonded'.
> 
> Gustavo fixed this in bluez so this should be possible to implement now. I'll
> have a look at it, but probably not until next week.

Done now.
Comment 19 Emilio Pozuelo Monfort 2013-06-05 20:45:04 UTC
So as mentioned on irc, we have regressed on FTP support. On the other hand, we now implement the 'ask' setting for the bluetooth-accept-files key. It would be trivial to make 'bonded' auto-accept when the device is paired and ask (instead of auto-reject) when the device is not paired, which is what gnome-user-share was doing before and so is what my patch that brings this back does too.
Comment 20 Bastien Nocera 2013-07-24 07:57:10 UTC
Leaving this opened as ObexFTP support isn't fixed,
and obexd doesn't support disabling ObexPush for inactive
sessions.

Attachment 244299 [details] pushed as 8ac9a4d - Port to BlueZ 5
Attachment 244300 [details] pushed as 1f4a9bb - obexd: implement asking the user to accept transfers
Attachment 244301 [details] pushed as 4de60bc - Remove marshal generation
Comment 21 Bastien Nocera 2013-11-09 13:36:11 UTC
Are the patches to bring back OBEX FTP somewhere? Even if we don't enable it by default, we still have a UI for it, so it seems a bit weird to have the UI and not the backend code (with all its caveats).
Comment 22 Bastien Nocera 2013-11-09 14:18:31 UTC
Never mind, I don't think we want to bring back ObexFTP, as we don't have any ObexFTP clients any more, and most phones don't include any ObexFTP clients (the ones that have OBEX support usually have Push, not FTP support).

Closing.