Opened 16 years ago
Closed 16 years ago
#8712 closed defect (wontfix)
Detect old sqlite2 DB format and display link to update
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | database backend | Version: | 0.11.5 |
| Severity: | minor | Keywords: | needpatch sqlite |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Yet another user on IRC encountered the message "sqlite3.DatabaseError: file is encrypted or is not a database"
It would be better if an exception handler that is responsible for this error made additional read from DB file to check if its first line contains SQLite2 format signature.
** This file contains an SQLite 2.1 database **
Attachments (0)
Change History (5)
comment:1 by , 16 years ago
comment:3 by , 16 years ago
Well I have some incomplete work based on patch in #8647, but I am not sure it works now when #8625 is closed. I still haven't found a proper place where to put this DB check - see comment:12:ticket:8625
comment:4 by , 16 years ago
| Keywords: | sqlite added |
|---|---|
| Milestone: | → 0.12 |
| Owner: | set to |
| Priority: | normal → low |
| Severity: | normal → minor |
comment:5 by , 16 years ago
| Milestone: | 0.12 |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
I think it's simple enough to realize what has to be done when seeing this error message, given all the troubleshooting information that is available:
google:"DatabaseError: file is encrypted or is not a database"



Well, yes, and displayed a warning with link to upgrade instructions at PySqlite