#2869426: EntityResource should add _entity_access requirement to REST routes finally landed today, and caused 14 failures on 8.x-2.x and 5 failures on 8.x-1.x. Let's fix those.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 3021277-14.patch | 10.07 KB | gabesullice |
| #14 | interdiff.txt | 3.5 KB | gabesullice |
| #11 | 3021277-11.patch | 9.83 KB | gabesullice |
| #11 | interdiff.txt | 1.4 KB | gabesullice |
| #9 | 3021277-9.patch | 8.43 KB | gabesullice |
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🥳