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 669233 - gda_connection_get_meta_store_data( GDA_CONNECTION_META_TABLES ) can fail silently
gda_connection_get_meta_store_data( GDA_CONNECTION_META_TABLES ) can fail sil...
Status: RESOLVED NOTABUG
Product: libgda
Classification: Other
Component: Client library
4.99.x
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks: 669043
 
 
Reported: 2012-02-02 11:25 UTC by Murray Cumming
Modified: 2012-02-05 21:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gda_meta_tables_fails_as_lesser_user.c (1.58 KB, text/x-csrc)
2012-02-02 11:25 UTC, Murray Cumming
Details

Description Murray Cumming 2012-02-02 11:25:59 UTC
Created attachment 206614 [details]
gda_meta_tables_fails_as_lesser_user.c

This test case shows that gda_connection_get_meta_store_data() can return an empty GdaDataModel for GDA_CONNECTION_META_TABLES, though no error or other warning is shown.

This happens with a non-superuser user that I add in Glom, and is also seen in this Glom test case, which creates the user and then tries to use it:
http://git.gnome.org/browse/glom/tree/tests/test_selfhosting_new_from_example_operator.cc

I am still investigating to find out what about the user triggers this, but I though someone else might know where in the code an error is maybe not checked for properly.
Comment 1 Murray Cumming 2012-02-03 10:43:11 UTC
Actually, this was caused by none of the tables having the "GRANT SELECT" privilege. I am surprised that this also means that the table's existence cannot even be discovered, but maybe it's intentional and unavoidable.
Comment 2 malerba 2012-02-05 21:15:47 UTC
I think this is intentional.