Skip to content

Commit 2c575dc

Browse files
committed
Java: Fix ratpack flow.
1 parent 913a8dd commit 2c575dc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

java/ql/lib/ext/ratpack.exec.model.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ extensions:
33
pack: codeql/java-all
44
extensible: summaryModel
55
data:
6+
- ["ratpack.exec", "Operation", True, "of", "(Block)", "", "Argument[0]", "Argument[0].Parameter[this]", "value", "manual"]
67
- ["ratpack.exec", "Promise", True, "apply", "", "", "Argument[this].Element", "Argument[0].Parameter[0].Element", "value", "manual"]
78
- ["ratpack.exec", "Promise", True, "apply", "", "", "Argument[0].ReturnValue.Element", "ReturnValue.Element", "value", "manual"]
89
- ["ratpack.exec", "Promise", True, "blockingMap", "", "", "Argument[this].Element", "Argument[0].Parameter[0]", "value", "manual"]

java/ql/test/library-tests/frameworks/ratpack/resources/Resource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ void test15() {
361361
Promise
362362
.value(tainted)
363363
.nextOp(value -> Operation.of(() -> {
364-
sink(value); // MISSING: $hasTaintFlow
364+
sink(value); //$hasTaintFlow
365365
}))
366366
.nextOpIf(value -> {
367367
sink(value); //$hasTaintFlow
368368
return true;
369369
}, value -> Operation.of(() -> {
370-
sink(value); // MISSING: $hasTaintFlow
370+
sink(value); //$hasTaintFlow
371371
}))
372372
.then(value -> {
373373
sink(value); //$hasTaintFlow
@@ -379,7 +379,7 @@ void test16() {
379379
Promise
380380
.value(tainted)
381381
.flatOp(value -> Operation.of(() -> {
382-
sink(value); // MISSING: $hasTaintFlow
382+
sink(value); //$hasTaintFlow
383383
}));
384384
}
385385

0 commit comments

Comments
 (0)