RSS for public queries ...

hussayn <[email protected]> Wed, 4 Feb 2009 14:40:47 -0800 (PST)
Newsgroups gmane.comp.java.scarab.devel
Message-ID <[email protected]>
Hi;

I got the request to enable RSS on public queries. So i tested it and found
it broken.
Now i debugged it and found that RSS feeds on queries seems to be either
removed or 
rewritten but not fully implemented... Maybe someone else has already looked
on this 
particular problem and can help fixing this quickly ?

This is what i found so far and maybe that helps to get an answer to 
"how to implement RSS for queries" ...:


In the java sourcetree i found:

feeds/IssueFeed.java   (used for RSS on single issues, that seems to work)
feeds/QueryFeed.java  (implemented but nowhere used)

Now when i look at the generated URL'S for RSS, i see:

for single issues:

/scarab/issues/
curmodule/10001/
tqk/0/
template/RSSDataExport.vm/
feedType/IssueFeed/
issueId/ASPT13/
type/rss_2.0

and for queryLists:

/scarab/issues/
curmodule/10001/
tqk/0/
template/Index.vm/
action/Search/
go/10060/
eventSubmit_doSelectquery/foo/
output/feed/
feedType/rss_2.0

So for single issues the RSSDataExport is called, which in turn uses the
IssueFeed class from above and that seems to work.

For queryLists a standard search action (Search.java) is called which makes
sense to me. 
But i expect, that within the search action we would see somewhere a call to
QueryFeed.java or an equivalent call. But the only thing that happens in
Search() is: Due to the fact that we passed in "output=feed"  the target is
set to RSSIssueList.vm (see Search.getIssueListTarget() ) and this velocity
macro does not exist, so we get a TemplateNotFoundException...

For me that looks broken. Either the author never finished the
implementation, or some necessary steps have been removed unintentionally.
If i remember correctly, RSS used to work for Queries in previous
releases... So what happened here ???? And why is there a QueryFeed class,
which apparently is nowhere used, but looks like this is the RSS
implementation for query lists ...

Anyone has got an idea what's up here and can give me a hint (or two...) ?

regards,
Hussayn
-- 
View this message in context: http://www.nabble.com/RSS-for-public-queries-...-tp21841321p21841321.html
Sent from the Scarab - Dev mailing list archive at Nabble.com.

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=455&dsMessageId=1104552

To unsubscribe from this discussion, e-mail: [[email protected]].