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 783539 - Shell Search api broken: GetInitialResultSet doesn't return anything
Shell Search api broken: GetInitialResultSet doesn't return anything
Status: RESOLVED OBSOLETE
Product: gnome-calendar
Classification: Applications
Component: General
3.25.x
Other Linux
: Normal major
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-08 05:41 UTC by Khurshid Alam
Modified: 2017-11-24 22:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Khurshid Alam 2017-06-08 05:41:05 UTC
As of now shell-search dbus method GetInitialResultSet doesn't return anything, it used to return array of all event uids. You can check it with d-feet.


Calendar Version:        Status
-----------------     --------------

3.24.0                   Works!


3.24.1                  Doesn't Work


3.24.2                  Doesn't Work


Git/Master              Doesn't Work 




Possible Related Commit:
------------------------------
The only related commit between 3.24.0 and 3.24.1, I see is this: https://github.com/GNOME/gnome-calendar/commit/ea3bdd96b423a75a5278375986558f3dceb05d3d



Example Python Code:
---------------------

#!/usr/bin/python3
import dbus 

SERVICE_NAME = "org.gnome.Calendar" 
OBJECT_NAME = "/org/gnome/Calendar/SearchProvider" 
IFACE_NAME = "org.gnome.Shell.SearchProvider2"

sbus = dbus.SessionBus()
obj = sbus.get_object(SERVICE_NAME, OBJECT_NAME)
interface = dbus.Interface(obj, IFACE_NAME)

event_uids = interface.GetInitialResultSet([""])
print (event_uids)
Comment 1 Khurshid Alam 2017-06-17 15:16:27 UTC
The reply I am getting is this:

Traceback (most recent call last):
  • File "./calendar.py", line 12 in <module>
    event_uids = interface.GetInitialResultSet([""])
  • File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70 in __call__
    return self._proxy_method(*args, **keywords)
  • File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145 in __call__
    **keywords)
  • File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651 in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying

Comment 2 Georges Basile Stavracas Neto 2017-11-24 22:30:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-calendar/issues/158.