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

Problem with import of xml

454 views
Skip to first unread message

Mueller Peter

unread,
Mar 22, 2013, 7:45:04 PM3/22/13
to support-...@lists.mozilla.org
Hello,

I have exported a list of bugs from Bugzilla 3.6 (one machine).

And tried to import this list on a newly installed Bugzilla 4.2 (other machine).

I get the following error:

syntax error at line 1, column 0, byte 0 at /usr/local/lib/perl5/site_perl/5.14.2/mach/XML/Parser.pm line 187
at importxml.pl line 1272

The XML file looks the following:

<attachid>8</attachid>
<date>2012-12-07 18:35:00 +0100</date>
<delta_ts>2012-12-07 18:35:20 +0100</delta_ts>

Line 1272 is the middle one.

What can I do to finish the import?
Do I have to configure the products etc. like on the old machine???

Best regards,
Peter

Thorsten Schöning

unread,
Mar 23, 2013, 5:51:34 AM3/23/13
to support-...@lists.mozilla.org
Guten Tag Mueller Peter,
am Samstag, 23. März 2013 um 00:45 schrieben Sie:

> syntax error at line 1, column 0, byte 0 at
> /usr/local/lib/perl5/site_perl/5.14.2/mach/XML/Parser.pm line 187
> at importxml.pl line 1272

This surely means no data to parse for the parser. How did you call
importxml.pl? Make sure the script can read the file and that it
actually contains content. I couldn't think any other reason for an
error in byte 0 and a quick test with one of my test bugs so succeeded
successfully.

> Line 1272 is the middle one.

1272 is the line where the error occurred in importxml.pl, not in the
XML file, column 0 and byte 0 is the error in the XML file.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail:Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Mueller Peter

unread,
Mar 23, 2013, 6:02:25 PM3/23/13
to Thorsten Schöning, support-...@lists.mozilla.org
Hello,

thank you very much for your comment.

I run the import as root within the bugzilla folder and copied also the bug.xml file into
this folder. So there should not be an access problem.

root@svn:/usr/local/www/bugzilla # perl -wT importxml.pl bugs.xml
Unsuccessful stat on filename containing newline at /usr/local/lib/perl5/site_perl/5.14.2/XML/Twig.pm line 742, <> chunk 1.

syntax error at line 1, column 0, byte 0 at /usr/local/lib/perl5/site_perl/5.14.2/mach/XML/Parser.pm line 187
at importxml.pl line 1272
root@svn:/usr/local/www/bugzilla #

Is there anything I have to do on the new bugzilla installation before I can import?
Or is it a problem that I run it as root?

Regards,
Peter
> _______________________________________________
> support-bugzilla mailing list
> support-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put support-...@lists.mozilla.org in the To: field when you reply.

Thorsten Schöning

unread,
Mar 23, 2013, 6:16:03 PM3/23/13
to support-...@lists.mozilla.org
Guten Tag Mueller Peter,
am Samstag, 23. März 2013 um 23:02 schrieben Sie:

> root@svn:/usr/local/www/bugzilla # perl -wT importxml.pl bugs.xml

I did ./importxml.pl bugs.xml, maybe there's a difference in providing
the arguments to importxml.pl between using perl xy.pl and ./xy.pl.
0 new messages