Project

General

Profile

Actions

Bug #89527

closed

Cannot cut/copy files after clearing the clipboard in the file module

Added by Dmitry Dulepov over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2019-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

Steps to reproduce the problem

1. Go to the file module
2. Make sure that clipboard is enabled
3. Copy a file
3. See the file in the clipboard
4. Clear the clipboard by using the icon on the right of the clipboard header area
5. Copy the file again
6. Clipboard stays empty

Explanation

1. When the file is copied to the clipboard, it happens via ajax call.
2. To display the current clipboard state after copying, file module reloads itself. It uses the current frame url. This is a very important fact.
3. When the button to clear the clipboard is clicked, it happens by the reloading the page with &SET[clipBoard]=1&CB[removeAll]=normal appended to the URL.
4. Next copying will add elements to the clipboard using ajax and reload the page using the current url. Since the url got the above shown parameters before, it will clear the clipboard immediately.
5. Any further adding to the clipboard will always immediately clear it.

The way to get out of this situation is to reload the whole backend. Then it will work until the clipboard is cleared again.

Reproducible for v8/v9. Similar code with the bug exists in the master branch.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Epic #90676: Clipboard related bugs and featuresAccepted2020-03-07

Actions
Actions #1

Updated by Christian Eßl about 4 years ago

  • Related to Epic #90676: Clipboard related bugs and features added
Actions #2

Updated by Andreas Kienast about 4 years ago

  • Status changed from New to Closed

It seems this issue is already solved in v10 and v9, thus I'll close this ticket.

Actions

Also available in: Atom PDF