[rt-users] RT 3.2.0 Results.rdf problem

Alex Vandiver alexmv at bestpractical.com
Fri Jul 9 11:00:40 EDT 2004


On Fri, 2004-07-09 at 09:21, Kenneth Marshall wrote:
> I am trying to generate the RSS version of a search using the
> RSS button which appears to call Results.rdf. The Results.tsv
> for generating a spreadsheet works fine. The RSS ends up saving
> the actual Results.rdf file instead of the results of the search
> in XML/RSS format. Has anyone tried this out yet or am I
> misunderstanding how it is supposed to work?
Good catch.  This will be resolved in RT 3.2.1; if you're in a hurry,
the fix is below.
 - Alex

Index: bin/webmux.pl.in
===================================================================
--- bin/webmux.pl.in    (revision 1193)
+++ bin/webmux.pl.in    (working copy)
@@ -137,8 +137,8 @@
  
     RT::Init();
  
-    # We don't need to handle non-text items
-    return -1 if defined( $r->content_type ) && $r->content_type !~ m|^text/|io;
+    # We don't need to handle non-text, non-xml items
+    return -1 if defined( $r->content_type ) && $r->content_type !~ m!(^text/|\bxml\b)!io;
  
     my %session;
     my $status;
Index: html/Search/Results.rdf
===================================================================
--- html/Search/Results.rdf     (revision 1193)
+++ html/Search/Results.rdf     (working copy)
@@ -2,7 +2,7 @@
  
 my $Tickets = RT::Tickets->new($session{'CurrentUser'});
 $Tickets->FromSQL($ARGS{'Query'});
-    $r->content_type('xml/rss');
+$r->content_type('application/rdf+xml');

-- 
Networking -- one letter away from not working



More information about the rt-users mailing list