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

          Andrew Bayer added a comment -

          I believe this is fixed in more recent versions of pipeline-input-step - can you verify?

          Andrew Bayer added a comment - I believe this is fixed in more recent versions of pipeline-input-step - can you verify?

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

              Created:
              Updated: