Library can't handle trash items



I've been working creating an application for sharepoint where I need to do some document processing with the open xml library. Great piece of work. However one of the documents I was processing added the "trash item" because the computer shut down unexpectedly, after this, when the library tries to process this and starts iterating through the zip contents with the JsZip library it does not know what to do with the trash item generated in the document and starts an infinite loop.

take a look at attached screenshots

file attachments


danielpaulus wrote Oct 1, 2014 at 7:10 AM

Hi, I also ran into this problem and created a quick workaround by replacing lines
135 and 313 in openxml.js with
if (part === "[Content_Types].xml" || (part.indexOf("[trash]")!=-1) )

it seems to work for now