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

Back End endpoint sends duplicate values #2480

Closed
maxpatiiuk opened this issue Nov 18, 2022 · 1 comment · Fixed by #3250
Closed

Back End endpoint sends duplicate values #2480

maxpatiiuk opened this issue Nov 18, 2022 · 1 comment · Fixed by #3250
Assignees
Labels
1 - Bug Incorrect behavior of the product good first issue

Comments

@maxpatiiuk
Copy link
Member

Back-end endpoints for the permission panel sometimes return a 400 response that looks like this:

{
  "missing_for_6": [],
  "missing_for_7": [
    98305,
    393217,
    425986,
    491522,
    524290
  ],
  "all_accessible_divisions": [
    2,
    2,
    32768,
    32768,
    425984,
    491520,
    524288
  ]
}

Notice the duplicate values in the all_accessible_divisions array. It does not cause a problem on the front-end right now, but may in the future, thus would be good to fix it

@maxpatiiuk maxpatiiuk added 1 - Bug Incorrect behavior of the product good first issue back-end labels Nov 18, 2022
@maxpatiiuk
Copy link
Member Author

Forgot to attach the URL.
This happened in this database: https://herbumass-testability.test.specifysystems.org/specify/security/user/2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product good first issue
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants