-
Notifications
You must be signed in to change notification settings - Fork 318
Fix logged exception for dependency URIs representing directories #6792
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smola
commented
Mar 11, 2024
| log.debug("unsupported dependency type: {}", uri); | ||
| return Collections.emptyList(); | ||
| } | ||
| if (metadata.isDirectory) { |
Member
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the method move, this is the block that changes in this file for this PR.
9f7abd9 to
f255e86
Compare
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 49 metrics, 14 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.32.0-SNAPSHOT~f255e863fa, baseline=1.32.0-SNAPSHOT~e9c489fd8c
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.091 s) : 0, 1090642
Total [baseline] (8.566 s) : 0, 8566473
Agent [candidate] (1.091 s) : 0, 1091094
Total [candidate] (8.605 s) : 0, 8604613
section iast
Agent [baseline] (1.214 s) : 0, 1214483
Total [baseline] (9.028 s) : 0, 9028489
Agent [candidate] (1.217 s) : 0, 1217305
Total [candidate] (9.055 s) : 0, 9055130
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.21 s) : 0, 1209592
Total [baseline] (9.034 s) : 0, 9034456
Agent [candidate] (1.215 s) : 0, 1214692
Total [candidate] (9.004 s) : 0, 9003623
section iast_TELEMETRY_OFF
Agent [baseline] (1.2 s) : 0, 1200268
Total [baseline] (9.025 s) : 0, 9025286
Agent [candidate] (1.201 s) : 0, 1200703
Total [candidate] (9.038 s) : 0, 9038035
gantt
title insecure-bank - break down per module: candidate=1.32.0-SNAPSHOT~f255e863fa, baseline=1.32.0-SNAPSHOT~e9c489fd8c
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (703.099 ms) : 0, 703099
BytebuddyAgent [candidate] (702.668 ms) : 0, 702668
GlobalTracer [baseline] (293.375 ms) : 0, 293375
GlobalTracer [candidate] (294.341 ms) : 0, 294341
AppSec [baseline] (50.864 ms) : 0, 50864
AppSec [candidate] (50.984 ms) : 0, 50984
Remote Config [baseline] (744.703 µs) : 0, 745
Remote Config [candidate] (728.471 µs) : 0, 728
Telemetry [baseline] (7.838 ms) : 0, 7838
Telemetry [candidate] (7.788 ms) : 0, 7788
section iast
BytebuddyAgent [baseline] (806.901 ms) : 0, 806901
BytebuddyAgent [candidate] (807.895 ms) : 0, 807895
GlobalTracer [baseline] (289.937 ms) : 0, 289937
GlobalTracer [candidate] (290.551 ms) : 0, 290551
AppSec [baseline] (53.668 ms) : 0, 53668
AppSec [candidate] (54.522 ms) : 0, 54522
Remote Config [baseline] (582.318 µs) : 0, 582
Remote Config [candidate] (578.867 µs) : 0, 579
Telemetry [baseline] (6.719 ms) : 0, 6719
Telemetry [candidate] (7.465 ms) : 0, 7465
IAST [baseline] (22.02 ms) : 0, 22020
IAST [candidate] (21.555 ms) : 0, 21555
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (802.311 ms) : 0, 802311
BytebuddyAgent [candidate] (805.92 ms) : 0, 805920
GlobalTracer [baseline] (288.645 ms) : 0, 288645
GlobalTracer [candidate] (290.315 ms) : 0, 290315
AppSec [baseline] (53.626 ms) : 0, 53626
AppSec [candidate] (53.963 ms) : 0, 53963
Remote Config [baseline] (588.124 µs) : 0, 588
Remote Config [candidate] (581.732 µs) : 0, 582
Telemetry [baseline] (7.515 ms) : 0, 7515
Telemetry [candidate] (6.754 ms) : 0, 6754
IAST [baseline] (22.468 ms) : 0, 22468
IAST [candidate] (22.627 ms) : 0, 22627
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (793.924 ms) : 0, 793924
BytebuddyAgent [candidate] (794.071 ms) : 0, 794071
GlobalTracer [baseline] (289.306 ms) : 0, 289306
GlobalTracer [candidate] (289.538 ms) : 0, 289538
AppSec [baseline] (54.864 ms) : 0, 54864
AppSec [candidate] (51.404 ms) : 0, 51404
Remote Config [baseline] (605.982 µs) : 0, 606
Remote Config [candidate] (591.719 µs) : 0, 592
Telemetry [baseline] (6.545 ms) : 0, 6545
Telemetry [candidate] (7.999 ms) : 0, 7999
IAST [baseline] (20.691 ms) : 0, 20691
IAST [candidate] (22.66 ms) : 0, 22660
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.32.0-SNAPSHOT~f255e863fa, baseline=1.32.0-SNAPSHOT~e9c489fd8c
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.08 s) : 0, 1080385
Total [baseline] (9.168 s) : 0, 9168107
Agent [candidate] (1.081 s) : 0, 1081153
Total [candidate] (9.157 s) : 0, 9157431
section appsec
Agent [baseline] (1.208 s) : 0, 1207604
Total [baseline] (9.321 s) : 0, 9320792
Agent [candidate] (1.222 s) : 0, 1221765
Total [candidate] (9.337 s) : 0, 9336687
section iast
Agent [baseline] (1.218 s) : 0, 1218081
Total [baseline] (9.325 s) : 0, 9325373
Agent [candidate] (1.217 s) : 0, 1217212
Total [candidate] (9.329 s) : 0, 9328813
section profiling
Agent [baseline] (1.275 s) : 0, 1275180
Total [baseline] (9.415 s) : 0, 9415421
Agent [candidate] (1.276 s) : 0, 1275675
Total [candidate] (9.357 s) : 0, 9356605
gantt
title petclinic - break down per module: candidate=1.32.0-SNAPSHOT~f255e863fa, baseline=1.32.0-SNAPSHOT~e9c489fd8c
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (695.745 ms) : 0, 695745
BytebuddyAgent [candidate] (696.181 ms) : 0, 696181
GlobalTracer [baseline] (291.218 ms) : 0, 291218
GlobalTracer [candidate] (291.655 ms) : 0, 291655
AppSec [baseline] (50.79 ms) : 0, 50790
AppSec [candidate] (50.57 ms) : 0, 50570
Remote Config [baseline] (718.101 µs) : 0, 718
Remote Config [candidate] (729.134 µs) : 0, 729
Telemetry [baseline] (7.669 ms) : 0, 7669
Telemetry [candidate] (7.738 ms) : 0, 7738
section appsec
BytebuddyAgent [baseline] (700.671 ms) : 0, 700671
BytebuddyAgent [candidate] (707.975 ms) : 0, 707975
GlobalTracer [baseline] (291.105 ms) : 0, 291105
GlobalTracer [candidate] (296.008 ms) : 0, 296008
AppSec [baseline] (155.901 ms) : 0, 155901
AppSec [candidate] (157.206 ms) : 0, 157206
Remote Config [baseline] (610.868 µs) : 0, 611
Remote Config [candidate] (624.646 µs) : 0, 625
Telemetry [baseline] (6.873 ms) : 0, 6873
Telemetry [candidate] (6.998 ms) : 0, 6998
IAST [baseline] (17.853 ms) : 0, 17853
IAST [candidate] (18.088 ms) : 0, 18088
section iast
BytebuddyAgent [baseline] (809.37 ms) : 0, 809370
BytebuddyAgent [candidate] (808.134 ms) : 0, 808134
GlobalTracer [baseline] (289.99 ms) : 0, 289990
GlobalTracer [candidate] (290.919 ms) : 0, 290919
AppSec [baseline] (54.892 ms) : 0, 54892
AppSec [candidate] (53.105 ms) : 0, 53105
Remote Config [baseline] (585.032 µs) : 0, 585
Remote Config [candidate] (592.063 µs) : 0, 592
Telemetry [baseline] (6.674 ms) : 0, 6674
Telemetry [candidate] (7.385 ms) : 0, 7385
IAST [baseline] (21.623 ms) : 0, 21623
IAST [candidate] (22.479 ms) : 0, 22479
section profiling
BytebuddyAgent [baseline] (688.268 ms) : 0, 688268
BytebuddyAgent [candidate] (688.108 ms) : 0, 688108
GlobalTracer [baseline] (374.528 ms) : 0, 374528
GlobalTracer [candidate] (375.304 ms) : 0, 375304
AppSec [baseline] (52.79 ms) : 0, 52790
AppSec [candidate] (53.063 ms) : 0, 53063
Remote Config [baseline] (765.72 µs) : 0, 766
Remote Config [candidate] (697.614 µs) : 0, 698
Telemetry [baseline] (7.411 ms) : 0, 7411
Telemetry [candidate] (7.465 ms) : 0, 7465
ProfilingAgent [baseline] (95.184 ms) : 0, 95184
ProfilingAgent [candidate] (94.939 ms) : 0, 94939
Profiling [baseline] (95.207 ms) : 0, 95207
Profiling [candidate] (94.963 ms) : 0, 94963
LoadRequest duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~f255e863fa, baseline=1.32.0-SNAPSHOT~e9c489fd8c
dateFormat X
axisFormat %s
section baseline
no_agent (363.033 µs) : 343, 383
. : milestone, 363,
iast (480.362 µs) : 460, 501
. : milestone, 480,
iast_FULL (535.18 µs) : 514, 556
. : milestone, 535,
iast_GLOBAL (486.713 µs) : 467, 507
. : milestone, 487,
iast_HARDCODED_SECRET_DISABLED (465.014 µs) : 444, 486
. : milestone, 465,
iast_INACTIVE (452.917 µs) : 431, 475
. : milestone, 453,
iast_TELEMETRY_OFF (464.324 µs) : 444, 485
. : milestone, 464,
tracing (443.444 µs) : 423, 464
. : milestone, 443,
section candidate
no_agent (363.11 µs) : 343, 383
. : milestone, 363,
iast (471.065 µs) : 450, 492
. : milestone, 471,
iast_FULL (532.694 µs) : 512, 553
. : milestone, 533,
iast_GLOBAL (493.362 µs) : 473, 514
. : milestone, 493,
iast_HARDCODED_SECRET_DISABLED (468.301 µs) : 448, 489
. : milestone, 468,
iast_INACTIVE (446.128 µs) : 426, 466
. : milestone, 446,
iast_TELEMETRY_OFF (458.11 µs) : 438, 478
. : milestone, 458,
tracing (437.393 µs) : 417, 458
. : milestone, 437,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~f255e863fa, baseline=1.32.0-SNAPSHOT~e9c489fd8c
dateFormat X
axisFormat %s
section baseline
no_agent (1.336 ms) : 1317, 1355
. : milestone, 1336,
appsec (1.789 ms) : 1765, 1813
. : milestone, 1789,
iast (1.507 ms) : 1483, 1531
. : milestone, 1507,
profiling (1.52 ms) : 1496, 1544
. : milestone, 1520,
tracing (1.516 ms) : 1493, 1539
. : milestone, 1516,
section candidate
no_agent (1.359 ms) : 1340, 1378
. : milestone, 1359,
appsec (1.751 ms) : 1727, 1775
. : milestone, 1751,
iast (1.52 ms) : 1496, 1543
. : milestone, 1520,
profiling (1.512 ms) : 1488, 1535
. : milestone, 1512,
tracing (1.523 ms) : 1500, 1546
. : milestone, 1523,
|
manuel-alvarez-alvarez
approved these changes
Mar 11, 2024
smola
added a commit
that referenced
this pull request
Mar 12, 2024
smola
added a commit
that referenced
this pull request
Mar 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What Does This Do
Check if a dependency location is a directory (e.g. an unpacked classes directory), including directories within JARs, and handle it gracefully.
Motivation
As of v1.30.0, this would generate an internal exception, which is caught, but result in debug logs like:
Additional Notes
Jira ticket: APPSEC-52172