mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Qldoc and formatting changes
This commit is contained in:
@@ -1,34 +1,36 @@
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
import play.filters.csrf.AddCSRFToken;
|
||||
import play.libs.F;
|
||||
import play.mvc.BodyParser;
|
||||
import play.mvc.Controller;
|
||||
import play.mvc.Http.*;
|
||||
import play.mvc.Result;
|
||||
import play.filters.csrf.AddCSRFToken;
|
||||
import play.libs.F;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
|
||||
|
||||
public class PlayResource extends Controller {
|
||||
|
||||
public Result index(String username, String password) {
|
||||
String append_token = "password" + password;
|
||||
return ok("Working");
|
||||
}
|
||||
@AddCSRFToken
|
||||
public Result index() {
|
||||
response().setHeader("X-Play-QL", "1");
|
||||
return ok("It works!");
|
||||
}
|
||||
|
||||
public Result session_redirect_me() {
|
||||
String url = request().getQueryString("url");
|
||||
redirect(url);
|
||||
}
|
||||
@BodyParser.Of()
|
||||
public Result session_redirect_me(String uri) {
|
||||
String url = request().getQueryString("url");
|
||||
return redirect(url);
|
||||
}
|
||||
|
||||
public F.Promise<Result> async_promise(String token) {
|
||||
ok(token);
|
||||
}
|
||||
public F.Promise<Result> async_promise(String token) {
|
||||
return F.Promise.pure(ok(token));
|
||||
}
|
||||
|
||||
public CompletionStage<Result> async_completionstage(String complete) {
|
||||
String return_code = "complete" + complete;
|
||||
ok("Async completion Stage");
|
||||
}
|
||||
public CompletionStage<Result> async_completionstage(String uri) {
|
||||
return CompletableFuture.completedFuture(ok("Async completion Stage"));
|
||||
}
|
||||
|
||||
public String not_playactionmethod(String no_action) {
|
||||
String return_code = no_action;
|
||||
return return_code;
|
||||
}
|
||||
public String not_playactionmethod(String no_action) {
|
||||
String return_code = no_action;
|
||||
return return_code;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,17 +23,12 @@
|
||||
| IntentSources.java:33:20:33:33 | getIntent(...) | IntentSources.java:33:20:33:33 | getIntent(...) |
|
||||
| IntentSources.java:33:20:33:33 | getIntent(...) | IntentSources.java:33:20:33:55 | getStringExtra(...) |
|
||||
| IntentSources.java:33:20:33:33 | getIntent(...) | IntentSources.java:34:29:34:35 | trouble |
|
||||
| PlayResource.java:11:25:11:39 | username | PlayResource.java:11:25:11:39 | username |
|
||||
| PlayResource.java:11:42:11:56 | password | PlayResource.java:11:42:11:56 | password |
|
||||
| PlayResource.java:11:42:11:56 | password | PlayResource.java:12:31:12:51 | ... + ... |
|
||||
| PlayResource.java:11:42:11:56 | password | PlayResource.java:12:44:12:51 | password |
|
||||
| PlayResource.java:17:22:17:52 | getQueryString(...) | PlayResource.java:17:22:17:52 | getQueryString(...) |
|
||||
| PlayResource.java:21:44:21:55 | token | ../../../stubs/playframework-2.6.x/play/mvc/Results.java:261:27:261:40 | content |
|
||||
| PlayResource.java:21:44:21:55 | token | PlayResource.java:21:44:21:55 | token |
|
||||
| PlayResource.java:21:44:21:55 | token | PlayResource.java:22:12:22:16 | token |
|
||||
| PlayResource.java:25:58:25:72 | complete | PlayResource.java:25:58:25:72 | complete |
|
||||
| PlayResource.java:25:58:25:72 | complete | PlayResource.java:26:30:26:50 | ... + ... |
|
||||
| PlayResource.java:25:58:25:72 | complete | PlayResource.java:26:43:26:50 | complete |
|
||||
| PlayResource.java:19:37:19:46 | uri | PlayResource.java:19:37:19:46 | uri |
|
||||
| PlayResource.java:20:18:20:48 | getQueryString(...) | PlayResource.java:20:18:20:48 | getQueryString(...) |
|
||||
| PlayResource.java:24:42:24:53 | token | ../../../stubs/playframework-2.6.x/play/mvc/Results.java:261:27:261:40 | content |
|
||||
| PlayResource.java:24:42:24:53 | token | PlayResource.java:24:42:24:53 | token |
|
||||
| PlayResource.java:24:42:24:53 | token | PlayResource.java:25:30:25:34 | token |
|
||||
| PlayResource.java:28:56:28:65 | uri | PlayResource.java:28:56:28:65 | uri |
|
||||
| RmiFlowImpl.java:4:30:4:40 | path | RmiFlowImpl.java:4:30:4:40 | path |
|
||||
| RmiFlowImpl.java:4:30:4:40 | path | RmiFlowImpl.java:5:20:5:31 | ... + ... |
|
||||
| RmiFlowImpl.java:4:30:4:40 | path | RmiFlowImpl.java:5:28:5:31 | path |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.java.frameworks.play.Play
|
||||
|
||||
from PlayAddCSRFTokenAnnotation token
|
||||
from PlayAddCsrfTokenAnnotation token
|
||||
select token
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
| resources/Resource.java:12:3:12:15 | AddCSRFToken |
|
||||
@@ -0,0 +1,4 @@
|
||||
import semmle.code.java.frameworks.play.Play
|
||||
|
||||
from PlayAddCsrfTokenAnnotation token
|
||||
select token
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.java.frameworks.play.Play
|
||||
|
||||
from PlayMVCHTTPRequestHeader c
|
||||
from PlayMvcHttpRequestHeader c
|
||||
select c.getQualifiedName(), c.getAMethod().getQualifiedName()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.java.frameworks.play.Play
|
||||
|
||||
from PlayMVCResultClass m
|
||||
from PlayMvcResultClass m
|
||||
select m.getQualifiedName()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.java.frameworks.play.Play
|
||||
|
||||
from PlayMVCResultsClass m
|
||||
from PlayMvcResultsClass m
|
||||
select m.getQualifiedName(), m.getAMethod().getQualifiedName()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.java.frameworks.play.Play
|
||||
|
||||
from PlayMVCResultsMethods m
|
||||
from PlayMvcResultsMethods m
|
||||
select m.getAnOkAccess()
|
||||
|
||||
Reference in New Issue
Block a user