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:

  1. Create an image field with Cloudinary backend
  2. Upload file with a name test (1).png
  3. Save the entity

Expected result:
The entity is saved

Actual result:
Error is shown This value should be of the correct primitive type.

CommentFileSizeAuthor
#2 incorrect_url_encoding-2948342-2.patch725 byteslexbritvin

Comments

LexBritvin created an issue. See original summary.

lexbritvin’s picture

Status: Active » Needs review
StatusFileSize
new725 bytes

Encoding is not required.

grask0’s picture

Status: Needs review » Fixed

Committed. Thanks for help!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

damondt’s picture

The 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