-
Bug
-
Resolution: Unresolved
-
Minor
-
None
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");
}