Repository navigation
Commit 54ea5df
Fix DB2 JDBC URL parsing failure when :// is only in a property value (quick fix) (#12803)
Fix DB2 JDBC URL parsing failure when :// is only in a property value
A DB2/AS400 URL without // after the type (e.g. jdbc:as400:host;keystore=file:///x)
whose only :// sits inside a ';' property value made MODIFIED_URL_LIKE take the
'://' as the host delimiter while cutting urlPart1 at the earlier ';', so
urlPart1.substring(hostIndex + 3) threw StringIndexOutOfBoundsException.
Return the builder unchanged in that case, which is the same DBInfo the
exception fallback produced, minus the exception.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep DB2/AS400 URL properties when :// is only in a property value
The early return skipped splitQuery/populateStandardProperties, so properties
such as user or schema were lost. The old parser applied them before throwing
and parse() returned that builder from its catch block, so populate them
before returning.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge branch 'master' into dougqh/jdbc-url-parser-db2
Merge branch 'master' into dougqh/jdbc-url-parser-db2
Merge branch 'master' into dougqh/jdbc-url-parser-db2
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>1 parent 329dd7c commit 54ea5df
2 files changed
Lines changed: 46 additions & 0 deletions
File tree
- dd-java-agent/agent-bootstrap/src
- main/java/datadog/trace/bootstrap/instrumentation/jdbc
- test/java/datadog/trace/bootstrap/instrumentation/jdbc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
35 | 75 | | |
0 commit comments