Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 403 for some rows in a table #17426

Closed
sjugraj opened this issue Feb 7, 2023 · 1 comment
Closed

Getting 403 for some rows in a table #17426

sjugraj opened this issue Feb 7, 2023 · 1 comment

Comments

@sjugraj
Copy link

sjugraj commented Feb 7, 2023

Describe the Bug

We have table-created articles that have a list of items.

We are using Docker version 9.7.0 of the Directus, which is running fine on the table.

We were facing a bug upgrading to the latest version of the docker.

We first saw the issue in the 9.15.0 version, and we postpone the upgrade, we tried the 9.21.1, 9.22.0, and 9.22.4 versions, also all had the same issue.

The bug is as follows.

We can open the edit interface for some rows without the problem while some rows are throwing the below error
image

We have checked the logs, and the error is provided below. there is no additional information on what can be the problem, just the error below.

and the error is not uniform across all tables and only 4 out of 10 items we checked randomly.

To Reproduce

To reproduce this error we can create a table with 9.7.0 and then upgrade to any of the mentioned versions.

Errors Shown

[12:07:03] GET /items/articles/164c44c7-57ad-d5fe-fade-26b6d6204b6c 403 15ms
[12:07:03.857] DEBUG: You don't have permission to access this.
err: {
"type": "ForbiddenException",
"message": "You don't have permission to access this.",
"stack":
Error: You don't have permission to access this.
at validateKeys (/directus/node_modules/directus/dist/utils/validate-keys.js:21:19)
at ItemsService.readOne (/directus/node_modules/directus/dist/services/items.js:302:42)
at /directus/node_modules/directus/dist/controllers/items.js:88:34
at /directus/node_modules/directus/dist/utils/async-handler.js:3:66
at Layer.handle [as handle_request] (/directus/node_modules/express/lib/router/layer.js:95:5)
at next (/directus/node_modules/express/lib/router/route.js:144:13)
at /directus/node_modules/directus/dist/middleware/collection-exists.js:28:12
at /directus/node_modules/directus/dist/utils/async-handler.js:3:66
at Layer.handle [as handle_request] (/directus/node_modules/express/lib/router/layer.js:95:5)
at next (/directus/node_modules/express/lib/router/route.js:144:13)
"status": 403,
"code": "FORBIDDEN",
"extensions": {}
}
[12:07:04] GET /server/info 200 18ms

What version of Directus are you using?

9.7.0

What version of Node.js are you using?

Docker version 9.7.0

What database are you using?

postgres 14

What browser are you using?

Chrome

How are you deploying Directus?

Docker

@github-actions
Copy link

github-actions bot commented Feb 7, 2023

Linear: ENG-658

@directus directus locked and limited conversation to collaborators Feb 7, 2023
@rijkvanzanten rijkvanzanten converted this issue into discussion #17431 Feb 7, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant