Bug 681909 - xmlto return non-zero code with lynx on empty file
Summary: xmlto return non-zero code with lynx on empty file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xmlto
Version: 15
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 660819 661036 716129 716171
TreeView+ depends on / blocked
 
Reported: 2011-03-03 15:06 UTC by Dan Horák
Modified: 2011-09-25 03:51 UTC (History)
4 users (show)

Fixed In Version: xmlto-0.0.24-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-25 03:51:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
reproducer (610 bytes, application/octet-stream)
2011-03-03 15:06 UTC, Dan Horák
no flags Details
reproducer (438 bytes, application/x-shellscript)
2011-03-03 15:26 UTC, Dan Horák
no flags Details

Description Dan Horák 2011-03-03 15:06:23 UTC
Created attachment 482102 [details]
reproducer

xmlto return a non-zero return code when the browser that satisfies the text-www-browser requirement is lynx instead of w3m

reproducable on F14, F15

output with lynx installed:

[dan@eagle libXtst]$ sh xmlto-test.sh 
Test on empty file, fails with lynx, OK with w3m
/home/dan/projects/fedora/zedora/libXtst/test.xml:1: parser error : Document is empty

^
/home/dan/projects/fedora/zedora/libXtst/test.xml:1: parser error : Start tag expected, '<' not found

^
unable to parse /home/dan/projects/fedora/zedora/libXtst/test.xml

Can't Access `file://localhost/tmp/xmlto.tZVo9J/test.proc'
Alert!: Unable to access document.

lynx: Can't access startfile 
return code=1
Test on empty book
return code=0


output with lynx and w3m installed:

[dan@eagle libXtst]$ sh xmlto-test.sh 
Test on empty file, fails with lynx, OK with w3m
/home/dan/projects/fedora/zedora/libXtst/test.xml:1: parser error : Document is empty

^
/home/dan/projects/fedora/zedora/libXtst/test.xml:1: parser error : Start tag expected, '<' not found

^
unable to parse /home/dan/projects/fedora/zedora/libXtst/test.xml
w3m: Can't load /tmp/xmlto.BgOv9F/test.proc.
return code=0
Test on empty book
return code=0

Comment 1 Dan Horák 2011-03-03 15:26:47 UTC
Created attachment 482103 [details]
reproducer

Comment 2 Ondrej Vasik 2011-03-03 15:51:13 UTC
Adding Kamil to cc, as he is lynx maintainer and only lynx returns 1 on this empty book.

Comment 3 Dan Horák 2011-03-03 15:57:17 UTC
and possible new feature - show the command line how the browser is doing the conversion when run with "verbose" option

Comment 4 Ondrej Vasik 2011-03-04 07:42:58 UTC
Yep, makes sense, feature from comment #3 was added by https://fedorahosted.org/xmlto/changeset/56/ , thanks for suggestion.

Comment 5 Thomas E. Dickey 2011-05-25 23:18:21 UTC
Looking at the error message, it seems possible that lynx is
being called, told to process a non-existent temporary file.

I don't see the xmlto-test.sh anywhere (and a quick read of
xmlto-0.0.23-4.fc15 doesn't show where/how lynx might be
invoked).

Comment 6 Ondrej Vasik 2011-05-26 05:25:48 UTC
Thanks for comment, lynx is called in txt format helping script (/usr/share/xmlto/format/docbook/txt) ... however it seems you are right here ... well, probably I could ensure that the file exists (even empty) with touch... these temp files are deleted anyway, so it should not cause any troubles...

Comment 7 Ondrej Vasik 2011-05-30 12:03:41 UTC
Yep, touch seems to solve the issue with empty file... https://fedorahosted.org/xmlto/changeset/57/ ... will try to find some time to finish xmlto 0.0.24 in June or July...

Comment 8 Thomas E. Dickey 2011-05-30 14:03:04 UTC
thanks (I seem to recall this issue reported a while back, in a different
report - at the time I had thought the issue was that the file was removed
before lynx could see it).

Comment 9 Ondrej Vasik 2011-08-25 10:02:07 UTC
xmlto-0.0.24 is already finished and in rawhide (and this issue is not present there) - not worth of an update in released fedora, though - so closing RAWHIDE.

Comment 10 Henrik Nordström 2011-09-14 19:13:32 UTC
Can we please have xmlto-0.0.24 pushed as an update for F15? It's the cause to a number of FTBFS issues in other packages. This causes those packages to not be built at all in the ARMv7 secondary arch, in addition to blocking any F15/F16 updates of those packages as well.

Comment 11 Ondrej Vasik 2011-09-15 04:03:10 UTC
OK...

Comment 12 Fedora Update System 2011-09-15 09:26:33 UTC
xmlto-0.0.24-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/xmlto-0.0.24-1.fc15

Comment 13 Fedora Update System 2011-09-16 02:01:15 UTC
Package xmlto-0.0.24-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xmlto-0.0.24-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/xmlto-0.0.24-1.fc15
then log in and leave karma (feedback).

Comment 14 Fedora Update System 2011-09-25 03:51:46 UTC
xmlto-0.0.24-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.