[PR #10893] ProxyFactory: do not generate long file names #12682

Closed
opened 2026-01-22 16:14:50 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/10893

State: closed
Merged: No


This is a follow up to https://github.com/doctrine/common/pull/1005, because the logic was moved from doctrine/common to doctrine/orm in 2.17.


The maximum file name length when using eCryptfs is 143 bytes. This causes issues with Doctrine proxies where with current implementation this limit can be exceeded.

This PR changes how proxy file name is generated to avoid hitting this limit.

eCryptfs can only store filenames of up to 143 characters when filename encryption is enabled. The remaining 112 characters are used for storing metadata such as the encrypted filename prefix, the signature of the filename encryption key, and an identifier for the cipher used, as well as random bytes to make /foo/file and /bar/file encrypt to different ciphertext and padding bytes to achieve proper cipher block size alignment.
https://bugs.launchpad.net/ecryptfs/+bug/344878

**Original Pull Request:** https://github.com/doctrine/orm/pull/10893 **State:** closed **Merged:** No --- This is a follow up to https://github.com/doctrine/common/pull/1005, because the logic was moved from doctrine/common to doctrine/orm in 2.17. --- The maximum file name length when using [eCryptfs](https://www.ecryptfs.org/) is 143 bytes. This causes issues with Doctrine proxies where with current implementation this limit can be exceeded. This PR changes how proxy file name is generated to avoid hitting this limit. > eCryptfs can only store filenames of up to 143 characters when filename encryption is enabled. The remaining 112 characters are used for storing metadata such as the encrypted filename prefix, the signature of the filename encryption key, and an identifier for the cipher used, as well as random bytes to make /foo/file and /bar/file encrypt to different ciphertext and padding bytes to achieve proper cipher block size alignment. > https://bugs.launchpad.net/ecryptfs/+bug/344878
admin added the pull-request label 2026-01-22 16:14:50 +01:00
admin closed this issue 2026-01-22 16:14:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12682