diff options
author | Olivier Lamy <olamy@apache.org> | 2014-10-13 16:19:42 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-10-13 16:19:42 +1100 |
commit | 70bc09fbb965a922808dcf77708fabdd4216455b (patch) | |
tree | 8969cd365d304543f652598f328411ffdee41fa4 /archiva-modules/archiva-web | |
parent | c2f9100ddaaa842f4aadd11943d27b5d1142c0e0 (diff) | |
download | archiva-70bc09fbb965a922808dcf77708fabdd4216455b.tar.gz archiva-70bc09fbb965a922808dcf77708fabdd4216455b.zip |
make this servlet thread safe!!
Diffstat (limited to 'archiva-modules/archiva-web')
2 files changed, 5 insertions, 5 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java index ddf22be14..bc26d3642 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java @@ -78,8 +78,6 @@ public class RssFeedServlet private Logger log = LoggerFactory.getLogger( RssFeedServlet.class ); - private RssFeedProcessor processor; - private WebApplicationContext wac; private UserRepositories userRepositories; @@ -131,6 +129,8 @@ public class RssFeedServlet return; } + RssFeedProcessor processor = null; + try { Map<String, String> map = new HashMap<>(); diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java index f11620ac9..54dab14ae 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java @@ -431,7 +431,7 @@ public class RssFeedServletTest } @Ignore - public void XXX_testInvalidRequest() + public void testInvalidRequest() throws Exception { //RssFeedServlet servlet = @@ -450,7 +450,7 @@ public class RssFeedServletTest } @Ignore - public void XXX_testInvalidAuthenticationRequest() + public void testInvalidAuthenticationRequest() throws Exception { //RssFeedServlet servlet = @@ -476,7 +476,7 @@ public class RssFeedServletTest } @Ignore - public void XXX_testUnauthorizedRequest() + public void testUnauthorizedRequest() throws Exception { |