Skip to content
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

Images with spaces return 404 #82

Open
ngibbonssdl opened this issue Oct 30, 2020 · 0 comments
Open

Images with spaces return 404 #82

ngibbonssdl opened this issue Oct 30, 2020 · 0 comments

Comments

@ngibbonssdl
Copy link

Hi,

I've noticed in the latest 2.2.6 version that images with spaces return not found. The problem appears to be with the 702fb31e878e4ad6aa27d2e7feba1f86e476cb27 commit.

This commit means that the urlPath is now encoded before being supplied to the ApiClient, causing images paths like "/media/Loan%20protection%20-%20Desktop_tcm19-184437.png" to become "/media/Loan%2520protection%2520-%2520Desktop_tcm19-184437.png" - note the % is now encoded as %25.

This mean null is returned because the path in the database is "/media/Loan%20protection%20-%20Desktop_tcm19-184437.png".

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

No branches or pull requests

1 participant