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 586684 - Can't open documents using a centrally-hosted database
Can't open documents using a centrally-hosted database
Status: RESOLVED FIXED
Product: glom
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Murray Cumming
Murray Cumming
Depends on:
Blocks:
 
 
Reported: 2009-06-22 20:22 UTC by Armin Burgmeier
Modified: 2009-06-24 12:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Armin Burgmeier 2009-06-22 20:22:32 UTC
When creating a document with a centrally hosted database, then Glom asks for a username and password to log in to the database server. However, when opening the created document later, Glom does not ask again, and can therefore not open the database on the server.

If I am not missing something, then we can either ask the user for the password every time the user opens the document, as we did in 1.10, or save the database password in the glom document. I'd prefer the first choice. Note that this would be only for a centrally hosted database.

To reproduce, simply create a new centrally-hosted document (whether you do this from an example file or whether you create an empty document does not matter), close Glom, reopen it and try to load the newly created document.
Comment 1 Murray Cumming 2009-06-22 20:26:24 UTC
Yes, it should ask when opening the document.
Comment 2 Armin Burgmeier 2009-06-24 12:38:52 UTC
Fixed with this commit:

2009-06-24  Armin Burgmeier  <armin@openismus.com>

	* glom/application.cc (on_document_load): Only provide a known user
	name and password for self-hosted databases, and ask the user for the
	database password for centrally-hosted ones.

	* glom/frame_glom.cc (connection_request_password_and_attempt): Show
	the connection dialog for centrally hosted connections, and fix trying
	to login with the same (wrong) credentials all the time without giving
	the user a chance to correct them. This fixes bug #586684.