Skip to content

[BUG] Creating/deleting file via DocumentProvider is not working as expected #4638

@donmor

Description

@donmor

Actual behaviour

  • Create and save a file via DocumentProvider in another app, and it can't be accessed again, until opened again from SAF.
  • The failed entries has -1 as path while accessible entries has positive integers
  • Deleting a file with persistent uri in another app won't work.

Expected behaviour

  • Create and save a file, and it is created and saved

Steps to reproduce

  1. Setup an owncloud account
  2. Create a file in another app (e.g. Tiddloid) via DocumentProvider
  3. Close the file and try opening it from app's recent file list (for Tiddloid, it is the main activity)

Can this problem be reproduced with the official owncloud server?
(url: https://ocis.ocis.master.owncloud.works, user: einstein, password: relativity)
Unknown. I can't access this server at all.

Environment data

Android version: 13

Device model: Xiaomi 22041216C

Stock or customized system: MIUI14

ownCloud app version: 4.5.1 (43b8579)

ownCloud server version: 7.1.3

Logs

Web server error log

None (my server is currently down)

ownCloud log (data/owncloud.log)

None (my server is currently down)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions