-
Notifications
You must be signed in to change notification settings - Fork 538
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
"fit-in" segment in the url path generates 404 "code":"NoSuchKey" #281
Comments
@beomseoklee I managed to reproduce the bug on your example by adding a filter in your url : https://d2ud7sua9m1871.cloudfront.net/400x0/fit-in-sih-architecture.png is ok https://d2ud7sua9m1871.cloudfront.net/400x0/filters:fill(ffffff)/fit-in-sih-architecture.png fails |
@smknstd Thanks for your finding, and I was able to reproduce the issue. return decodeURIComponent(path.replace(/\/fit-in\/|\/(\d+x\d+)\/|filters:[^\)]+|^\/+/g, '').replace(/\)/g, '').replace(/^\/+/, '')); Let us know if this can fix your issue. |
@beomseoklee just looking at the regex changes there, wanted to ask a question about it. Original regex from here we can see it has broken the above examples: https://regex101.com/r/I6rOfX/1 However, with the suggested change you mentioned, it fixes the problem but the dimensions are not matched if "fit-in" is added to the URL. See: https://regex101.com/r/ZezPC6/1. This is only an issue if we want to get a grouping of the dimensions, if that isn't needed by this regex, then the fix should work. |
Describe the bug
If file url contains "fit-in" segment, file not found for processing.
To Reproduce
Expected behavior
image will be found and processed correctly
Please complete the following information about the solution:
The text was updated successfully, but these errors were encountered: