summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/servlet
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-11-24 21:28:27 -0500
committerJames Moger <james.moger@gitblit.com>2013-11-29 11:05:51 -0500
commitf8f6aa4d07cdfaaf23e24bf9eaf0a5fb9b437dda (patch)
tree6b3d2edcfdaf17853e9946bf0db510d4d24d35ae /src/main/java/com/gitblit/servlet
parent8d88096236fe70b850a29f548432299a866886e6 (diff)
downloadgitblit-f8f6aa4d07cdfaaf23e24bf9eaf0a5fb9b437dda.tar.gz
gitblit-f8f6aa4d07cdfaaf23e24bf9eaf0a5fb9b437dda.zip
Update unit tests for refactored architecture
Change-Id: I04639db977c515e5e1090ef8f0e1ce858820cb03
Diffstat (limited to 'src/main/java/com/gitblit/servlet')
-rw-r--r--src/main/java/com/gitblit/servlet/RpcFilter.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/com/gitblit/servlet/RpcFilter.java b/src/main/java/com/gitblit/servlet/RpcFilter.java
index 02f419ff..6163252d 100644
--- a/src/main/java/com/gitblit/servlet/RpcFilter.java
+++ b/src/main/java/com/gitblit/servlet/RpcFilter.java
@@ -27,11 +27,9 @@ import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.gitblit.Constants;
+import com.gitblit.Constants.RpcRequest;
import com.gitblit.IStoredSettings;
import com.gitblit.Keys;
-import com.gitblit.Constants.RpcRequest;
-import com.gitblit.Keys.web;
import com.gitblit.manager.IRuntimeManager;
import com.gitblit.manager.ISessionManager;
import com.gitblit.models.UserModel;
@@ -138,10 +136,8 @@ public class RpcFilter extends AuthenticationFilter {
return;
}
// valid user, but not for requested access. send 403.
- if (runtimeManager.isDebugMode()) {
- logger.info(MessageFormat.format("RPC: {0} forbidden to access {1}",
+ logger.warn(MessageFormat.format("RPC: {0} forbidden to access {1}",
user.username, fullUrl));
- }
httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN);
return;
}