Bug 51374 - [PATCH] fix lastPrinted OOXML core property corruption
Summary: [PATCH] fix lastPrinted OOXML core property corruption
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.8-dev
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
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