XML import in Bugzilla 3.0 - Mozilla

This is a discussion on XML import in Bugzilla 3.0 - Mozilla ; 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 ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: XML import in Bugzilla 3.0

  1. XML import in Bugzilla 3.0

    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


  2. Re: XML import in Bugzilla 3.0

    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



  3. Re: XML import in Bugzilla 3.0

    Stefan,

    2007/8/3, Stefan :
    > 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

  4. Re: XML import in Bugzilla 3.0

    On Jul 31, 6:05 am, Stefan 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


+ Reply to Thread