Closed (fixed)
Project:
Jsonapi Role Access
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2025 at 07:51 UTC
Updated:
4 Dec 2025 at 09:09 UTC
Jump to comment: Most recent
Comments
Comment #2
anybodyComment #5
anybodyThanks, please also fix cspell and eslint if easy. Tests currently fail.
Comment #6
lrwebks commentedI have added a basic functionality test now, unfortunately the JSON:API pages always result in a 404 and I haven't quite figured out why yet.
Comment #7
anybodyVERY nice @lrwebks!
Did you see this? https://www.drupal.org/docs/core-modules-and-themes/core-modules/jsonapi...
Comment #8
anybodyMaybe the module or other dependencies are not enabled? Or for any other reason the module doesn't offer that route?
Comment #9
lrwebks commentedOkay, I have improved the test as far as I could, but I couldn't squeeze any success out of it… @grevil, maybe you can find what's wrong?
Comment #10
anybodyWe have a 404 which says the URL is not existing.
@grevil: I'd say either the URL is simply wrong (most probable) or any kind of cache issue, which I can't be imagine to be the case... as this must be very dynamic. So I guess there's a bug in the test.
Please replay manually first and simply call the URL via a hard-coded string in the test to see the result.
Comment #11
anybodyComment #13
grevil commentedNice, the test doesn't fail at line 76 anymore, now it fails at line 86. I will continue there tommorow.
I think the main issues were, that the authorization header was missing and the route builder did not rebuild after we created our content type.
But I'll leave the rest of the changes in as well, so the tests are more in line with the core json_api tests.
Comment #14
grevil commentedComment #15
grevil commentedOk, that should be it. I'll do some code refactoring in a follow-up issue.
Comment #16
grevil commentedAll green! Merging.
Comment #18
grevil commented