Problem/Motivation

After I enabled JSON:API, the endpoint for "linkcheckerlink" returns a 500

Error

Parameter \"entity\" for route \"jsonapi.linkcheckerlink--linkcheckerlink.individual\" must match \"[^/]++\" (\"\" given) to generate a corresponding URL.

LinkChecker link type entity doesn't implement uuid in it's base table

Steps to reproduce

1. Enable JSON:API
2. Navigate to /jsonapi/linkcheckerlink/linkcheckerlink

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

boulaffasae created an issue. See original summary.

boulaffasae’s picture

StatusFileSize
new2.22 KB
boulaffasae’s picture

StatusFileSize
new3.48 KB
new1.16 KB

I also added view permission, it should be a custom permission instead of true by default :)

eiriksm’s picture

Status: Active » Needs work
Issue tags: +Needs tests

Awesome 👍 Thanks for the patch!

Would be nice to have:

- The changes in a merge request
- some tests for this

quadrexdev made their first commit to this issue’s fork.

quadrexdev’s picture

Status: Needs work » Needs review

Added a merge request with the changes from #3 + added a simple Kernel test to verify it's working.

Please review

quadrexdev’s picture

Status: Needs review » Needs work

Oops, changed status to needs review before tests passed so reverting it back

quadrexdev’s picture

Status: Needs work » Needs review

Ok, now it's passing.

So after applying a patch from #3 all the users had access to view the linkchecker entity (and that was the issue why LinkCheckerLinkAccessTest was failing). I reverted this part cuz the viewing operation is not supposed to be allowed for all the users, right?

Please review

quadrexdev’s picture

Version: 2.0.0-alpha1 » 2.0.x-dev
Status: Needs review » Fixed

Merged in 2.0.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.