Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27308

execution aborted by input step when submitter approves it

      if you are NOT logged in and try to approve, you are prompted with the error message which says "you need to be X to submit".
      if you log in, then you are asked to "try POST" and if you click POST an empty request(request has not parameters) is SENT causing the doSubmit to abort the input step (even if you have approved instead).

      @RequirePOST
      public HttpResponse doSubmit(StaplerRequest request) throws IOException, ServletException, InterruptedException {
      if (request.getParameter("proceed")!=null) {
      User user= User.current();
      doProceed(request, user);
      } else {
      doAbort();
      }

      // go back to the Run console page
      return HttpResponses.redirectTo("../../console");
      }

          [JENKINS-27308] execution aborted by input step when submitter approves it

          valentina armenise created issue -
          valentina armenise made changes -
          Assignee Original: Jesse Glick [ jglick ] New: valentina armenise [ varmenise ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161513 ] New: JNJira + In-Review [ 180727 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Andrew Bayer made changes -
          Labels Original: input step workflow New: input pipeline step workflow
          Andrew Bayer made changes -
          Labels Original: input pipeline step workflow New: input pipeline step
          Jesse Glick made changes -
          Component/s New: pipeline-input-step-plugin [ 21708 ]
          Component/s Original: pipeline [ 21692 ]
          Jesse Glick made changes -
          Labels Original: input pipeline step
          Jesse Glick made changes -
          Assignee Original: valentina armenise [ varmenise ]

            Unassigned Unassigned
            varmenise valentina armenise
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: