Closed (fixed)
Project:
JSON:API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Dec 2018 at 17:28 UTC
Updated:
1 Jan 2019 at 21:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersHunch: it's the change in
AccessAwareRouter.Comment #3
gabesulliceOkay, this first fix is sort of indirect. We were throwing an AccessDenied where we shouldn't have been because of a misreading of the spec. We had this:
But the spec actually says:
The operative phrase that was misread was "in response to an unsupported request". We do support client-generated UUIDs. Later in the spec it says:
What this means is that because we do support client-generated UUIDs and since the UUID was malformed,
422 Unprocessable Entityis the semantically correct response.This avoids inappropriately throwing an
AccessDeniedExceptionwhich led to one of the test failures.More to come.
Comment #4
wim leersI did not expect that!
Comment #6
gabesulliceNext, it looks like access denied
$reasonis now being appropriately bubbled up. We just need to update test expectations for those.Comment #8
wim leersYay!
Comment #9
gabesulliceMore expectations updates. These will need Drupal::VERSION conditions added, but for now I just want to get 8.7 passing.
Comment #10
wim leersMoar yay 😁
Comment #11
gabesulliceThis should get 8.7 green.
Comment #14
gabesulliceIt did! So, here are the version conditions. This interdiff will need to reverted in #3015325: [ignore] support issue for the core patch.
Comment #15
gabesulliceGreen on 8.5, 8.6 & 8.7. Committing.
I'll open a backport for the 1.x branch next.
Comment #17
gabesulliceComment #18
wim leers🥳