mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
[SECURITY-420] RequirePOST to finish setup wizard
This commit is contained in:
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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user