<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Malformed activity feed with paths containing ampersand in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/malformed-activity-feed-with-paths-containing-ampersand/m-p/274283#M227413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question concerning RSS feeds. Recently one of our Alfresco users created a folder containing an ampersand character (let it be "this &amp;amp; that" for example). That broke the site activities RSS feed because Alfresco did not replace the "&amp;amp;" in the link URLs (should be %26, I think). Here is the xml of the feed (real names replaced). The validation fails in line 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code lang="xml" linenumbers="normal"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;feed xmlns="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2005/Atom" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2005/Atom&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;generator version="1.0"&amp;gt;Alfresco (1.0)&amp;lt;/generator&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="self" href="&lt;/SPAN&gt;&lt;A href="https://TheServer:443/share/page/feed/components/dashlets/activities/list?format=atomfeed&amp;amp;mode=site&amp;amp;site=TheSite&amp;amp;dateFilter=7&amp;amp;userFilter=all&amp;amp;activityFilter=" rel="nofollow noopener noreferrer"&gt;https://TheServer:443/share/page/feed/components/dashlets/activities/list?format=atomfeed&amp;amp;mode=site&amp;amp;site=TheSite&amp;amp;dateFilter=7&amp;amp;userFilter=all&amp;amp;activityFilter=&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;id&amp;gt;&lt;/SPAN&gt;&lt;A href="https://TheServer:443/share/page/feed/components/dashlets/activities/list?format=atomfeed&amp;amp;mode=site&amp;amp;site=TheSite&amp;amp;dateFilter=7&amp;amp;userFilter=all&amp;amp;activityFilter=" rel="nofollow noopener noreferrer"&gt;https://TheServer:443/share/page/feed/components/dashlets/activities/list?format=atomfeed&amp;amp;mode=site&amp;amp;site=TheSite&amp;amp;dateFilter=7&amp;amp;userFilter=all&amp;amp;activityFilter=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/id&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;title&amp;gt;Alfresco Activities Site Feed for TheSite&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;updated&amp;gt;2013-02-04T08:31:45.000+01:00&amp;lt;/updated&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;entry xmlns='&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2005/Atom" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2005/Atom&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;&amp;lt;![CDATA[TheUser added folder this &amp;amp;amp;amp; that]]&amp;gt;&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="alternate" type="text/html" href="&lt;/SPAN&gt;&lt;A href="https://TheServer:443/share/page/site/TheSite/documentlibrary?path=/this" rel="nofollow noopener noreferrer"&gt;https://TheServer:443/share/page/site/TheSite/documentlibrary?path=/this&lt;/A&gt;&lt;SPAN&gt; &amp;amp; that" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;1.129&amp;lt;/id&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;updated&amp;gt;2013-02-04T16:06:58.000+01:00&amp;lt;/updated&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;summary type="html"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;![CDATA[&amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://TheServer:443/share/page/user/TheUser/profile" rel="nofollow noopener noreferrer"&gt;https://TheServer:443/share/page/user/TheUser/profile&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;TheUser&amp;lt;/a&amp;gt; added folder &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://TheServer:443/share/page/site/TheSite/documentlibrary?path=/this" rel="nofollow noopener noreferrer"&gt;https://TheServer:443/share/page/site/TheSite/documentlibrary?path=/this&lt;/A&gt;&lt;SPAN&gt; &amp;amp; that"&amp;gt;this &amp;amp;amp; that&amp;lt;/a&amp;gt;]]&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;author&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;TheUser&amp;lt;/name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;uri&amp;gt;&lt;/SPAN&gt;&lt;A href="https://TheServer:443/share/page/user/TheUser/profile" rel="nofollow noopener noreferrer"&gt;https://TheServer:443/share/page/user/TheUser/profile&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/uri&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/author&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/entry&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/feed&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on my rudimentary html knowledge I expect to see something like this instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;href="&lt;A href="https://TheServer:443/share/page/site/TheSite/documentlibrary?path=/this%20%26%20that" rel="nofollow noopener noreferrer"&gt;https://TheServer:443/share/page/site/TheSite/documentlibrary?path=/this%20%26%20that&lt;/A&gt;"&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some RSS readers seem to ignore the malformed entry, but thunderbird for example completely refuses to load the whole feed. I have renamed the folder, but I also have to remove the defective entry from the feed somehow. So my question is: Where can I find it? Where is the feed cache?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: This seems to be a bug, should it be reported? According to a quick search in the bug database the issue is not known by now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2013 17:21:10 GMT</pubDate>
    <dc:creator>almoehi</dc:creator>
    <dc:date>2013-02-04T17:21:10Z</dc:date>
    <item>
      <title>Malformed activity feed with paths containing ampersand</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/malformed-activity-feed-with-paths-containing-ampersand/m-p/274283#M227413</link>
      <description>Hi everybody,I have a question concerning RSS feeds. Recently one of our Alfresco users created a folder containing an ampersand character (let it be "this &amp;amp; that" for example). That broke the site activities RSS feed because Alfresco did not replace the "&amp;amp;" in the link URLs (should be %26,</description>
      <pubDate>Mon, 04 Feb 2013 17:21:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/malformed-activity-feed-with-paths-containing-ampersand/m-p/274283#M227413</guid>
      <dc:creator>almoehi</dc:creator>
      <dc:date>2013-02-04T17:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Malformed activity feed with paths containing ampersand</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/malformed-activity-feed-with-paths-containing-ampersand/m-p/274284#M227414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree, this appears to be a bug. Every template should take care to properly escape all input that can originate from users and isn't already being sanitized in another component earlier in the chain of processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please report this as a JIRA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can only remove the defective entry from the feed via direct database manipulation, since as far as I know, there is no API for you to use to query and delete individual entries. You can use the &amp;lt;id&amp;gt; as a reference to find the relevant entry, but I am not sure wether this is post_id or feed_id in the Alfresco alf_activity_feed table…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, after 30 days, you should no longer have any problems because entries are deleted after that time by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 19:54:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/malformed-activity-feed-with-paths-containing-ampersand/m-p/274284#M227414</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-02-05T19:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Malformed activity feed with paths containing ampersand</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/malformed-activity-feed-with-paths-containing-ampersand/m-p/274285#M227415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your helpful answer. I'll try to find the entry in the table that you mentioned. Otherwise I'll wait patiently as you say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The bug will be reported asap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 20:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/malformed-activity-feed-with-paths-containing-ampersand/m-p/274285#M227415</guid>
      <dc:creator>almoehi</dc:creator>
      <dc:date>2013-02-05T20:34:38Z</dc:date>
    </item>
  </channel>
</rss>

