Problems with upload (and other minor issues) with nightlybuild

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with upload (and other minor issues) with nightlybuild

Chris Bailey-2
Hi Orbeon team,

I've just upgraded to a nightly build 3.7.0alpha.200808202311 and now I
seem to be unable to upload files.

Whenever I try to upload a file (using a submission replace="all") I get
redirected to http://localhost:8080/eels/xforms-renderer and the page
source simply contains:
<?xml version="1.0" encoding="utf-8"?><null
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

The action page which handles the file being uploaded isn't being
accessed and I can't see any error messages in the log files.
Any ideas?

I should note that my upgrade process involves comparing directories and
manually merging the changes but I can't see any files that I've missed.

Also I have noticed with this version, that if I use the
xforms-instance-inspector and choose to evaluate an xpath expression, I
get an error dialog with the client-side code:
C is null
http://localhost:8080/eels/xforms-server/xforms-yuicalendar-min.js
Line number: 89

I'm also noticing that WEB-INF/resources/xforms-server is being created
(with yuicalendar files in) when I run orbeon which never happened before.

--
Chris Bailey
Senior Technical Researcher
Institute for Learning and Research Technology
University of Bristol
[hidden email]


--
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
Reply | Threaded
Open this post in threaded view
|

Variables in Filenames Revisited

Betty Harvey
I am still struggling with getting the variables in filesname to work.
I know the variable is being set because I am outputting it on the
form to make sure it is set.  Here is my variable and submission
statements:

<xxforms:variable name="id" select="//TransferRequestNumber"/>

<xforms:submission id="save-submission"
        ref="instance('TransferRequests-instance')"
resource="http://localhost:8080/exist/rest/db/home/era/TransferRequests/TR{$id}.xml"
        method="put" replace="none"/>

I installed a separate version of eXist so I could see the interaction
with the database better.

Is there something I am missing?

TIA!

Betty

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
[hidden email]                    | Washington,DC SGML/XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Help Mac fight MLD (http://www.macsteam.org)
Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx)


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Variables in Filenames Revisited

Betty Harvey
Nevermind - I switched 'xxforms' to 'xforms' - it is working - yeah!!!

Betty

<quote who="Betty Harvey">

> I am still struggling with getting the variables in filesname to work.
> I know the variable is being set because I am outputting it on the
> form to make sure it is set.  Here is my variable and submission
> statements:
>
> <xxforms:variable name="id" select="//TransferRequestNumber"/>
>
> <xforms:submission id="save-submission"
>         ref="instance('TransferRequests-instance')"
> resource="http://localhost:8080/exist/rest/db/home/era/TransferRequests/TR{$id}.xml"
>         method="put" replace="none"/>
>
> I installed a separate version of eXist so I could see the interaction
> with the database better.
>
> Is there something I am missing?
>
> TIA!
>
> Betty
>
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
> Electronic Commerce Connection, Inc. |
> [hidden email]                    | Washington,DC SGML/XML Users Grp
> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> Help Mac fight MLD (http://www.macsteam.org)
> Mark your calendar for October 28th
> (http://www.macsteam.org/BullROast.aspx)
>

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
[hidden email]                    | Washington,DC SGML/XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Help Mac fight MLD (http://www.macsteam.org)
Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx)


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Variables in Filenames Revisited

Erik Bruchez
Administrator
It should be xxforms:variable as it is an extension, but either way  
should work.

-Erik

On Aug 22, 2008, at 8:31 AM, Betty Harvey wrote:

> Nevermind - I switched 'xxforms' to 'xforms' - it is working - yeah!!!
>
> Betty
>
> <quote who="Betty Harvey">
>> I am still struggling with getting the variables in filesname to  
>> work.
>> I know the variable is being set because I am outputting it on the
>> form to make sure it is set.  Here is my variable and submission
>> statements:
>>
>> <xxforms:variable name="id" select="//TransferRequestNumber"/>
>>
>> <xforms:submission id="save-submission"
>>        ref="instance('TransferRequests-instance')"
>> resource="http://localhost:8080/exist/rest/db/home/era/TransferRequests/TR 
>> {$id}.xml"
>>        method="put" replace="none"/>
>>
>> I installed a separate version of eXist so I could see the  
>> interaction
>> with the database better.
>>
>> Is there something I am missing?
>>
>> TIA!
>>
>> Betty
>>
>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
>> Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
>> Electronic Commerce Connection, Inc. |
>> [hidden email]                    | Washington,DC SGML/XML Users  
>> Grp
>> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
>> Help Mac fight MLD (http://www.macsteam.org)
>> Mark your calendar for October 28th
>> (http://www.macsteam.org/BullROast.aspx)
>>
>
>
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
> Electronic Commerce Connection, Inc. |
> [hidden email]                    | Washington,DC SGML/XML Users  
> Grp
> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> Help Mac fight MLD (http://www.macsteam.org)
> Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx 
> )
>
> --
> 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 for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Problems with upload (and other minor issues) with nightlybuild

Alessandro Vernet
Administrator
In reply to this post by Chris Bailey-2
Chris,

On Fri, Aug 22, 2008 at 4:49 AM, Chris Bailey <[hidden email]>
wrote:
> Whenever I try to upload a file (using a submission replace="all") I get
> redirected to http://localhost:8080/eels/xforms-renderer and the page source
> simply contains:
> <?xml version="1.0" encoding="utf-8"?><null
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

I did a quick test of upload with replace="all" by updating the
view.xhtml of the xforms-upload example as attached. Everything works as
expected (see the content of the "input" instance after the upload with
the XForms inspector). Do you have a simple test case you can share us
and that we can use to reproduce this?

> Also I have noticed with this version, that if I use the
> xforms-instance-inspector and choose to evaluate an xpath expression, I get
> an error dialog with the client-side code:
> C is null
> http://localhost:8080/eels/xforms-server/xforms-yuicalendar-min.js
> Line number: 89

Now that you mention the file name, I see this is caused by the use of
the minimal resources. For now, to get around this, set
oxf.xforms.minimal-resources to false in your properties.xml. I created
a bug to track this one:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=310936&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
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

view.xhtml (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problems with upload (and other minor issues) with nightlybuild

Alessandro Vernet
Administrator
On Mon, Aug 25, 2008 at 12:32 AM, Alessandro Vernet <[hidden email]>
wrote:
> Now that you mention the file name, I see this is caused by the use of the
> minimal resources. For now, to get around this, set
> oxf.xforms.minimal-resources to false in your properties.xml. I created a
> bug to track this one:
>
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=310936&group_id=168&atid=350207

False alarm: XPath evaluation in the XForms inspector is working fine. I
suspect I had this problem because I forgot to regenerate the minimal
resource in my test environment, and they might have been out of sync.
So I closed this bug.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problems with upload (and other minor issues) with nightlybuild

Chris Bailey-2
In reply to this post by Alessandro Vernet
I still get the same problem with replace="all" (now using beta1).

It's probably worth mentioning that I'm using the JSP deployment method
with Orbeon Forms.

Now the good news - I managed to get uploads working using
replace="instance" :)

The bad news - there appears to be a bug in the upload mechanism. It
appears that Orbeon Forms assumes that the file-upload instance is the
first one it comes across in the <xforms:model>. If you take your
view.xhtml example and swap instances over the example stops working.

I would be very keen to know if anyone else has got uploads working
using replace="all" in a jsp-deployment environment with a recent build
(one from the last week).

Chris.

Alessandro Vernet wrote:

> Chris,
>
> On Fri, Aug 22, 2008 at 4:49 AM, Chris Bailey <[hidden email]>
> wrote:
>> Whenever I try to upload a file (using a submission replace="all") I get
>> redirected to http://localhost:8080/eels/xforms-renderer and the page
>> source
>> simply contains:
>> <?xml version="1.0" encoding="utf-8"?><null
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
>
> I did a quick test of upload with replace="all" by updating the
> view.xhtml of the xforms-upload example as attached. Everything works as
> expected (see the content of the "input" instance after the upload with
> the XForms inspector). Do you have a simple test case you can share us
> and that we can use to reproduce this?
>
>> Also I have noticed with this version, that if I use the
>> xforms-instance-inspector and choose to evaluate an xpath expression,
>> I get
>> an error dialog with the client-side code:
>> C is null
>> http://localhost:8080/eels/xforms-server/xforms-yuicalendar-min.js
>> Line number: 89
>
> Now that you mention the file name, I see this is caused by the use of
> the minimal resources. For now, to get around this, set
> oxf.xforms.minimal-resources to false in your properties.xml. I created
> a bug to track this one:
>
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=310936&group_id=168&atid=350207 
>
>
> Alex
>
--
Chris Bailey
Senior Technical Researcher
Institute for Learning and Research Technology
University of Bristol
[hidden email]


--
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

file_upload.xhtml (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Problems with upload (and other minor issues) with nightlybuild

Alessandro Vernet
Administrator
Chris,

On Wed, Aug 27, 2008 at 5:29 AM, Chris Bailey <[hidden email]>
wrote:
> The bad news - there appears to be a bug in the upload mechanism. It appears
> that Orbeon Forms assumes that the file-upload instance is the first one it
> comes across in the <xforms:model>. If you take your view.xhtml example and
> swap instances over the example stops working.

I tried your code by putting it inside the Orbeon Forms resources, and I
had to change a couple of things to make it work. in particular the
first instance is submitted because you had no ref="..." on the
<xforms:submission>. Adding ref="instance('files-instance')" solves the
problem.

Then, uploads with replace="all" were not working anymore in separate
deployment because of a recent change. Maybe this is also the problem
that you have been hitting. This will be fixed in the next nightly
build. So when you get a chance, it would be interesting if you could
get the next nightly build and test this again.

Also, I see you use an <xforms:instance id="input"
src="input:instance"/>. This won't work in separate deployment and AFAIK
has never worked. But your JSP will received the XML instance with the
reference to the file on disk. You will just need to extract it from the
POST "yourself". You can have a look at
xforms-jsp/flickr-search/service-search.jsp which does this.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
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