-
Notifications
You must be signed in to change notification settings - Fork 379
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
WebPathResolver - sanitize URL to directory name #480
Conversation
@teohhanhui it is not clear what this realy fix. could you give more information on why do we need this? |
Before this change Filesystem::dumpFile throws IOException when trying to cache external images, as it's not possible to create a directory with "/" in its name. This is a rudimentary fix. |
ok, I see, could you add a test then? |
sorry for the delay... I've just found out that you had added some tests. What about other resolvers, I think this fix has to be applied on a higher level, maybe inside the cache manager |
I disagree. Path handling should be left to each resolver as it currently
|
I can try to pass an url to s3 too, what would be key on s3 in this case? |
That should be left up to the S3 resolver to decide how to normalize the
|
okay okay |
WebPathResolver - sanitize URL to directory name
No description provided.