Bug 51374

Summary: [PATCH] fix lastPrinted OOXML core property corruption
Product: POI Reporter: Gary King <gking>
Component: XSSFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: git format-patch @ svn-id 1135656

Description Gary King 2011-06-15 01:16:19 UTC
Created attachment 27157 [details]
git format-patch @ svn-id 1135656

POI is returning the created property rather than the lastPrinted property in getLastPrintedPropertyString.

When saving documents which have a null created property and a valid lastPrinted property, this resulting docProps/core.xml file has an empty lastPrinted node:


which PowerPoint 2011 for OSX detects as a corrupt file (I have not tested other formats or other Office versions).
Comment 1 Yegor Kozlov 2011-06-15 11:16:43 UTC
Applied in r1135997