Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable Spotless #637

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Enable Spotless #637

merged 1 commit into from
Aug 15, 2024

Conversation

basil
Copy link
Member

@basil basil commented Aug 15, 2024

No description provided.

@basil basil added the skip-changelog A PR that is excluded from Release draft - used by Release Drafter label Aug 15, 2024
@basil basil requested a review from a team as a code owner August 15, 2024 14:05
public FormValidation doCheckTestResults(
@AncestorInPath AbstractProject project,
@QueryParameter String value) throws IOException {
public FormValidation doCheckTestResults(@AncestorInPath AbstractProject project, @QueryParameter String value)

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation Warning

Potential CSRF vulnerability: If DescriptorImpl#doCheckTestResults connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
* @deprecated Replaced by echarts in TODO
*/
@Deprecated
public void doGraph( StaplerRequest req, StaplerResponse rsp) throws IOException {
if(ChartUtil.awtProblemCause!=null) {
public void doGraph(StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation Warning test

Potential CSRF vulnerability: If AbstractTestResultAction#doGraph connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
* @deprecated Replaced by echarts in TODO
*/
@Deprecated
public void doGraph( StaplerRequest req, StaplerResponse rsp) throws IOException {
if(ChartUtil.awtProblemCause!=null) {
public void doGraph(StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check Warning test

Potential missing permission check in AbstractTestResultAction#doGraph
}

/**
* Generates a clickable map HTML for {@link #doGraph(StaplerRequest, StaplerResponse)}.
*/
public void doGraphMap( StaplerRequest req, StaplerResponse rsp) throws IOException {
if(req.checkIfModified(run.getTimestamp(),rsp))
public void doGraphMap(StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation Warning test

Potential CSRF vulnerability: If AbstractTestResultAction#doGraphMap connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
}

/**
* Generates a clickable map HTML for {@link #doGraph(StaplerRequest, StaplerResponse)}.
*/
public void doGraphMap( StaplerRequest req, StaplerResponse rsp) throws IOException {
if(req.checkIfModified(run.getTimestamp(),rsp))
public void doGraphMap(StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check Warning test

Potential missing permission check in AbstractTestResultAction#doGraphMap
@@ -168,12 +172,13 @@
* @deprecated Replaced by echarts in TODO
*/
@Deprecated
public void doTrend( final StaplerRequest req, final StaplerResponse rsp ) throws IOException, ServletException {
public void doTrend(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check Warning test

Potential missing permission check in TestResultProjectAction#doTrend
@@ -182,38 +187,40 @@
* @deprecated Replaced by echarts in TODO
*/
@Deprecated
public void doTrendMap( final StaplerRequest req, final StaplerResponse rsp ) throws IOException, ServletException {
public void doTrendMap(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation Warning test

Potential CSRF vulnerability: If TestResultProjectAction#doTrendMap connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
@@ -182,38 +187,40 @@
* @deprecated Replaced by echarts in TODO
*/
@Deprecated
public void doTrendMap( final StaplerRequest req, final StaplerResponse rsp ) throws IOException, ServletException {
public void doTrendMap(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check Warning test

Potential missing permission check in TestResultProjectAction#doTrendMap
}

/**
* Changes the test result report display mode.
*/
public void doFlipTrend( final StaplerRequest req, final StaplerResponse rsp ) throws IOException, ServletException {
public void doFlipTrend(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation Warning test

Potential CSRF vulnerability: If TestResultProjectAction#doFlipTrend connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
}

/**
* Changes the test result report display mode.
*/
public void doFlipTrend( final StaplerRequest req, final StaplerResponse rsp ) throws IOException, ServletException {
public void doFlipTrend(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check Warning test

Potential missing permission check in TestResultProjectAction#doFlipTrend
@timja timja merged commit ef972a1 into jenkinsci:master Aug 15, 2024
16 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
skip-changelog A PR that is excluded from Release draft - used by Release Drafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants