The "Open Recent" file list ignores external filename case changes #105881

Open
opened 2023-03-18 14:58:10 +01:00 by Aaron Eads · 2 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 526.98

Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: rB55485cb379f7
Worked: (newest version of Blender that worked as expected)

Short description of error

When a .blend file is added to the "Open Recent" menu (i.e. upon saving), it seems the filename is stored with the menu entry. If only the casing in the .blend filename is changed (e.g. my_blend.blend -> MY_BLEND.blend), the "Open Recent" menu item still opens as expected. However, when the file is opened and re-saved, the original filename is written to disk. There is no way to fix the menu item, besides pushing it out of the "Open Recent" queue and re-saving the file.

Exact steps for others to reproduce the error

  1. Upon startup, save the scene as "my_blend.blend"
  2. Exit Blender
  3. In the system file explorer, rename the blend file to "MY_BLEND.blend"
  4. Open Blender
  5. From the main menu, click (File > Open Recent > "my_blend.blend")
  6. On Windows, observe that the window title reads "Blender [C://.../my_blend.blend]"
  7. Save the scene

Actual behavior: The scene is saved as "my_blend.blend"
Expect behavior: The scene is saved as "MY_BLEND.blend"

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 526.98 **Blender Version** Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: `rB55485cb379f7` Worked: (newest version of Blender that worked as expected) **Short description of error** When a .blend file is added to the "Open Recent" menu (i.e. upon saving), it seems the filename is stored with the menu entry. If only the casing in the .blend filename is changed (e.g. my_blend.blend -> MY_BLEND.blend), the "Open Recent" menu item still opens as expected. However, when the file is opened and re-saved, the original filename is written to disk. There is no way to fix the menu item, besides pushing it out of the "Open Recent" queue and re-saving the file. **Exact steps for others to reproduce the error** 1. Upon startup, save the scene as "my_blend.blend" 2. Exit Blender 3. In the system file explorer, rename the blend file to "MY_BLEND.blend" 4. Open Blender 5. From the main menu, click (File > Open Recent > "my_blend.blend") 6. On Windows, observe that the window title reads "Blender \[C://.../**my_blend.blend**]" 7. Save the scene Actual behavior: The scene is saved as "my_blend.blend" Expect behavior: The scene is saved as "MY_BLEND.blend"
Aaron Eads added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-03-18 14:58:11 +01:00
Member

I believe this is normal behaviour and has something to do with NTFS (the default file system for Windows).

NTFS is case insensitive, meaning my_blend.blend and MY_BLEND.blend are the exact same name according to NTFS. Hence why when you rename a project from my_blend.blend to MY_BLEND.blend, it still opens from the recent files menu in Blender. Because Blender is looking for my_blend.blend and NTFS thinks MY_BLEND.blend is the same as my_blend.blend and so it still opens it.

Then when you save the project, Blender saves the project with the old lower case name because it didn't know that the case had changed because according to Blenders interaction with the file system, the case hadn't changed.

If you run the same test with a different file system that is case sensitive, E.G. Apple File System on macOS or EXT4 on Linux, when you do step 5 of your instruction, an error pops up saying that the file doesn't exist. Because these file systems treat files with different cases as different files, unlike NTFS.


I'd like input from a developer, do you think you'll be able to detect if the case has changed on a file while using a case insensitive file system? And thus change the save name of files in these situations?

I believe this is normal behaviour and has something to do with NTFS (the default file system for Windows). NTFS is case insensitive, meaning `my_blend.blend` and `MY_BLEND.blend` are the exact same name according to NTFS. Hence why when you rename a project from `my_blend.blend` to `MY_BLEND.blend`, it still opens from the recent files menu in Blender. Because Blender is looking for `my_blend.blend` and NTFS thinks `MY_BLEND.blend` is the same as `my_blend.blend` and so it still opens it. Then when you save the project, Blender saves the project with the old lower case name because it didn't know that the case had changed because according to Blenders interaction with the file system, the case hadn't changed. If you run the same test with a different file system that is case sensitive, E.G. `Apple File System` on macOS or `EXT4` on Linux, when you do step 5 of your instruction, an error pops up saying that the file doesn't exist. Because these file systems treat files with different cases as different files, unlike NTFS. --- I'd like input from a developer, do you think you'll be able to detect if the case has changed on a file while using a case insensitive file system? And thus change the save name of files in these situations?
Member

I have added Windows to the platform tag. The issue isn't limited to Windows, but it's much more common on Windows due to NTFS being the default file system there. While macOS and Linux both use default file systems with case sensitivity.

I have added Windows to the platform tag. The issue isn't limited to Windows, but it's much more common on Windows due to NTFS being the default file system there. While macOS and Linux both use default file systems with case sensitivity.
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2023-03-19 21:44:04 +01:00
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2023-03-19 21:44:11 +01:00
Pratik Borhade added
Status
Needs Info from Developers
and removed
Status
Needs Triage
labels 2023-03-21 03:31:45 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#105881
No description provided.