Fix invalid unique name issue 75/267475/1 accepted/tizen/6.5/unified/20211207.212511 submit/tizen_6.5/20211206.062626
authorWootak Jung <wootak.jung@samsung.com>
Mon, 6 Dec 2021 05:05:54 +0000 (14:05 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 6 Dec 2021 05:10:11 +0000 (14:10 +0900)
I/BLUETOOTH_FRWK_SERVICE(  392): bt-service-main.c: __on_log_glib(85) >
g_variant_new_string: assertion 'g_utf8_validate (string, -1, NULL)' failed
E/CYNARA  (  392): Getting client credentials by calling dbus method
GetConnectionCredentials on Id <:1.19482`��U> failed with error
<GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get
credentials of name '[Invalid UTF-8]': no such name>

Change-Id: I296767876dc143449d8147e00cc3d302ce0378d8

bt-service/services/bt-request-handler.c

index 69eff8b..1c5f4d6 100644 (file)
@@ -350,7 +350,7 @@ static void __bt_service_method(GDBusConnection *connection,
                 * from the bt-service in host. At this time, the original sender's privilege
                 * should be checked not bt-service's privilege */
                if (_bt_service_is_container() == TRUE)
-                       unique_name = g_variant_get_data(param1);
+                       unique_name = (const char *)g_variant_get_data(param1);
                else
                        unique_name = sender;
 #else