poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60293] New: Handling illegal "Odd" footer in XWPF
Date Fri, 21 Oct 2016 14:57:56 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60293

            Bug ID: 60293
           Summary: Handling illegal "Odd" footer in XWPF
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: dev@poi.apache.org
          Reporter: tallison@mitre.org

On TIKA-2125, Seva Alekseyev provided a document that contains "odd" as the
footer type.

According to ECMA[1] (labeled-page 727, pdf-page 737), there can be three types
of footers: first, odd and even.  However, the way to encode those is "first"
"default" "even", and the xsd makes this clear.

<w:sectPr>   …   <w:footerReference r:id="rId6" w:type="first" />  
<w:footerReference r:id="rId7" w:type="default" />   <w:footerReference
r:id="rId10" w:type="even" />   … </w:sectPr> 
The 

So the file submitted on TIKA-2125 is out of compliance.

Do we want to add special handling to convert "odd" to "default"?


[1]
http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-376,%20Fourth%20Edition,%20Part%201%20-%20Fundamentals%20And%20Markup%20Language%20Reference.zip

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message