From 9a1bcf4c95e3f290e96fb6be581ab5a458078d8b Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 13 Oct 2016 21:56:49 +0200 Subject: [PATCH] WebInterface: Fix some typos in method and variable names Signed-off-by: Stefan Weil --- Goobi/src/org/goobi/production/cli/WebInterface.java | 4 ++-- Goobi/src/org/goobi/production/cli/WebInterfaceConfig.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Goobi/src/org/goobi/production/cli/WebInterface.java b/Goobi/src/org/goobi/production/cli/WebInterface.java index 4822e9143cf..5f52fc55658 100644 --- a/Goobi/src/org/goobi/production/cli/WebInterface.java +++ b/Goobi/src/org/goobi/production/cli/WebInterface.java @@ -100,8 +100,8 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se } // check if command is allowed for used IP - List allowedCommandos = WebInterfaceConfig.getCredencials(ip, password); - if (!allowedCommandos.contains(command)) { + List allowedCommands = WebInterfaceConfig.getCredentials(ip, password); + if (!allowedCommands.contains(command)) { // error, no command found generateAnswer(resp, 401, "command not allowed", "command " + command + " not allowed for your IP (" + ip + ")"); return; diff --git a/Goobi/src/org/goobi/production/cli/WebInterfaceConfig.java b/Goobi/src/org/goobi/production/cli/WebInterfaceConfig.java index 1d540c80be0..905b2df35e6 100644 --- a/Goobi/src/org/goobi/production/cli/WebInterfaceConfig.java +++ b/Goobi/src/org/goobi/production/cli/WebInterfaceConfig.java @@ -37,7 +37,7 @@ public class WebInterfaceConfig { - public static List getCredencials(String requestIp, String requestPassword) { + public static List getCredentials(String requestIp, String requestPassword) { ArrayList allowed = new ArrayList(); try { XMLConfiguration config = new XMLConfiguration(new Helper().getGoobiConfigDirectory() +"goobi_webapi.xml");