You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a RouteFilter to reroute requests, the access log handler seems to be added multiple times, resulting in multiple lines for the same request in the access log.
Sidenote: there does not seem to be an option to refer to the "original request" variables vs the rewritten ones (Apache uses ">" and "<" for this), the logged path for example will be the rewritten/rerouted one
Expected behavior
The access log should contain only one line per request
Actual behavior
The access log contains multiple lines per request
run it with access logs enabled: java -Dquarkus.http.access-log.enabled=true -Dquarkus.http.access-log.log-to-file=true -Dquarkus.http.access-log.log-directory=/opt/testapp/log -jar quarkus-run.jar
I observe the same behavior and for me this feels like a bug. Rerouting should not cause two entries in the access log. Otherwise it looks like two requests did hit the server, while in fact it was just one (that was internally reroutet).
Describe the bug
When using a RouteFilter to reroute requests, the access log handler seems to be added multiple times, resulting in multiple lines for the same request in the access log.
This:
https://github.com/quarkusio/quarkus/blob/3.0.0.Alpha2/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/filters/accesslog/AccessLogHandler.java#L145
Should only be triggered once per RoutingContext
Sidenote: there does not seem to be an option to refer to the "original request" variables vs the rewritten ones (Apache uses ">" and "<" for this), the logged path for example will be the rewritten/rerouted one
Expected behavior
The access log should contain only one line per request
Actual behavior
The access log contains multiple lines per request
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: