commit | 71f34a8ef79164228c3b1e74007996805c7f6b80 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri Nov 29 19:27:28 2013 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Tue Feb 11 21:22:10 2014 +0000 |
tree | 6bc39ed4637e6998a1af74011f6254f389a9a0b1 | |
parent | 645b3ae6235f0071d511a71e3ddf7dc8771f1459 [diff] |
Process wizard redirection when status is not set Whenever there the controller does not specify any http status, we assume that everything is OK and if there is another wizard redirection then gets processed. Change-Id: Ib6478c08c30216238fbbeeb2e8d1bf1575c9027f
diff --git a/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/wizard/VelocityControllerServlet.java b/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/wizard/VelocityControllerServlet.java index c68d82a..35744f9 100644 --- a/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/wizard/VelocityControllerServlet.java +++ b/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/wizard/VelocityControllerServlet.java
@@ -89,7 +89,8 @@ WrappedResponse wrappedResp = new WrappedResponse(resp); controller.doAction(user, hubLogin, req, wrappedResp, errorsProvider.get()); - if (wrappedResp.getStatus() == HttpStatus.SC_OK) { + if (wrappedResp.getStatus() == 0 || + wrappedResp.getStatus() == HttpStatus.SC_OK) { redirectToNextStep(req, resp); } }