When I'm creating a new block in views , and trying to get it's id and links i get this error

/api/block/block?_format=api_json

"errors": [
      {
        "title": "Forbidden",
        "status": 403,
        "detail": "Access checks failed for entity block:views_block__frontpage_helloblock.",
        "links": {
          "info": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4"
        },
        "code": 0
      },

I tried several ways , creating different blocks ( filed , content , search ) with all permission ( anonymous ) , but no chance !?
Is this limited to getting default system blocks !?

Comments

postporncig created an issue. See original summary.

e0ipso’s picture

Please retry with the latest code in -dev.

e0ipso’s picture

Status: Active » Postponed (maintainer needs more info)
wim leers’s picture

with all permission

Then it should work!

( anonymous )

Did you really grant the anonymous user all permissions? This is very dangerous!

See \Drupal\block\Entity\Block:

 *   handlers = {
 *     "access" = "Drupal\block\BlockAccessControlHandler",
…
 *   admin_permission = "administer blocks",

Which means BlockAccessControlHandler is related, which means #2820315: Blocks' 'view' operation is interpreted as "render on page" instead of "read this config entity" is probably affecting you.

wim leers’s picture

gabesullice’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)