Links in RSS feeds are not fully qualified

Description

The RSS feed for search results does not include a fully qualified URL (i.e. https://some.server/...). In FF2, this makes the feed unusable (though it works in IE7).

Example:

<item>
<title>announcement: Subject: Vula hands-on workshops, 26-28 Feb From Stephen Marquard</title>

<link>/access/announcement/msg/922248af-9892-4539-0001-172b35ae4981/main/c749d4b8-6927-4009-a14f-eeab9e550b4b</link>
<description>
<div class="searchItem" >
<span class="searchTool">announcement:</span>
<a href="/access/announcement/msg/922248af-9892-4539-0001-172b35ae4981/main/c749d4b8-6927-4009-a14f-eeab9e550b4b" target="searchresult" class="searchTopLink" > Subject: Vula hands-on workshops, 26-28 Feb From Stephen Marquard</a>
<div class="searchItemBody" ></div>
<a href="/access/announcement/msg/922248af-9892-4539-0001-172b35ae4981/main/c749d4b8-6927-4009-a14f-eeab9e550b4b" target="searchresult" class="searchBottonLink" >/access/announcement/msg/922248af-9892-4539-0001-172b35ae4981/main/c749d4b8-6927-4009-a14f-eeab9e550b4b</a>

</div>
</description>
</item>

is incorporated by

Activity

Jean-François Lévêque November 4, 2008 at 6:54 AM

2.5.x merge r53994

Jean-François Lévêque November 4, 2008 at 6:26 AM

Code changes reviewed.

Ian Boston May 24, 2008 at 3:08 AM

Fixed now, all URLS fully qualified in the rss feed in search.

Stephen Marquard May 19, 2008 at 1:46 AM

Checked on a trunk build, still missing the full URLs:

e.g. the href here should have the full URL in it:

<a href="/access/content/group/d9ef0870-4fd7-4615-9537-fd84e94c9c1a/folder1/Innovation" target="searchresult" class="searchTopLink" >Innovation</a>

To reproduce: create a site, add Resources and Search, upload a file to Resources, wait for it to be indexed, search for "+tool:content", click on RSS icon and view source of resulting XML.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>
Sakai Based Service Search RSS Feed Search results for +tool:content
</title>
<description>
Sakai Based Service Search RSS Feed Search results for +tool:content
</description>
<link>
http://mocha.cet.uct.ac.za:8080/portal/tool/ab6d47b2-da01-424a-a60a-9333ea772910/rss20
</link>

<lastBuildDate>
Mon, 19 May 2008 10:44:31 SAST
</lastBuildDate>
<generator>Sakai Based Service Search RSS Generator</generator>
<item>
<title>content: Innovation</title>
<link>/access/content/group/d9ef0870-4fd7-4615-9537-fd84e94c9c1a/folder1/Innovation</link>
<description>
<div class="searchItem" >
<span class="searchTool">content:</span>

<a href="/access/content/group/d9ef0870-4fd7-4615-9537-fd84e94c9c1a/folder1/Innovation" target="searchresult" class="searchTopLink" >Innovation</a>
<div class="searchItemBody" ></div>
<a href="/access/content/group/d9ef0870-4fd7-4615-9537-fd84e94c9c1a/folder1/Innovation" target="searchresult" class="searchBottonLink" >/access/content/group/d9ef0870-4fd7-4615-9537-fd84e94c9c1a/folder1/Innovation</a>
</div>
</description>
</item>
</channel>
</rss>

Ian Boston May 17, 2008 at 6:51 PM

I have checked on trunk all feeds and provided the server has the correct server url, they all contain fully qualified URL's, I cant reproduce on trunk.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created April 14, 2008 at 6:21 AM
Updated November 4, 2009 at 7:59 PM
Resolved May 24, 2008 at 3:08 AM