[request-tracker-maintainers] Bug#649720: Bug#649720: request-tracker3.8: rt-dump-database spits out perl code before dump's XML

Olivier Berger olivier.berger at it-sudparis.eu
Thu Nov 24 12:54:07 UTC 2011


On Thu, 24 Nov 2011 12:27:47 +0000, Dominic Hargreaves <dom at earth.li> wrote:
> On Wed, Nov 23, 2011 at 02:27:56PM +0100, Olivier Berger wrote:
> 
> > I tried :
> > # rt-dump-database 2>/dev/null
> > 
> > and get :
> > no strict; use XML::Simple; *_ = XMLin(do { local $/; readline(DATA) }, ForceArray => [qw(
> >  Users Groups Queues ScripActions ScripConditions Templates Scrips ACL CustomFields Values
> > )], NoAttr => 1, SuppressEmpty => ''); *$_ = ($_{$_} || []) for keys %_; 1; # vim: ft=xml
> > __DATA__
> > <?xml version="1.0" encoding="UTF-8"?>
> > <InitialData>
> 
> > The first lines aren't XML, so I guess there's something wrong happening.
> 
> No, this is entirely expected. The format expected by rt-setup-database
> is perl code (see also /usr/share/request-tracker3.8/etc/initialdata).
> 
> I see that you might have been mislead by the manpage, which should be
> fixed.
> 

Exactly ;-)

> By the way, rt-dump-database is often misunderstood and might not do
> what you think it is. It's not a tool for migrating the content of an
> RT database.
> 

What is it good for, then ?

Shouldn't it be renamed, then ?

Thanks for caring.

Best regards,
-- 
Olivier BERGER 
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)






More information about the pkg-request-tracker-maintainers mailing list