diff --git a/src/documentation/content/xdocs/changes.xml b/src/documentation/content/xdocs/changes.xml index 45ca4c6bd..380f9c78c 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 1c50ca1b7..ccf0741d9 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 6ea37ea38..fc89d74c9 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