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

Fix ClassNotFoundException when LogbookAutoConfiguration is processed #882

Merged
merged 5 commits into from
Nov 9, 2020
Merged

Fix ClassNotFoundException when LogbookAutoConfiguration is processed #882

merged 5 commits into from
Nov 9, 2020

Conversation

jstanik
Copy link
Contributor

@jstanik jstanik commented Nov 4, 2020

To avoid ClassNotFoundException: javax.servlet.Filter a code referencing the Filter is moved to a static inner class which is processed only conditionally when javax.servlet.Filter is on the classpath.

Description

Factory method for creating FilterRegistrationBean moved from LogbookAutoConfiguration to conditionally processed class ServletFilterConfiguration.

Motivation and Context

Fixes issue #881

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@whiskeysierra
Copy link
Collaborator

whiskeysierra commented Nov 5, 2020 via email

@jstanik
Copy link
Contributor Author

jstanik commented Nov 5, 2020

Ok, I removed those redundant conditions.

@whiskeysierra
Copy link
Collaborator

👍

@whiskeysierra whiskeysierra merged commit 9c1082e into zalando:main Nov 9, 2020
@whiskeysierra
Copy link
Collaborator

I'm currently releasing this fix as 2.4.1. Thank you for your contribution! 🎉

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

Successfully merging this pull request may close these issues.

3 participants