You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sqlite storage plugin takes a dburi parameter. However the parameter does not take URIs as defined in https://www.sqlite.org/c3ref/open.html. The code assumes that the dburi parameter is a path to a file. Neither :memory: nor file: URIs are supported.
Custodia should also use PRAGRMA to get the actual path of the sqlite file for chmod().
>>> c = sqlite3.connect(':memory:')
>>> c.execute('PRAGMA database_list;').fetchall()
[(0, 'main', '')]
>>> c = sqlite3.connect('/tmp/test.db')
>>> c.execute('PRAGMA database_list;').fetchall()
[(0, 'main', '/tmp/test.db')]
# Python 3 only
>>> c = sqlite3.connect('file:/tmp/test.db', uri=True)
>>> c.execute('PRAGMA database_list;').fetchall()
[(0, 'main', '/tmp/test.db')]
>>> c = sqlite3.connect('test.db', uri=True)
>>> c.execute('PRAGMA database_list;').fetchall()
[(0, 'main', '/home/heimes/redhat/pki/test.db')]
The text was updated successfully, but these errors were encountered:
The sqlite storage plugin takes a
dburi
parameter. However the parameter does not take URIs as defined in https://www.sqlite.org/c3ref/open.html. The code assumes that thedburi
parameter is a path to a file. Neither:memory:
norfile:
URIs are supported.Custodia should also use PRAGRMA to get the actual path of the sqlite file for
chmod()
.The text was updated successfully, but these errors were encountered: