W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2014

Whitepsace in filenames in zip problems

From: Erik Siegel <erik@xatapult.nl>
Date: Thu, 15 May 2014 09:03:32 +0200
To: <xproc-dev@w3.org>
Message-ID: <003d01cf700b$c894cd60$59be6820$@xatapult.nl>


(Using Calabash 1.0.16-95 from within oXygen)


I'm trying to extract a non-xml file from a zip file. The name of this file-in-the-zip contains a space. 


<pxp:unzip content-type="application/octet-stream">
                <p:with-option name="href" select="(ref-to-zip-file)"/>
                <p:with-option name="file" select="'content/learningunit1/script_00006/media/Bvj_1vg_oef_th1_leerdoel 6.jpg '"/>


What I get is an error message like:


Pipeline failed: java.lang.IllegalArgumentException: Illegal character in opaque part at index 144: zip:file:/home/conversion/in/VOoruit/ypub/projectToc_4592_1399461943.scorm.zip!content/learningunit1/script_00006/media/Bvj_1vg_oef_th1_leerdoel 6.jpg


(Character 144 is the space directly before the 6.jpg part)


I've tried to replace the offending space with a %20, but that gives me the message:


ZIP file does not contain 'content/learningunit1/script_00006/media/Bvj_1vg_oef_th1_leerdoel%206.jpg'


So, now I'm stuck... Anybody an idea how to solve this (except from forbidding spaces in filenames)?



Erik Siegel
Received on Thursday, 15 May 2014 07:03:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:20 UTC