-
Notifications
You must be signed in to change notification settings - Fork 41.2k
HTTP Method overriden on Spring-boot 2.7.8 but the 3 first letter of the first cookie #33921
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
Comments
As discussed in the blog post comments, this looks similar to #33735 - is there a Java agent involved? |
Yes, Datadog agent 0.115.0 |
Can you reproduce the problem without the datadog agent? |
I just updated the datadog agent to the latest version (1.5.0) and everything works. |
I had a semi-related sounding issue when updating to from 2.7.7 to 2.7.8 that was also caused by a Java agent. I thought I would mention it here in case anyone else hits the same problem. In our case the |
But whats is the reason that this issue just happen when Spring Boot is upgraded from 2.7.7 to 2.7.8? |
@wllianwd as seen in this comment, this is probably not linked to Spring Boot itself, but rather the Tomcat version upgrade. It could be that the Java agent relies on Tomcat internals (like the ordering of parameters for an internal method) and is broken by an internal change in Tomcat. |
sorry for the late comment, just wanted to confirm that this is correct the OpenTelemetry Java agent has a safety feature that prevents applying instrumentation when a mismatch between the instrumentation code and the instrumented application code is detected unfortunately, in this case there was a behavioral change in one of the internal Tomcat APIs that the Java agent relies on, but no signature change, and so this mechanism wasn't triggered the OTel Java agent's automated "latest dependency" tests did pick this issue up right away the day the new Tomcat / Spring Boot versions were released, and the issue was immediately fixed in the OpenTelemetry Java agent unfortunately though, many users still ran into this issue when they deployed a newer version of Spring Boot / Tomcat along with an older version of the OpenTelemetry Java agent |
I just upgraded one application from spring-boot 2.7.7 to 2.7.8 and then every HTTP request including a cookie started to fail.
After some investigation, we found that the HTTP method is being substituted by the 3 first letters of the first cookie name (I know it sounds crazy).
Here is my request:
And here is the stack trace of the exception:
Has you can see the exception is complaining about method "
hDz
", which is the first 3 letters of the cookie, I made some tests with different cookie names and I always got an error about the method being the first 3 letters of the cookie name.If I downgrade to spring-boot 2.7.7 the error disappears and everything starts working again.
The text was updated successfully, but these errors were encountered: