Skip to content

[BUG] Copying/moving files to ownCloud through document provider does not work if app folders are not created #2662

Open

Description

@davigonz

Actual behaviour

  • Files are not copied/moved to ownCloud.

Expected behaviour

  • Files are properly copied/moved to ownCloud.

Steps to reproduce

  1. Remove all the folders related to ownCloud from your internal storage.
  2. Install ownCloud app.
  3. Open Files/Downloads app.
  4. Select a bunch of files from internal storage or Images section.
  5. Tap three dots button and select copy or move to an ownCloud account.

Environment data

Android version: 8.1.0

Device model: Nexus 5X

Stock or customized system: Stock

ownCloud app version: 2.12

Android logs

2019-09-18 13:40:01.584 24792-24855/com.owncloud.android.debug E/DatabaseUtils: Writing exception to parcel
    android.os.ParcelableException: java.io.FileNotFoundException: File -1 not found
        at android.provider.DocumentsProvider.call(DocumentsProvider.java:951)
        at android.content.ContentProvider$Transport.call(ContentProvider.java:401)
        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:272)
        at android.os.Binder.execTransact(Binder.java:697)
     Caused by: java.io.FileNotFoundException: File -1 not found
        at com.owncloud.android.providers.DocumentsStorageProvider.getFileByIdOrException(DocumentsStorageProvider.kt:516)
        at com.owncloud.android.providers.DocumentsStorageProvider.deleteDocument(DocumentsStorageProvider.kt:332)
        at android.provider.DocumentsProvider.callUnchecked(DocumentsProvider.java:1046)
        at android.provider.DocumentsProvider.call(DocumentsProvider.java:949)
        at android.content.ContentProvider$Transport.call(ContentProvider.java:401) 
        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:272) 
        at android.os.Binder.execTransact(Binder.java:697) 

The cause of this problem is that the document providers needs to have a temporal folder in external storage to copy/move files and that folder is not currently created till we download something from the ownCloud app.

Activity

  1. changed the title [-][BUG] Copying/Moving files to ownCloud through document provider does not work if app folders are not created[/-] [+][BUG] Copying/moving files to ownCloud through document provider does not work if app folders are not created[/+] on Sep 18, 2019
  2. DeepDiver1975 commented on Jun 26, 2026

    @DeepDiver1975
    Contributor

    🤖 Automated issue triage by Claude Code review agent.

    This issue was opened before 2020 and has had no activity since then, so we are
    closing it as outdated. If this is still relevant on a current ownCloud release,
    please reopen (or open a fresh issue) with up-to-date details — thank you!

  3. jesmrec commented on Jul 1, 2026

    @jesmrec
    Member

    Still reproducible

  4. reopened this on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions