From 50aade69b817e84d129ce5d59fc9272a40164d45 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 22 Apr 2009 02:08:21 +0000 Subject: [PATCH] Stapler gets confused which one to invoke for .../script git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17364 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Computer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/hudson/model/Computer.java b/core/src/main/java/hudson/model/Computer.java index eb95dd6868..9487c60d5e 100644 --- a/core/src/main/java/hudson/model/Computer.java +++ b/core/src/main/java/hudson/model/Computer.java @@ -669,17 +669,17 @@ public abstract class Computer extends AbstractModelObject implements AccessCont * Run arbitrary Groovy script. */ public void doScript(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { - doScript(req, rsp, "_script.jelly"); + _doScript(req, rsp, "_script.jelly"); } /** * Run arbitrary Groovy script and return result as plain text. */ public void doScriptText(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { - doScript(req, rsp, "_scriptText.jelly"); + _doScript(req, rsp, "_scriptText.jelly"); } - public void doScript( StaplerRequest req, StaplerResponse rsp, String view) throws IOException, ServletException { + protected void _doScript( StaplerRequest req, StaplerResponse rsp, String view) throws IOException, ServletException { // ability to run arbitrary script is dangerous, // so tie it to the admin access checkPermission(Hudson.ADMINISTER); -- GitLab