Skip to content
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

Custom filters on permission collection #9573

Closed
3 tasks done
bernatvadell opened this issue Nov 7, 2021 · 2 comments · Fixed by #10251
Closed
3 tasks done

Custom filters on permission collection #9573

bernatvadell opened this issue Nov 7, 2021 · 2 comments · Fixed by #10251
Assignees
Labels
Milestone

Comments

@bernatvadell
Copy link
Contributor

Preflight Checklist

Describe the Bug

After updating to the latest version, when I want to modify the access permissions to an element that already had some permissions configured, I get an error when loading the component.

To Reproduce

  1. Install v9.0.0-rc85
  2. Set up a collection
  3. Create a new role
  4. Set permissions for the new collection for a new read role
  5. Update to the latest version of directus v9.0.0 (stable)
  6. Access the maintenance of roles and permissions for the previously created collection, and the attached error should appear.

Errors Shown

RangeError: Maximum call stack size exceeded
at Function.keys ()
at al (<hidden_path>/admin/index.eae14d77.js:339:25569)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25603)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25647)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25647)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25647)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25647)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25647)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25647)
at ln (<hidden_path>/admin/index.eae14d77.js:339:25647)

image

What version of Directus are you using?

9.0.0

What version of Node.js are you using?

14

What database are you using?

postgres

What browser are you using?

edge

What operating system are you using?

windows

How are you deploying Directus?

docker

@bernatvadell bernatvadell changed the title Custom filters Custom filters on permission collection Nov 7, 2021
@licitdev
Copy link
Member

@bernatvadell does this issue still persist?
Please kindly provide your rule by clicking on Rule and selecting Raw value.

image

@rijkvanzanten
Copy link
Member

Fairly sure this is caused by an invalid filter object being used in the permissions. @licitdev's suggestion will allow you to clear it out.

I'll push a fix to fail more gracefully 👍🏻

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants