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

LogbookFilter (servlet) is not working due to lack of jakarta.* support #1401

Closed
alexanderseik opened this issue Feb 2, 2023 · 1 comment
Labels

Comments

@alexanderseik
Copy link

HI,

I want to use Logbook for incoming http request logging in my Spring Boot (3.x.x) application.
Incoming request are not logged, client logging is working though.

Description

There was an upgrade of the servlet api (javax.* to jakarta.*) in Spring Boot.
I think the issue is that Spring Boot registers jakarta.HttpFilter and not javax.HttpFilter anymore.

Expected Behavior

Request/Response servlet logging works

Actual Behavior

No logging happens for incoming requests/responses

Possible Fix

Upgrade dependencies

Steps to Reproduce

  • spring-boot-starter-parent:3.0.2
  • logbook-spring-boot-starter:2.14.0
  • Enable TRACE logging
  • Write a simple controller
  • Call the endpoint
  • Review the logs

Context

Prevents using Logbook in newer Spring versions

Your Environment

spring-boot-starter-parent:3.0.2
logbook-spring-boot-starter:2.14.0

BR
Alexander

@whiskeysierra
Copy link
Collaborator

Duplicate of #1344

@whiskeysierra whiskeysierra marked this as a duplicate of #1344 Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants