element-hq / element-hq/synapse

local_content and local_thumbnails require case-sensitive file system

Open
#5,819 0 comments 0 reactions 0 assignees View on GitHub
T-Enhancement z-p4
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#5819](https://github.com/matrix-org/synapse/issues/5819).

---

These two paths contain folders with two-character names which collide on a case-insensitive file system. Were about to make a backup of the Synapse data directory, but couldn't easily for this reason.

- /var/lib/matrix-synapse/media/local_content/{AB,Ac,AD,**aE,Ae,AE**,Af,**aH,Ah,AH**,...}
- /var/lib/matrix-synapse/media/local_thumbnails

I don't have any insight into why or if it makes sense.

Contributor guide

Open the contributing guide

Research direction

Start by tracing where the media/local_content and media/local_thumbnails directories are created and accessed; no source files or tests are identified in the issue. Reproduce the reported collision on a case-insensitive filesystem and establish the expected layout and migration behavior before making changes.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.