JSON:API file uploads to aliased file field fail because alias is not resolved

Created on 20 June 2019, almost 5 years ago
Updated 16 June 2023, 12 months ago

When a new alias is added for an image field on Resource Overrides page (/admin/config/services/jsonapi/resource_types/node--project/edit) the route does not appear to have been created properly.
e.g: Create an alias for "field_project_beer_label" to be "beer_label
After that if I try to upload a file via Postman using this new url alias (/jsonapi/node/project/beer_label) I get the following the error message (Page not found).

When I try to upload using the field name (field_project_beer_label) debugging the code I see that the route was not created for the alias "beer_label" but the field was changed.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
JSON APIΒ  β†’

Last updated 2 days ago

Created by

πŸ‡§πŸ‡·Brazil rodolfodribeiro

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024