Skip to content

can't upload image to featured item (unicode in file name) #11382

@pdurbin

Description

@pdurbin

@g-saracca and I suspect there might be a bug in the "upload an image to a featured item" API endpoint added in #11124 and consumed by the JS code in IQSS/dataverse-client-javascript#235 and IQSS/dataverse-frontend#575.

We are unable to upload this PNG when it has the following filename:

Screenshot 2025-03-28 at 2.51.46 PM.png

This filename has a strange character between the "46" and the "PM". Namely, a narrow no-break space which is U+202F in Unicode and 0xE2 0x80 0xAF in UTF-8. Others have also noticed that macOS puts this strange character in their Screenshot filenames.

Image

However, if we rename it to just "thinking.png", we are able to upload it.

Here's the featured item: https://beta.dataverse.org/spa/featured-item/root/46

As of this writing beta is running c4f3d76.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FY25 Sprint 21FY25 Sprint 21 (2025-04-09 - 2025-04-23)GREI Re-archIssues related to the GREI Dataverse rearchitectureOriginal size: 10SPAThese changes are required for the Dataverse SPASPA.Q2Not related to any specific Q2 featureSize: 10A percentage of a sprint. 7 hours.Type: Buga defect

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions