Skip to content

fix: truncate cache filenames to avoid OSError on eCryptfs#614

Open
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/590-truncate-cache-filenames
Open

fix: truncate cache filenames to avoid OSError on eCryptfs#614
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/590-truncate-cache-filenames

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

Test plan

  • python -m unittest tests.test_file_cache.TestFileUtils.test_url_to_filename_length_on_ecryptfs
  • Existing url_to_filename round-trip tests still pass

Fixes #590

Made with Cursor

Shorten URL and ETag hash segments in url_to_filename() to 16 hex chars
so cached resource paths stay under encrypted filesystem name limits.

Fixes allenai#590

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: truncate cache filenames to avoid OSError on eCryptfs/encfs filesystems

1 participant