[SECURITY-420] RequirePOST to finish setup wizard

This commit is contained in:
Daniel Beck committed 2017-04-15 14:37:26 +02:00
1 parent 566cb370d7
commit 416fdddb97
2 files changed
+2 -1

No files matched your search

@@ -443,6 +443,7 @@ public class SetupWizard extends PageDecorator {
/**
* Remove the setupWizard filter, ensure all updates are written to disk, etc
*/
@RequirePOST
public HttpResponse doCompleteInstall() throws IOException, ServletException {
completeSetup();
return HttpResponses.okJSON();
+1 -1
View File
@@ -177,7 +177,7 @@ exports.incompleteInstallStatus = function(handler, correlationId) {
* Call this to complete the installation without installing anything
*/
exports.completeInstall = function(handler) {
jenkins.get('/setupWizard/completeInstall', function() {
jenkins.post('/setupWizard/completeInstall', {}, function() {
handler.call({ isError: false });
}, {
timeout: pluginManagerErrorTimeoutMillis,