Bug 457331

Summary: When renaming fails, Dolphin shows the new filename until refreshed
Product: [Applications] dolphin Reporter: Kishore Gopalakrishnan <kishore96>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kfm-devel, postix
Priority: NOR    
Version: 22.07.80   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2022-07-31 06:47:28 UTC
SUMMARY
If you try to rename a file with a very long name, Dolphin shows an error message saying the rename failed. Nevertheless, the name of the file is still updated in the view, and the wrong name persists until the view is refreshed.

STEPS TO REPRODUCE
1. Press F2 to rename a file
2. Paste a very long name (e.g. `Paxton, Smolec, Schwab, Gautschy, Bildsten, Cantiello, Dotter, Farmer, Goldberg, Jermyn, Kanbur, Marchant, Thoul, Townsend, Wolf, Zhang, Timmes 2019 - Modules for Experiments in Stellar Astrophysics (MESA): Pulsating Variable Stars, Rotation, Convective Boundaries, and Energy Conservation.pdf`
3. Press enter
4. Dismiss the error window (that says renaming failed)

OBSERVED RESULTS
Once the error window is dismissed, the file in the view is shown with the new name (even though rename failed). However, refreshing the view (F5) correctly shows the file with the old name.

EXPECTED RESULTS
If renaming a file fails, the file should be shown with the old name even without refreshing the view.

SOFTWARE VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.15-arch1-1 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
A. Seems related to (may be a duplicate of) bug 399823.
B. Happens in both details view and icons view.
Comment 1 postix 2025-01-19 12:00:45 UTC
Hi! I cannot reproduce this with Dolphin 24.12.1. Could you please try to verify if this is still an issue for you in a more recent version? Thanks!
Comment 2 Bug Janitor Service 2025-02-03 03:47:00 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-02-18 03:46:26 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.