Re: RSS for public queries ...
Johannes Hoechstaedter <[email protected]> Thu, 05 Feb 2009 13:46:16 +0100
| Newsgroups | gmane.comp.java.scarab.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, from my side it looks like an enhancement is necessary here.... :) Andrej, some days ago: "Scarab looks unfinished." cheers hussayn schrieb: > 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 > ------------------------------------------------------ http://scarab.tigris.org/ds/viewMessage.do?dsForumId=455&dsMessageId=1107264 To unsubscribe from this discussion, e-mail: [[email protected]].