User and password for syncing overwritten when running with --sync-server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Mnemosyne Project |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using mnemosyne 2.3.6 in a headless environment, I set the user/password in the following manner:
$> cd /path/to/
$> python
>>> import sqlite3
>>> conn = sqlite3.
>>> c = conn.cursor()
>>> print c.execute('select * from config where key like "%remote%
[(u'remote_
>>> c.execute('update config set value = "YOUR PASSWORD" where key = "remote_
<sqlite3.Cursor object at 0x7f6bc9916ab0>
>>> c.execute('update config set value = "YOUR USERNAME" where key = "remote_
<sqlite3.Cursor object at 0x7f6bc9916ab0>
>>> conn.commit()
>>> conn.close()
>>> # just an extra check to see the file was written.
>>> conn = sqlite3.
>>> c = conn.cursor()
>>> print c.execute('select * from config where key like "%remote%
[(u'remote_
>>> conn.close()
When I start mnemosyne (mnemosyne -d /path/to/
Changed in mnemosyne-proj: | |
status: | New → Incomplete |
I cannot reproduce this when editing config.db manually with sqlite browser. After starting and stopping the headless server, the username and password are still in the config file, and syncing with those values works. Are you sure you're not confusing directories/files?