Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XML import in Bugzilla 3.0

7 views
Skip to first unread message

Stefan

unread,
Jul 31, 2007, 6:05:01 AM7/31/07
to
Hi all,
I tried to import a buglist (XML) into Bugzilla 3.0 using the
importxml.pl script.
The used command is
perl -T ./import.pl -v -v ../temp/export.xml

export.xml is derived from an exported bug from Bugzilla 3.0 and
slightly changed.
(The difference is the Bug-Id and the short-descirption.)

But I got the fillowing (error) messages:
C:\bugzilla>perl -T ./importxml.pl -v -v ../temp/export.xml
Reading xml
Parsing tree
Can't locate object method "name" via package "XML::Twig::Elt" at ./
importxml.pl line 466, <> chunk 1.

A very new version of ActivePerl is installed: 5.8.8 Built 819 (newest
version is built 820...)

XML-Twig version is v3.09
I had a look into Twig.pm and didn't find "sub name()" inside the
XML::Twig::Elt class section.
I suppose there is a compatibility gap between the expectations of
Bugzilla and the reality of ActivePerl.

Which perl version is needed for XML import into Bugzilla 3.0?
(I read something about version 5.8.1 for windows.)
Is it possible to upgrade the XML::Twig separately?

Stefan

Stefan

unread,
Aug 3, 2007, 7:48:04 AM8/3/07
to
Hi all,

I found a solution by myself: Upgrade of XML-Twig.
Latest version of twig is 3.30.
I got it here: http://www.xmltwig.com/xmltwig/

Stefan


Marc Schumann

unread,
Aug 3, 2007, 8:04:19 AM8/3/07
to support-...@lists.mozilla.org
Stefan,

2007/8/3, Stefan <sb...@manz-automation.com>:


> I found a solution by myself: Upgrade of XML-Twig.
> Latest version of twig is 3.30.
> I got it here: http://www.xmltwig.com/xmltwig/

thanks for getting back here with this, it may help others.
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=390781, maybe
this one can be nailed down.

Kind regards
Marc

mirod

unread,
Aug 3, 2007, 7:28:32 PM8/3/07
to
On Jul 31, 6:05 am, Stefan <s...@manz-automation.com> wrote:
> Hi all,
> I tried to import a buglist (XML) into Bugzilla 3.0 using the
> importxml.pl script.
> The used command is
> perl -T ./import.pl -v -v ../temp/export.xml
>
> export.xmlis derived from an exported bug from Bugzilla 3.0 and

> slightly changed.
> (The difference is the Bug-Id and the short-descirption.)
>
> But I got the fillowing (error) messages:
> C:\bugzilla>perl -T ./importxml.pl -v -v ../temp/export.xml
> Readingxml
> Parsing tree
> Can't locate object method "name" via package "XML::Twig::Elt" at ./
> importxml.pl line 466, <> chunk 1.
>
> A very new version of ActivePerl is installed: 5.8.8 Built 819 (newest
> version is built 820...)
>
> XML-Twigversion is v3.09
> I had a look intoTwig.pm and didn't find "sub name()" inside theXML::Twig::Elt class section.

> I suppose there is a compatibility gap between the expectations of
> Bugzilla and the reality of ActivePerl.
>
> Which perl version is needed forXMLimport into Bugzilla 3.0?

> (I read something about version 5.8.1 for windows.)
> Is it possible to upgrade theXML::Twigseparately?

XML::Twig 3.09 is VERY old, but it does provide the gi method, which
is the same as the name method in later versions. So replacing name by
gi might allow the script to work with older versions.

--
mirod

0 new messages