Skip to content

Backup will fail if a content provider is selected for creating copies #1089

Open
@du33169

Description

@du33169

Describe the bug.
I use DAVx5 to back up the configurations of several applications to WebDAV. It registers as a content provider so that the user can directly select the DAVx5 filesystem when asked for a location to save a file, and then DAVx5 uploads it automatically.

I tried to create backups for SeriesGuide in the same way, but it failed and reported: IO exception: illegal seek.
It did create a backup file, but with a size of 0B.
The file path displayed below the "Select File" button looks like this:
content://at.bitfire.davdroid.webdav/document/271,
which is odd because it usually has seriesguide-movies-backup.json at the end.

I have tried other content providers and the error persisted.
Backup will succeed if a normal local path is selected or creating copies is disabled.

To reproduce
Steps to reproduce the behaviour:

  1. Install DAVx5 and set up a WebDAV remote.
  2. Go to SeriesGuide-Settings-AutoBackup
  3. Enable "Make a copy after every autobackup".
  4. Click 'Select File' for shows or movies
  5. Select DAVx5 file system, select directory and save
  6. Click "Create Backup
  7. The following error is displayed

Expected behaviour
Backup file saved successfully.

Smartphone (please complete the following information):.

  • Device: Android
  • OS: Android 13
  • Browser: ?
  • Version: v2024.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-infoNeeds more info to be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions