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

Defining an ignored error that is not a valid regular expression breaks Sentry integration #4212

Closed
dalbani opened this issue Feb 26, 2025 · 3 comments · Fixed by #4213
Closed
Labels
Platform: Java Type: Bug Something isn't working

Comments

@dalbani
Copy link

dalbani commented Feb 26, 2025

Integration

sentry

Java Version

21

Version

8.2.0

Steps to Reproduce

  1. Configure an ignored error that is not a valid regular expression, but is an "actual" error message that you want Sentry to match literally, e.g.:
     SENTRY_IGNORED_ERRORS="I love my mustache {"
    
  2. Start your application
  3. See that is fails due to java.util.regex.PatternSyntaxException

Expected Result

The application should start up and the Sentry should treat the ignore error string as a literal value, not a regular expression.

Actual Result

The application fails to start up.

@adinauer
Copy link
Member

Thanks for opening the issue @dalbani . Will take a look.

@adinauer
Copy link
Member

Yeah that's a bug in the SDK. Will open a PR to fix soon.

@dalbani
Copy link
Author

dalbani commented Feb 26, 2025

Thanks a lot for your reactivity!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Java Type: Bug Something isn't working
Projects
Archived in project
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants