Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with actions in trashbin after select all and unselect of some files #10802

Closed
michag86 opened this issue Aug 22, 2018 · 2 comments
Closed
Labels

Comments

@michag86
Copy link
Contributor

Steps to reproduce

  1. Create 3 files
  2. Delete this 3 files
  3. go to deleted files
  4. select all files
  5. unselect one file
  6. use select action and undelete

Expected behaviour

The two selected files will be undeleted

Actual behaviour

The files are not undeleted and an error occours.
Details for undelete request:
Parameters:

dir: /
files: ["test1.pdf","test2.pdf"]

Response:

{"data":{"message":"Couldn't restore ","success":[],"error":["",""]},"status":"error"}

Workaround

Select the two files instead of select all and unselect.
Details for undelete request:
Parameters:

dir: /
files: ["test1.pdf.d1534933006","test2.pdf.d1534933007"]

Response:

{"data":{"success":[{"filename":"test1.pdf.d1534933006","timestamp":"1534933006"},{"filename":"test2.pdf.d1534933007","timestamp":"1534933007"}]},"status":"success"}

The Problem also accours for deletion of files in trashbin.

Server configuration

Operating system:
ubuntu 16.04
Web server:
Apache
Database:
sqlite (same on mariadb)
PHP version:
7.0
Nextcloud version: (see Nextcloud admin page)
Nextcloud 14.0.0 Beta 3 and 13,.0.5
Updated from an older Nextcloud/ownCloud or fresh install:
updated
Where did you install Nextcloud from:
git/zip

@MorrisJobke

@michag86 michag86 added the bug label Aug 22, 2018
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8924 (After "select all" in trashbin unselect some files, deletion fails), #10615 (Fix trashbin file actions), #2407 (Trashbin: no "restore" action and missing previews), #135 (Trashbin throws UniqueConstraintViolationException when restoring files), and #8302 (Presentation problem in file actions).

@michag86
Copy link
Contributor Author

duplicate of #5579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants