-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Url decode path before fetching from file system, fixes #278 #279
Url decode path before fetching from file system, fixes #278 #279
Conversation
Co-authored-by: Ronald Barendse <ronald@barend.se>
Codecov Report
@@ Coverage Diff @@
## main #279 +/- ##
===================================
- Coverage 85% 85% -1%
===================================
Files 75 75
Lines 2029 2041 +12
Branches 296 298 +2
===================================
+ Hits 1737 1741 +4
- Misses 209 215 +6
- Partials 83 85 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@jrunestone I've jut pushed a change to your PR that changes the name of the test image to use diacritics. I'll need to make some changes to the tests to ensure the generated token is now correct so please don't make any changes while I work on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks! 👍
YW, can we get a new release soon? :) |
There's a new release on NuGet now 😄 |
Prerequisites
Description
The base class
FileProviderImageProvider
checks if the unmodified request path exists in the file provider, however this returns false if the path is url encoded (as in the case of special characters in the path, eg á or ö). Simply url decoding the path before checking seems to solve this issue.Seems reasonable enough? Maybe a test case would be in order.