]> source.dussan.org Git - archiva.git/commitdiff
make this servlet thread safe!!
authorOlivier Lamy <olamy@apache.org>
Mon, 13 Oct 2014 05:19:42 +0000 (16:19 +1100)
committerOlivier Lamy <olamy@apache.org>
Mon, 13 Oct 2014 05:19:42 +0000 (16:19 +1100)
archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java
archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java

index ddf22be14000dd5dc52d1bfe67df6008c5407afb..bc26d3642a74c3c2d3cadfcc3f1bc4406130f0ac 100644 (file)
@@ -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<>();
index f11620ac9c41a60c932b9f217df7101b16e5a811..54dab14ae12520440d8c052051853041e63df5c4 100644 (file)
@@ -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
     {