Bug 488300 - Hidden name warning does not appear during non-inline rename, and when adding file extensions which cause hiding.
Summary: Hidden name warning does not appear during non-inline rename, and when adding...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.05.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL: https://invent.kde.org/system/dolphin...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-10 12:02 UTC by Roke Julian Lockhart Beedell
Modified: 2024-06-10 18:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Windowed file creation with warning present. (30.64 KB, image/png)
2024-06-10 12:03 UTC, Roke Julian Lockhart Beedell
Details
Windowed directory creation with warning present. (32.95 KB, image/png)
2024-06-10 12:03 UTC, Roke Julian Lockhart Beedell
Details
Windowed file rename with warning absent. (23.43 KB, image/png)
2024-06-10 12:03 UTC, Roke Julian Lockhart Beedell
Details
Windowed directory rename with warning absent. (23.27 KB, image/png)
2024-06-10 12:04 UTC, Roke Julian Lockhart Beedell
Details
Inline file rename with warning present, except for `.old` file extension. (449.39 KB, video/mp4)
2024-06-10 16:55 UTC, Linus Kardell
Details
Windowed file creation for application/x-trash with warning absent. (10.77 KB, image/webp)
2024-06-10 18:49 UTC, Linus Kardell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2024-06-10 12:02:03 UTC
SUMMARY
As https://invent.kde.org/system/dolphin/-/merge_requests/695#note_965019 explains, I do not see a warning when renaming, such that it shall be hidden when renamed, a file or directory (I've not tried other filesystem objects, like symbolic and hard links) although, as https://invent.kde.org/system/dolphin/-/merge_requests/695#note_965313 demonstrates, it should.

STEPS TO REPRODUCE

1.  Create a file containing a period at the start of its name.
2.  Observe the warning, as https://invent.kde.org/system/dolphin/uploads/f2dadd0e5554177ba49c3f99ba892251/Screenshot_20240609_195931.png demonstrates.

3.  Create a file containing mere letters as its name.
4.  Rename it such that a period is at the start of the name, as https://invent.kde.org/system/dolphin/uploads/c8db2b2be1d678801210963bb1b01c08/Screenshot_20240609_200132.png demonstrates.

OBSERVED RESULT
The warning solely appears during creation, not renaming.

EXPECTED RESULT
The warning should appear in both instances.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.8.12-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi
Comment 1 Roke Julian Lockhart Beedell 2024-06-10 12:03:14 UTC
Created attachment 170322 [details]
Windowed file creation with warning present.
Comment 2 Roke Julian Lockhart Beedell 2024-06-10 12:03:46 UTC
Created attachment 170323 [details]
Windowed directory creation with warning present.
Comment 3 Roke Julian Lockhart Beedell 2024-06-10 12:03:59 UTC
Created attachment 170324 [details]
Windowed file rename with warning absent.
Comment 4 Roke Julian Lockhart Beedell 2024-06-10 12:04:09 UTC
Created attachment 170325 [details]
Windowed directory rename with warning absent.
Comment 5 Linus Kardell 2024-06-10 16:55:17 UTC
Created attachment 170351 [details]
Inline file rename with warning present, except for `.old` file extension.

When using inline rename, you get a warning when adding a period to the start of the name, but not if you add .old extension.
Comment 6 Roke Julian Lockhart Beedell 2024-06-10 17:20:34 UTC
(In reply to Linus Kardell from comment #5)
linus.kardell@gmail.com, that's a good catch. I'll expand the scope in the title to encompass that too. Do you know whether any other file extensions exhibit that behaviour? I recall an Invent thread where a few more equivalent extensions were mentioned.
Comment 7 Linus Kardell 2024-06-10 18:49:06 UTC
It's the application/x-trash mime-type, which is used for files ending in .old, .bak or %.

It's the same when creating files BTW, you get a warning if put a period at the start, but not if you add an application/x-trash extension.
Comment 8 Linus Kardell 2024-06-10 18:49:59 UTC
Created attachment 170354 [details]
Windowed file creation for application/x-trash with warning absent.