You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by de...@m1o.mxsi.com on 2004/03/08 21:17:22 UTC

Windows only defect using form tag with enctype set

Defect:

The following defect occurs ONLY on the MS windows platform,
it does NOT occur on the linux platform.
Both platforms were setup with tomcat 4.1.29, and cocoon 2.1.4.

On the windows platorm, a woody form will lose it's data when
the enctype="multipart/form-data" is specified in the form
template, for example:

<wt:form-template action="#{$continuation/id}.kont"
method="POST" enctype="multipart/form-data">

This enctype is required for proper operation of the upload
widget.

To see the problem for yourself, on a windows based server, simply add
enctype="multipart/form-data"
to the form tag (see above) in
~/cocoon/samples/woody/forms/form2_template.xml
and then run the XML Binding sample.

In the test case, (very similar to the XML Binding demo), a
flowscript which uses the showForm() function does not exit.

It is believed that the showForm() call in the flowscript
never exits because validation always fails because we have a required field
(which is filled in with valid data by the user) and that field is null
because the widget is not being updated with the request data because of
this defect when enctype="multipart/form-data".

Again, this problem only occurs on the MS Windows platform
and works fine on a linux platform. The problem does not appear to be
browser dependent.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org