Bug 51374 - [PATCH] fix lastPrinted OOXML core property corruption
[PATCH] fix lastPrinted OOXML core property corruption
Status: RESOLVED FIXED
Product: POI
Classification: Unclassified
Component: XSSF
3.8-dev
PC All
: P2 normal (vote)
: ---
Assigned To: POI Developers List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-06-15 01:16 UTC by Gary King
Modified: 2011-06-15 11:16 UTC (History)
0 users



Attachments
git format-patch @ svn-id 1135656 (1.00 KB, application/octet-stream)
2011-06-15 01:16 UTC, Gary King
Details

Note You need to log in before you can comment on or make changes to this bug.
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:

<lastPrinted></lastPrinted>

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

Thanks,
Yegor