{"action":"created","issue":{"url":"https://api.github.com/repos/blueman-project/blueman/issues/263","labels_url":"https://api.github.com/repos/blueman-project/blueman/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/blueman-project/blueman/issues/263/comments","events_url":"https://api.github.com/repos/blueman-project/blueman/issues/263/events","html_url":"https://github.com/blueman-project/blueman/pull/263","id":69470906,"number":263,"title":"obexd","user":{"login":"cschramm","id":464848,"avatar_url":"https://avatars.githubusercontent.com/u/464848?v=3","gravatar_id":"","url":"https://api.github.com/users/cschramm","html_url":"https://github.com/cschramm","followers_url":"https://api.github.com/users/cschramm/followers","following_url":"https://api.github.com/users/cschramm/following{/other_user}","gists_url":"https://api.github.com/users/cschramm/gists{/gist_id}","starred_url":"https://api.github.com/users/cschramm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschramm/subscriptions","organizations_url":"https://api.github.com/users/cschramm/orgs","repos_url":"https://api.github.com/users/cschramm/repos","events_url":"https://api.github.com/users/cschramm/events{/privacy}","received_events_url":"https://api.github.com/users/cschramm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-19T22:26:22Z","updated_at":"2015-04-19T23:01:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/blueman-project/blueman/pulls/263","html_url":"https://github.com/blueman-project/blueman/pull/263","diff_url":"https://github.com/blueman-project/blueman/pull/263.diff","patch_url":"https://github.com/blueman-project/blueman/pull/263.patch"},"body":"This is not (yet) a request to pull the changes, but only meant to discuss the ongoing development.\r\n\r\n@infirit I found out what's going wrong when writing to the file, although the implementation is a little strange. After open() succeeded and created or truncated the file, obexd checks if it resided within its root path. The root path is an option to obexd and specified either absolute or relative to the user's home directory and it defaults to `g_build_filename(g_get_user_cache_dir(), \"obexd\", NULL)` which will probably be $HOME/.cache/obexd. If the shared path configured in blueman is different, receiving files will fail. I'll look into how to get the configuration from obexd - if possible at all.\r\n\r\nFor those curious: Please note that I'm currently focusing on BlueZ 5 only. BlueZ 4 with obexd 0.47 or 0.48 will not work yet, but of course you can provide tracebacks for that so that we know which parts we have to care about."},"comment":{"url":"https://api.github.com/repos/blueman-project/blueman/issues/comments/94321579","html_url":"https://github.com/blueman-project/blueman/pull/263#issuecomment-94321579","issue_url":"https://api.github.com/repos/blueman-project/blueman/issues/263","id":94321579,"user":{"login":"infirit","id":3465730,"avatar_url":"https://avatars.githubusercontent.com/u/3465730?v=3","gravatar_id":"","url":"https://api.github.com/users/infirit","html_url":"https://github.com/infirit","followers_url":"https://api.github.com/users/infirit/followers","following_url":"https://api.github.com/users/infirit/following{/other_user}","gists_url":"https://api.github.com/users/infirit/gists{/gist_id}","starred_url":"https://api.github.com/users/infirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infirit/subscriptions","organizations_url":"https://api.github.com/users/infirit/orgs","repos_url":"https://api.github.com/users/infirit/repos","events_url":"https://api.github.com/users/infirit/events{/privacy}","received_events_url":"https://api.github.com/users/infirit/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T23:01:42Z","updated_at":"2015-04-19T23:01:42Z","body":"If the open() call truncates existing files maybe we are not supposed to write directly to the destination. \r\n\r\nLooking at how gnome-user-share it looks like it does this, first [obex_agen_authorize_push](https://git.gnome.org/browse/gnome-user-share/tree/src/obexpush.c#n599) and then [move_temp_filename](https://git.gnome.org/browse/gnome-user-share/tree/src/obexpush.c#n471)."}}