Project

General

Profile

Actions

Bug #755

closed

Export/import failure

Added by Raven Nine over 2 years ago. Updated 2 months ago.

Status:
Closed
Priority:
3.x
Start date:
08/24/2021
Due date:
% Done:

0%

Estimated time:

Description

Exported settings in version 3.6.1
Attempted to import that settings file in version 3.8.1

Import failed: android.database.sqlite.SQLiteException: no such table bookmarks (Code 1 SQLITE_ERROR):,while compiling:SELECT *FROM bookmarks

On inspection of the settings file it is zero bytes so I assume it was the export in version 3.6.1 that failed to work correctly.


Files

Settings 3.6.1.pbs (0 Bytes) Settings 3.6.1.pbs Raven Nine, 08/24/2021 05:08 PM
Export Successful.png (128 KB) Export Successful.png Soren Stoutner, 08/24/2021 06:42 PM
import-error.png (108 KB) import-error.png ask low, 02/21/2024 12:18 AM
Actions #1

Updated by Soren Stoutner over 2 years ago

Usually this is caused by using the file picker to select a name but not tapping the Export button in Privacy Browser afterwards. This happens because, when the OS file picker selects a file name, it creates a file with 0 bytes to prevent anything else from using that file name in the background.

After tapping Export in Privacy Browser, a snackbar will be display on the bottom of the screen that says "Export successful".

Actions #2

Updated by Soren Stoutner over 2 years ago

  • File deleted (Settings 3.6.1.pbs)
Actions #3

Updated by ask low 2 months ago

I'm not sure I understand this bug. I've just tried migrating from alt 3.16 to standard 3.17 & experienced this import bug.
Also, export hangs the browser completely. But successfully creates file.

Fortunately, being a root user I had an appdata backup of webview cookies, bookmarks & preferences so I haven't lost anything.

Actions #4

Updated by Soren Stoutner 2 months ago

Import/export to/from test versions I post on Redmine are not guaranteed to work because the schema on those databases might be in-between official schema releases. So, for example, if you were trying to export from one of the testing versions I posted for testing and import into a production release it will probably fail because the import doesn't know how to correctly update the schema. You can always manually edit the SQLite database to match the configuration described at https://www.stoutner.com/privacy-browser-android/settings-schema/, but that is more work than most people want to put into it.

Note that this has nothing to do with whether it is the Alt or the Standard version. Importing/exporting to/from any of the official production versions posted at https://www.stoutner.com/privacy-browser-android/changelog/ should work just fine.

When I post a testing version on Redmine so that people can check if it fixes a bug I will usually indicate to people if they will be able to import their settings from their current production version. But there is no promise that you will be able to export the settings back out and successfully import them into a future release. This is one of the differences between what makes them a testing version and not a beta release, which would require much more maintenance time to support such things. It is also why I make sure the links to these versions expire, so that I don't end up with a bunch of people trying to use them as their daily drivers and encountering problems down the road.

Actions #5

Updated by ask low 2 months ago

Then why does the export function hangs even on the standard version btw ?

Actions #6

Updated by Soren Stoutner 2 months ago

ask low wrote in #note-5:

Then why does the export function hangs even on the standard version btw ?

It doesn't for me. If you have such a problem I would recommend you create a new feature request as what you are describing doesn't have anything to do with this original bug.

Actions #7

Updated by ask low 2 months ago

Weird. The issue went away the moment I started screen record.

Actions

Also available in: Atom PDF