From: Yegor Kozlov Date: Mon, 20 Apr 2009 17:09:09 +0000 (+0000) Subject: Fixed POIFSFileSystem to set CLSID of root when constructing instances from InputStre... X-Git-Tag: REL_3_5_BETA6~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=712d0f9c2027ecb4300a5fceb4bf3256be6707d0;p=poi.git Fixed POIFSFileSystem to set CLSID of root when constructing instances from InputStream, see bugzilla 39056 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@766757 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/changes.xml b/src/documentation/content/xdocs/changes.xml index 45ca4c6bdf..380f9c78c9 100644 --- a/src/documentation/content/xdocs/changes.xml +++ b/src/documentation/content/xdocs/changes.xml @@ -37,6 +37,8 @@ + 39056 - Fixed POIFSFileSystem to set CLSID of root when constructing instances from InputStream + 47054 - Fixed cloneStyleFrom to avoid exception when cloning styles of the same family 46186 - Fixed Sheet to read GutsRecord in the Sheet(RecordStream rs) 46714 - Automatically call sheet.setAlternativeExpression when sheet.setRowSumsBelow is called 46279 - Allow 255 arguments for excel functions in XSSF diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 1c50ca1b7e..ccf0741d9f 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -34,6 +34,8 @@ + 39056 - Fixed POIFSFileSystem to set CLSID of root when constructing instances from InputStream + 47054 - Fixed cloneStyleFrom to avoid exception when cloning styles of the same family 46186 - Fixed Sheet to read GutsRecord in the Sheet(RecordStream rs) 46714 - Automatically call sheet.setAlternativeExpression when sheet.setRowSumsBelow is called 46279 - Allow 255 arguments for excel functions in XSSF diff --git a/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java b/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java index 6ea37ea387..fc89d74c9a 100644 --- a/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java +++ b/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java @@ -183,6 +183,9 @@ public class POIFSFileSystem null, header_block_reader.getPropertyStart() ); + + // For whatever reason CLSID of root is always 0. + getRoot().setStorageClsid(properties.getRoot().getStorageClsid()); } /** * @param stream the stream to be closed