Opened 15 years ago

Closed 15 years ago

#410 closed defect (fixed)

scriptindex aborts with "Unknown Exception"

Reported by: wb Owned by: Olly Betts
Priority: normal Milestone: 1.0.18
Component: Omega Version: 1.0.17
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

scriptindex aborts with "Unknown Exception" when trying to "unhtml" XSLT files containing a template embedding the line "<meta HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">". After removing this line scriptindex succeeds.

As usual the 1st line of the affected XSLT files contain also their own encoding declaration "<?xml version="1.0" encoding="UTF-8" ?>".

Attachments (3)

bug410.script (19 bytes ) - added by Olly Betts 15 years ago.
scriptindex index script
bug410.dump (132 bytes ) - added by Olly Betts 15 years ago.
scriptindex dump file
bug410-2.dump (12.0 KB ) - added by wb 15 years ago.
Dump file to reproduce the bug

Download all attachments as: .zip

Change History (7)

comment:1 by Olly Betts, 15 years ago

Resolution: worksforme
Status: newclosed

Works for me with Xapian 1.0.16 - I'll attach the example files I used. Command was:

scriptindex tmp.db bug410.script bug410.dump

If you're able to reproduce this with 1.0.16, please attach a small example which fails, and reopen this ticket.

by Olly Betts, 15 years ago

Attachment: bug410.script added

scriptindex index script

by Olly Betts, 15 years ago

Attachment: bug410.dump added

scriptindex dump file

by wb, 15 years ago

Attachment: bug410-2.dump added

Dump file to reproduce the bug

comment:2 by wb, 15 years ago

Resolution: worksforme
Status: closedreopened
Version: 1.0.111.0.17

The uploaded file bug410-2.dump is a sample for the XSLT files still triggering the exception (now with Xapian 1.0.17) at our site.

comment:3 by Olly Betts, 15 years ago

Milestone: 1.0.18
Operating System: LinuxAll

Thanks. The issue is that we end parsing (due to </body> on a document where the character set was specified in the body).

Fixed in trunk r13720. Marking for backport for 1.0.18.

comment:4 by Olly Betts, 15 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in 1.0 branch r13725.

Note: See TracTickets for help on using tickets.