Skip to content

Restore a file from trashbin -> Undefined index: files at cloud/apps/files_trashbin/ajax/undelete.php#31 #528

Description

@Dennis1993

Steps to reproduce

  1. delete a file
  2. restore it from trashbin

Actual behaviour

Tell us what happens instead
file is restored but error message in log

Server configuration

Operating system:
Ubuntu

Web server:
Apache 2.4

Database:
MySQL 5.6.

PHP version:
7.0.8

Nextcloud version: (see Nextcloud admin page)
9.0.53 (stable)

Updated from an older Nextcloud/ownCloud or fresh install:
fresh install

Where did you install Nextcloud from:
nextcloud.com

List of activated apps:

Details Default apps with calendar app

The content of config/config.php:

Details default

Are you using external storage, if yes which one: local/smb/sftp/...
no

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

Client configuration

Browser:
IE11, Microsoft Edge

Operating system:
Windows 10

Logs

Web server error log

Web server error log

Undefined index: files at cloud/apps/files_trashbin/ajax/undelete.php#31

Activity

  1. self-assigned this
    on Jul 22, 2016
  2. LukasReschke commented on Jul 22, 2016

    @LukasReschke
    Member

    While I can see in the code what triggers this error message I can't quite understand when this code path is triggered.

    Does this happen for any file? Or are they in subfolders or do you try to restore folders? Would be awesome if I would be able to reproduce this locally.

  3. Dennis1993 commented on Jul 22, 2016

    @Dennis1993
    ContributorAuthor

    I know whats the Problem or how you can reproduce it.

    I have deleted a file (picture) from the root. If I click on "Wiederherstellen" (restore file) in the same line behind the file Name -> no error occurs.
    But if I select the file and use the button above the table -> error is logged.

    Here a screenshot with a Little documentation what I've do.

    Thanks for your reply!

    restore_error

  4. added a commit that references this issue on Jul 25, 2016
    59b87fa
  5. MorrisJobke commented on Jul 25, 2016

    @MorrisJobke
    Member

    Fix is in #547

  6. added this to the Nextcloud 11.0 milestone on Jul 25, 2016
  7. added 2 commits that reference this issue on Jul 25, 2016
    edc15db
    0342764
  8. removed their assignment
    on Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions