Issue Type: Bug Bug
Assignee: Jesse Glick
Components: workflow-plugin
Created: 10/Mar/15 10:10 AM
Description:

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");
}

Project: Jenkins
Labels: workflow input step
Priority: Minor Minor
Reporter: valentina armenise
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to