Problem/Motivation
When image name contains url special characters like in test (1).png, " " is encoded to %20%, but ( and ) not.
The public id is generated incorrectly which leads to error This value should be of the correct primitive type.
The error is produced because width and height could not be loaded.
Steps to reproduce:
- Create an image field with Cloudinary backend
- Upload file with a name
test (1).png - Save the entity
Expected result:
The entity is saved
Actual result:
Error is shown This value should be of the correct primitive type.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | incorrect_url_encoding-2948342-2.patch | 725 bytes | lexbritvin |
Comments
Comment #2
lexbritvin commentedEncoding is not required.
Comment #4
grask0 commentedCommitted. Thanks for help!
Comment #6
damondt commentedThe code in this was removed at some point. There is a larger encoding issue which is addressed in https://www.drupal.org/project/cloudinary/issues/3171412