jsonapi can fetch wrong bundle type, without noticing

Created on 10 April 2024, 9 months ago
Updated 12 April 2024, 9 months ago

Problem/Motivation

I am not sure, of that is by design, but as far as I can tell, the JSONAPI is usually very picky.

i requested something like this:

http://localhost:3000/proxy/jsonapi/profile/experience/3a713f0a-30c3-4b66-96a4-894df0f97801

and got back:

{
    "jsonapi": {
        "version": "1.0",
        "meta": {}
    },
    "data": {
        "type": "profile--customer",
        "id": "3a713f0a-30c3-4b66-96a4-894df0f97801",
        "attributes": {
            "foobar1": "no",
            "foobar2": "CA",
   ...

which means that the query/fetch command have found a profile (Profile module), with a UUID, but ignored the bundle (the /profile/experience part). Which is odd to me. If that is by design. okay, if not, it might be a bug somewhere.

I would expect an json:api error message or 404 result, that no profile of bundle type "experience" with that UUID was found.

🐛 Bug report
Status

Closed: duplicate

Version

10.2

Component
JSON API 

Last updated 3 days ago

Created by

🇩🇪Germany ro-no-lo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024