Bug 332465 - Trash menu has option to rename files - which does not work
Summary: Trash menu has option to rename files - which does not work
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 4.12.3
Platform: Mint (Ubuntu based) Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL: http://youtu.be/N7-fZJaJUv8
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-22 23:42 UTC by Brock McNuggets
Modified: 2020-05-26 21:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brock McNuggets 2014-03-22 23:42:09 UTC
The Trash menu has the option to rename files which you are told you cannot do, you truly cannot do, but the name appears to change anyway - leading to other errors


Reproducible: Always

Steps to Reproduce:
See video
Comment 1 Christoph Feck 2014-03-24 22:55:48 UTC
I could not reproduce any "bizzare results", here (using Dolphin from KDE 4.12.3) only a "Could not rename file" message pops up. Please clarify what results you get, and report them separately.

Regardless, the "File" menu should not enable the "Rename" action for trash:/ (the context menu doesn't have it either).

To reproduce in Dolphin:
- visit Trash
- select a file there
- select "File/Rename" menu item (or press F2)

Actual result:
- Dolphin asks for a new name

Expected result:
- "Rename" action disabled
Comment 2 Frank Reininghaus 2014-03-24 23:30:07 UTC
See bug 332463 comment 2.
Comment 3 Brock McNuggets 2014-03-24 23:45:58 UTC
I show what I get here: http://youtu.be/N7-fZJaJUv8?t=7m1s

With files and folders from my desktop and my home directory - rename shows up for me in each case. If this is resolved I think the "bizarre results" will go away, too.

1) Edit Undo does not undo the "false" rename. Not an issue if it does not allow the "false" rename 
2) If I select the item and click the "Delete" button on the keyboard I am told the file does not exist (it is looking for the false name)
3) The name "reverts" to the original if I leave and come back - not an issue if the "false" name is never shown.

In other words, I think if the bug is fixed it also handles the "bizarre behavior" - but if you still want separate reports please let me know.
Comment 4 Elvis Angelaccio 2017-02-26 23:19:45 UTC
KIO 5.32 will allow renaming top-level entries in the Trash. See https://git.reviewboard.kde.org/r/129741/
Comment 5 Patrick Silva 2020-05-26 21:14:57 UTC
Neither "File" menu nor the context menu has an enabled "Rename" option,
but we can rename a file inside Trash by pressing F2.
Dolphin renames the file to "0-typed_new_name.extension" and
when we try to undo renaming Dolphin shows an inline error message:
"Malformed URL trash:/typed_name.extension".
Trying to rename again with F2 made Dolphin to crash once on my system.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2