Maniphest T100436

File Dialog Renaming doesn't commit case-changes
Closed, Duplicate

Assigned To
None
Authored By
Helge Maus (pixeltrain)
Aug 16 2022, 1:13 PM
Tags
  • BF Blender
Subscribers
Helge Maus (pixeltrain)
Philipp Oeser (lichtwerk)
Pratik Borhade (PratikPB2123)
Steff Kempink (mswf)

Description

System Information
Operating system: macOS-12.5-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 580 OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.8.101

Blender Version
Broken: version: 3.3.0 Beta, branch: master, commit date: 2022-08-16 00:17, hash: rB2d19038c6c28

Short description of error
The renaming function (F2) in a File Dialog can rename folder or file names. Fo that select, rename and press Enter.
Works most of the time, but it doesn't work for changes when the name is the same, but the char case is different.
For example: "RD_test" cannot be renamed to "RD_Test"

Exact steps for others to reproduce the error
Same a Blend file with the name "test.blend"
Go to the Open Dialog
Select the blend file "test.blend"
Context Menu -> Rename or F2
Try to rename to "Test.blend"
Name isn't changed

Event Timeline

Helge Maus (pixeltrain) created this task.Aug 16 2022, 1:13 PM
Steff Kempink (mswf) added a subscriber: Steff Kempink (mswf).EditedAug 16 2022, 1:30 PM

This is a general issue with file systems, at least on all kinds of formats for Windows (and Mac OS as far as Google tells me). They don't notice the the difference between Uppercase and lowercase.
On your Mac in Finder, try to rename the same file on the same location, you should see the same problem.
The workaround is to first extend the filename to test__.blend (or smthing), then rename it to Test.blend.

Helge Maus (pixeltrain) added a comment.EditedAug 16 2022, 1:34 PM

Thanks. I tried it on Mac OS 12.5 and it works fine.
Also I think that's something which should be fixed, because it happens a lot that an artist writes Uppercase by accident, which is normally not in the standard of the pipeline.
But I'm not a coder, so maybe not fixable?

Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).Aug 16 2022, 1:50 PM

Afaict, this is an Operation System limitation (on linux this works fine) and nothing blender can solve.

Helge Maus (pixeltrain) added a comment.Aug 16 2022, 1:58 PM

so it works on Linux and Mac OS, but not on Windows and in Blender ;-)

Philipp Oeser (lichtwerk) added a comment.Aug 16 2022, 2:02 PM

it works on linux in Blender

Helge Maus (pixeltrain) added a comment.Aug 16 2022, 2:04 PM

interesting. Like said I have tested it on Mac OS in Finder, works there as well. So maybe we can fix it in Blender for Mac also?
But it's not so important ... Thanks for looking into it

Philipp Oeser (lichtwerk) added a comment.Aug 16 2022, 2:32 PM

Apparently this can be fixed in Blender (shame on me), see D14508: Fix T80586: Allow Case-Only File Renaming, but there is a report for it already (T80586)

Philipp Oeser (lichtwerk) closed this task as a duplicate of T80586: File Browser unable to rename with Upper/Lower case.Aug 16 2022, 2:32 PM
Philipp Oeser (lichtwerk) added a subscriber: Pratik Borhade (PratikPB2123).

thx @Pratik Borhade (PratikPB2123) finding the duplicate