You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/07/09 09:31:35 UTC

[Bug 59747] xlsx file does not conform to bit patterns used by common file type detection software

https://bz.apache.org/bugzilla/show_bug.cgi?id=59747

--- Comment #4 from Javen O'Neal <on...@apache.org> ---
Here's a start:
$ grep --recursive --files-with-matches --exclude-dir=".svn" -E
"CONTENT_TYPES_PART_NAME|Content_Types|_rels|\.rels|RELATIONSHIP_PART"
--include=*.java src/ooxml/java/org/apache/poi/openxml4j/opc

src/ooxml/java/org/apache/poi/openxml4j/opc/PackageRelationship.java
src/ooxml/java/org/apache/poi/openxml4j/opc/PackagePartName.java
src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java
src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentTypeManager.java
src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipHelper.java
src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipContentTypeManager.java
src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java

I did a quick glance over and ZipPackage#getPartsImpl and the TreeMap partList
looked potentially relevant, but couldn't figure it out if this is where the
order is being set. Also, it's possible that the content manager needs to be
created before the rels, which may make it difficult to simply rearrange the
code to get the _rels directory to be created first. Seems more logical to me
for files in higher directories to be created before files in lower
directories.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org