- π¨π¦Canada Nathan Tsai
Note: this issue can be worked around using the filename_transliteration module.
When two images are uploaded whose name differs only by upper/lower case, the second crop entity is not saved.
image
media type, under 'Crop configuration', choose the image
field.sea.png
.Sea.png
The outcome on MySQL is there is only one row in the crop
& crop_field_data
tables. No second crop entity is saved.
Using PostgreSQL, this error occurs upon save:
Error: Call to a member function isNew() on null in focal_point_entity_update() (line 79 of modules/contrib/focal_point/focal_point.module).
The Crop entity has a uri
base field defined:
$fields['uri'] = BaseFieldDefinition::create('uri')
->setLabel(t('URI'))
->setDescription(t('The URI of the image crop belongs to.'))
->setRevisionable(TRUE)
->setTranslatable(TRUE)
->setSetting('max_length', 255);
Adding setSetting('case_sensitive', TRUE)
makes this match the corresponding uri
property on the file
entity. The error doesn't occur and both crops are saved.
None.
None.
The uri
column definition changes from:
varchar(255) DEFAULT NULL
to
varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
Needs work
2.1
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Note: this issue can be worked around using the filename_transliteration module.