Bug 33593 - <colspec colwidth="0*"/> causes FOP to run forever
Summary: <colspec colwidth="0*"/> causes FOP to run forever
Status: CLOSED DUPLICATE of bug 6094
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.5
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-15 19:23 UTC by Paul DuBois
Modified: 2012-04-01 13:55 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul DuBois 2005-02-15 19:23:33 UTC
A zero-percent colwidth causes FOP to run forever when attempting to generate PDF. Yes, I agree that 
<colspec colwidth="0*"/> does not make much sense, but it's unfriendly for FOP to never terminate as 
a result of this. (I discovered this problem as a result of debugging output from a table-generator that 
had a bug.)

Sample file to demonstrate the problem:

<!DOCTYPE section PUBLIC
          "-//OASIS//DTD DocBook XML V4.3//EN"
          "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<section>

 <title>
  XXX
 </title>

 <informaltable>
   <tgroup cols="2">
     <colspec colwidth="50*"/>
     <colspec colwidth="30*"/>
     <tbody>
       <row>
         <entry>
          XXX
         </entry>
         <entry>
          XXX
         </entry>
       </row>
     </tbody>
   </tgroup>
 </informaltable>

</section>

As shown, the file processes through FOP okay. However, if you change "50*" to "0*" in the first 
<colspec> line, FOP doesn't terminate. (Strictly speaking, I don't know if it runs *forever*, but it 
certainly runs a very long time.)
Comment 1 J.Pietschmann 2005-02-15 21:13:33 UTC
An interesting variant of the "not even the first char will fit on the
line" bug. Marking as duplicate.

*** This bug has been marked as a duplicate of 6094 ***
Comment 2 Glenn Adams 2012-04-01 13:55:05 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs