-
-
Notifications
You must be signed in to change notification settings - Fork 185
Media firewall 3: Introduce media subhashes #7195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop-minor
Are you sure you want to change the base?
Conversation
8ca8ef4 to
0791516
Compare
Ensures that media URLs of different file versions or the original file cannot be guessed
0a8c96e to
1f5ed8b
Compare
0791516 to
5221bfc
Compare
|
@lukasbestle Can I help getting this ready for 5.1? |
|
I think we should move it to 5.2 to be honest. I need to take another look at it. |
|
It’s a bit offtopic here, but when you change the generated media url paths in an upcoming release, would you also consider to allow UUID based media root paths instead of the current slug based paths? If it’s considered, this looks to be the right moment to avoid two media url path migrations in the future. Can create an Issue for this. Did share this idea on Discord and briefly talked about this with @distantnative at the Berlin Kirby meetup |
|
@ovenum Not off-topic at all. In fact I agree it's a great idea and I have already added it to the internal project todo list for further research. |
Description
Summary of changes
/media/site/abcdefghij-1234567890), there is now another directory layer (e.g./media/site/abcdefghij-1234567890/bcdefghija) to separate all individual files (the original and each thumb)Reasoning
/media/site/abcdefghij-1234567890/file-120x.jpgyou could change the filename tofile.jpgto access the original, which may not be intended by devs).Additional context
With the transitional and migration code, there shouldn't be a breaking impact to sites. But since there is already a lot going on in v5, I suggest we include this PR in 5.1 or 5.x. This ensures that users upgrading to v5 with a lot of media files and thumbs don't immediately run into performance problems when all those files are migrated.
Changelog
Enhancements
Deprecated
Breaking changes
None
Docs
None
Ready?
For review team