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

An invalid filter username filter state may cause a NullPointerException at runtime #17

Open
robotdan opened this issue Dec 16, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@robotdan
Copy link

An invalid filter username filter state may cause a NullPointerException at runtime

Description

It is unclear how this state occurs, but the username filter rule becomes null and then at runtime a NullPointerException may occur when processing the filter rules.

Stack trace

Dec 14, 2020 12:32:41.334 PM ERROR c.i.cleanspeak.api.primeframework.mvc.error.ExceptionExceptionHandler - An unhandled exception was thrown
java.lang.NullPointerException: null
at com.inversoft.cleanspeak.api.service.moderation.DefaultModerationRulesService.runIterator(DefaultModerationRulesService.java:155)
at com.inversoft.cleanspeak.api.service.moderation.DefaultModerationRulesService.computeAction(DefaultModerationRulesService.java:140)
at com.inversoft.cleanspeak.api.service.moderation.DefaultModerationRulesService.executeRules(DefaultModerationRulesService.java:111)
at com.inversoft.cleanspeak.api.service.moderation.DefaultContentProcessingService.filterAndRunRules(DefaultContentProcessingService.java:414)
at com.inversoft.cleanspeak.api.service.moderation.DefaultContentProcessingService.create(DefaultContentProcessingService.java:142)

Recreate steps

TBD, this has yet to be recreated but we have encountered a few customers that observed this exception.

Work around

  1. Open the CleanSpeak admin UI
  2. Navigate to Settings > Applications
  3. Click on the Username tab
    • If the filter is enabled, ensure you have selected a username scheme.
    • If the filter is not enabled, click enabled and un-select a scheme if one is selected, and then disable the filter again.
  4. Save the application changes. If you know which application this exception occurred for - you only need to edit that one, if you are unsure, please follow these steps for each application. This sequence of steps should resolve the error.

This sequence of steps seems to temporarily resolve the issue. It is still possible for the system to get into the error state again which will produce the stack trace.

Additional context

Add any other context about the problem here.

@robotdan robotdan self-assigned this Dec 16, 2020
@robotdan robotdan added the bug Something isn't working label Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant