Skip to content

Commit 64dd1f5

Browse files
committed
fix(appsec): inject CachedMethods helper class in Tomcat ParsePartsInstrumentation
ByteBuddy only injects classes explicitly listed in helperClassNames(); nested inner classes are not auto-discovered. Without this entry, the first addPart() call triggers NoClassDefFoundError on CachedMethods, which is swallowed by the broad catch in addPart(), silently dropping all filenames and file contents.
1 parent c426af2 commit 64dd1f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • dd-java-agent/instrumentation/tomcat/tomcat-appsec/tomcat-appsec-7.0/src/main/java/datadog/trace/instrumentation/tomcat7

dd-java-agent/instrumentation/tomcat/tomcat-appsec/tomcat-appsec-7.0/src/main/java/datadog/trace/instrumentation/tomcat7/ParsePartsInstrumentation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public String[] helperClassNames() {
5959
"datadog.trace.instrumentation.tomcat7.ParameterCollector",
6060
"datadog.trace.instrumentation.tomcat7.ParameterCollector$ParameterCollectorNoop",
6161
"datadog.trace.instrumentation.tomcat7.ParameterCollector$ParameterCollectorImpl",
62+
"datadog.trace.instrumentation.tomcat7.ParameterCollector$ParameterCollectorImpl$CachedMethods",
6263
};
6364
}
6465

0 commit comments

Comments
 (0)