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

Ignore invalid capabilities instead of throwing an exception #17660

Merged
merged 4 commits into from Jun 14, 2021
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jun 10, 2021

Description:

When the database contains an access entry with an capability that is no longer present (e.g. TagManager capability, but TagManager gets disabled), the user admin currently does not show any users, but also no error.

The missing error is caused by the incorrect Piwik::translate, which actually triggers a warning. The error itself is caused by the exception thrown when a capability does not exist.

fixes L3-108

Review

  • Functional review done
  • Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@sgiehl sgiehl added the Needs Review PRs that need a code review label Jun 10, 2021
@sgiehl sgiehl added this to the 4.4.0 milestone Jun 10, 2021
@diosmosis
Copy link
Member

The change looks good 👍 but there are some tests failing.

@sgiehl
Copy link
Member Author

sgiehl commented Jun 14, 2021

@diosmosis should be fixed

@diosmosis diosmosis merged commit 776c8d3 into 4.x-dev Jun 14, 2021
@diosmosis diosmosis deleted the l3-108 branch June 14, 2021 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants