Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with invalid OOXML file #5

Closed
Rafiot opened this issue May 6, 2016 · 1 comment
Closed

Issue with invalid OOXML file #5

Rafiot opened this issue May 6, 2016 · 1 comment

Comments

@Rafiot
Copy link
Contributor

Rafiot commented May 6, 2016

I have an XML file that I can open without any problem with LibreOffice but office dissector fails because the following parameter fails in the document:

<Default Extension="xml" ContentType="application/xml"/>

It seems the document should be considered invalid [1] but as it can be open with LibreOffice, I think office dissector should be able to handle it (the document is legitimate).

My dirty fix (?) right now is to default to self.__content_type = 'application/xml' if the parameter is missing.

[1] https://developer.marklogic.com/blog/smallchanges/2007-11-27 https://msdn.microsoft.com/en-us/library/bb879915%28v=office.12%29.aspx

@Rafiot Rafiot changed the title Issue with buggy (?) XML file Issue with invalid XML file May 6, 2016
@Rafiot Rafiot changed the title Issue with invalid XML file Issue with invalid OOXML file May 6, 2016
@Rafiot
Copy link
Contributor Author

Rafiot commented May 8, 2016

Example of working file (in libreoffice): no_content_type.docx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants