-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Mats,
On Wed, Oct 14, 2009 at 2:19 PM, Mats Eklund <[hidden email]> wrote: > I get an error when using the zip processor saying: "ZIP file must have at least one entry". > > Below my code: > > <p:processor name="oxf:zip"> > <p:input name="data"> > <files> > <file name="file1.txt" size="123" dateTime="2007-09-11T18:23:04">file:/C:/test.txt</file> > </files> > </p:input> > <p:output name="data" id="zip"/> > </p:processor> lines of the corresponding exception your get in the orbeon.log? Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Mats,
On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <[hidden email]> wrote: > Below the exception. Thanks. Looking at the code, it is as if the ZipProcessor didn't find any <file> element in the config, but I see you have one the "data" input, and it looks fine. Could you share with us a simple "app" that reproduces the problem and that I could run here? > I also would like to know what is the function of the "size" attribute on the file tag. The "size" and "dataTime" attributes are only used by the UnzipProcessor. Yes, the documentation was confusion or even incorrect; I updated it for this: http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Mats Eklund-2
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws issue-2.zip (1K) Download Attachment |
Administrator
|
Mats,
Thank you for the easily reproducible test case! This is now fixed and will be in the next nightly build. You'll let me know if it works for you. http://forge.ow2.org/tracker/index.php?func=detail&aid=314413&group_id=168&atid=350207 Alex On Thu, Oct 22, 2009 at 12:18 PM, Mats Eklund <[hidden email]> wrote: > > Alex, > > I have attached a simple application that reproduces the error. > > Thanks for your help! > > Mats > > --- On Mon, 10/19/09, Mats Eklund <[hidden email]> wrote: > > From: Mats Eklund <[hidden email]> > Subject: [ops-users] Re: Re: Re: Re: Re: oxf:zip problems > To: [hidden email] > Date: Monday, October 19, 2009, 9:22 AM > > Any progress on this one? > > --- On Fri, 10/16/09, Mats Eklund <[hidden email]> wrote: > > From: Mats Eklund <[hidden email]> > Subject: [ops-users] Re: Re: Re: Re: oxf:zip problems > To: [hidden email] > Date: Friday, October 16, 2009, 11:30 AM > > Alex, > > thanks for clarifying the "size" attribute etc. > > Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them? > > page-flow.xml > ---------------------------------------- > <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors"> > <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/> > </config> > > spreadsheet.xlsx.xpl > ---------------------------------------- > <p:config > xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:oxf="http://www.orbeon.com/oxf/processors"> > > <p:processor name="oxf:zip"> > <p:input name="data"> > <files> > <file name="file1.txt">page-flow.xml</file> > </files> > </p:input> > <p:output name="data" id="zip"/> > </p:processor> > > <p:processor name="oxf:http-serializer"> > <p:input name="config"> > <config> > <content-type>application/zip</content-type> > <header> > <name>Content-Disposition</name> > <value>attachment; filename=my.zip</value> > </header> > </config> > </p:input> > <p:input name="data" href="#zip"/> > </p:processor> > > </p:config> > > --- On Thu, 10/15/09, Alessandro Vernet <[hidden email]> wrote: > > From: Alessandro Vernet <[hidden email]> > Subject: [ops-users] Re: Re: Re: oxf:zip problems > To: [hidden email] > Date: Thursday, October 15, 2009, 11:38 PM > > Mats, > > On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <[hidden email]> wrote: > > Below the exception. > > Thanks. Looking at the code, it is as if the ZipProcessor didn't find > any <file> element in the config, but I see you have one the "data" > input, and it looks fine. Could you share with us a simple "app" that > reproduces the problem and that I could run here? > > > I also would like to know what is the function of the "size" attribute on the file tag. > > The "size" and "dataTime" attributes are only used by the > UnzipProcessor. Yes, the documentation was confusion or even > incorrect; I updated it for this: > > http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip > > Alex > -- > Orbeon Forms - Web forms, open-source, for the Enterprise > Orbeon's Blog: http://www.orbeon.com/blog/ > My Twitter: http://twitter.com/avernet > > -----Inline Attachment Follows----- > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > > -----Inline Attachment Follows----- > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > > -----Inline Attachment Follows----- > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Mats,
My pleasure, and thank you for confirming this works for you. Alex On Saturday, October 31, 2009, Mats Eklund <[hidden email]> wrote: > Excellent, thanks it works now! /Mats > > --- On Sat, 10/24/09, Alessandro Vernet <[hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>> wrote: > > From: Alessandro Vernet <[hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>> > Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: oxf:zip problems > To: [hidden email] <javascript:_e({}, 'cvml', '[hidden email]');> > Date: Saturday, October 24, 2009, 2:19 AM > > Mats, > > Thank you for the easily reproducible test case! This is now fixed and > will be in the next nightly build. You'll let me know if it works for > you. > > http://forge.ow2.org/tracker/index.php?func=detail&aid=314413&group_id=168&atid=350207 > > Alex > > On Thu, Oct 22, 2009 at 12:18 PM, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote: >> >> Alex, >> >> I have attached a simple application that reproduces the error. >> >> Thanks for your help! >> >> Mats >> >> --- On Mon, 10/19/09, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote: >> >> From: Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> >> Subject: [ops-users] Re: Re: Re: Re: Re: oxf:zip problems >> To: [hidden email] <http://mc/compose?to=ops-users@...> >> Date: Monday, October 19, 2009, 9:22 AM >> >> Any progress on this one? >> >> --- On Fri, 10/16/09, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote: >> >> From: Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> >> Subject: [ops-users] Re: Re: Re: Re: oxf:zip problems >> To: [hidden email] <http://mc/compose?to=ops-users@...> >> Date: Friday, October 16, 2009, 11:30 AM >> >> Alex, >> >> thanks for clarifying the "size" attribute etc. >> >> Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By > the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them? >> >> page-flow.xml >> ---------------------------------------- >> <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors"> >> <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/> >> </config> >> >> spreadsheet.xlsx.xpl >> ---------------------------------------- >> <p:config >> xmlns:p="http://www.orbeon.com/oxf/pipeline" >> xmlns:oxf="http://www.orbeon.com/oxf/processors"> >> >> <p:processor name="oxf:zip"> >> <p:input name="data"> >> <files> >> <file name="file1.txt">page-flow.xml</file> >> </files> >> </p:input> >> <p:output name="data" id="zip"/> >> </p:processor> >> >> <p:processor name="oxf:http-serializer"> >> <p:input name="config"> >> <config> >> <content-type>application/zip</content-type> >> <header> >> <name>Content-Disposition</name> >> <value>attachment; filename=my.zip</value> >> </header> >> </config> >> </p:input> >> > <p:input name="data" href="#zip"/> >> </p:processor> >> >> </p:config> >> >> --- On Thu, 10/15/09, Alessandro Vernet <[hidden email] <http://mc/compose?to=avernet@...>> wrote: >> >> From: Alessandro Vernet <[hidden email] <http://mc/compose?to=avernet@...>> >> Subject: [ops-users] Re: Re: Re: oxf:zip problems >> To: [hidden email] <http://mc/compose?to=ops-users@...> >> Date: Thursday, October 15, 2009, 11:38 PM >> >> Mats, >> >> On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote: >> > Below the exception. >> >> Thanks. Looking at the code, it is as if the > ZipProcessor didn't find >> any <file> element in the config, but I see you have one the > Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |