]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1857] RSS feeds not working archiva-1.3.x
authorBrett Porter <brett@apache.org>
Fri, 1 Aug 2014 05:05:02 +0000 (15:05 +1000)
committerBrett Porter <brett@apache.org>
Fri, 1 Aug 2014 05:05:02 +0000 (15:05 +1000)
Make sure Struts ignores the paths mapped to other servlets, including feeds
and xmlrpc. Also fix a context path issue for the feed on the repositories
page.

archiva-modules/archiva-web/archiva-webapp/src/main/resources/struts.xml
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp

index 1b3edf20b63797a9f343c6bb336e9e2a70ceac08..000283e0b746824efcfcc6705b1310f82694144a 100644 (file)
@@ -22,7 +22,7 @@
     "http://struts.apache.org/dtds/struts-2.0.dtd"> 
 
 <struts>
-  <constant name="struts.action.excludePattern" value="^/$,^/repository/.*" />
+  <constant name="struts.action.excludePattern" value="^/$,^/repository/.*,^/xmlrpc$,^/feeds/.*" />
 
   <!-- Include plexus-security xwork configurations. -->
   <include file="struts-security.xml"/>
index 3a2d7726b45b2d4d412341aee9ea75616ae3bbcb..072a6d27ecfe1a5baf0c9d3c66817401912298c3 100644 (file)
     </s:a>
   </redback:ifAnyAuthorized>
   <c:url var="rssFeedIconUrl" value="/images/icons/rss-feed.png"/>
-  <a href='/archiva/feeds/<c:out value="${repository.id}" />'>
+  <c:url var="rssFeedUrl" value="/feeds/${repository.id}" />
+  <a href="${rssFeedUrl}">
        <img src="${rssFeedIconUrl}" />
   </a>
 </div>