1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
3 Date: Tue, 25 Oct 2022 17:39:54 +0000
4 Subject: [PATCH] Fix OBEX PullAll after pathlib conversion
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 The OBEX tests in folks fail with:
11 (/build/folks/src/build/tests/bluez/bluez-individual-retrieval:3488):
12 folks-WARNING **: 17:30:47.981:
13 Error preparing persona store ‘bluez:00:00:00:00:00:00’:
14 The OBEX address book transfer from device ‘My Phone’ failed:
15 GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs:
16 Invalid arguments: Expected a string or unicode object
18 `PullAll` passes a `pathlib.Path` to `manager.EmitSignal`. Converting it
19 to a `str` fixes the issue.
21 dbusmock/templates/bluez5-obex.py | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
24 diff --git a/dbusmock/templates/bluez5-obex.py b/dbusmock/templates/bluez5-obex.py
25 index 880e05d65b0a..afc90538d9ea 100644
26 --- a/dbusmock/templates/bluez5-obex.py
27 +++ b/dbusmock/templates/bluez5-obex.py
28 @@ -225,7 +225,7 @@ def PullAll(self, target_file, filters):
30 # Emit a behind-the-scenes signal that a new transfer has been created.
31 manager.EmitSignal(OBEX_MOCK_IFACE, 'TransferCreated', 'sa{sv}s',
32 - [transfer_path, filters, filename])
33 + [transfer_path, filters, str(filename)])
35 return (transfer_path, props)