You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Matt Skinner (Created) (JIRA)" <ji...@apache.org> on 2011/12/11 22:56:40 UTC
[jira] [Created] (CLK-782) form.copyTo does not capture file upload
field.
form.copyTo does not capture file upload field.
-----------------------------------------------
Key: CLK-782
URL: https://issues.apache.org/jira/browse/CLK-782
Project: Click
Issue Type: Bug
Affects Versions: 2.3.0
Environment: Tomcat, Fedora, Java 1.7
Reporter: Matt Skinner
When attempting to fetch the FileField via a Map and Form's copyTo method from the form object I am getting null. Getting the field via getField() with the passed FileField name works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CLK-782) form.copyTo does not capture file
upload field.
Posted by "Naoki Takezoe (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208199#comment-13208199 ]
Naoki Takezoe commented on CLK-782:
-----------------------------------
I think FileField#getValueObject() should return the FileItem and also setValueObject() should allow to take it.
Then Form#copyTo() and copyFrom() will work for the FileField as the FileItem property.
> form.copyTo does not capture file upload field.
> -----------------------------------------------
>
> Key: CLK-782
> URL: https://issues.apache.org/jira/browse/CLK-782
> Project: Click
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: Tomcat, Fedora, Java 1.7
> Reporter: Matt Skinner
> Labels: Form
> Attachments: fileUploadSample.java, fileUploadSample.java
>
>
> When attempting to fetch the FileField via a Map and Form's copyTo method from the form object I am getting null. Getting the field via getField() with the passed FileField name works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CLK-782) form.copyTo does not capture file
upload field.
Posted by "Naoki Takezoe (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naoki Takezoe resolved CLK-782.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.3.1
Thanks Bob, I fixed FileField#getValueObject() and modified testcase in the trunk.
> form.copyTo does not capture file upload field.
> -----------------------------------------------
>
> Key: CLK-782
> URL: https://issues.apache.org/jira/browse/CLK-782
> Project: Click
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: Tomcat, Fedora, Java 1.7
> Reporter: Matt Skinner
> Assignee: Naoki Takezoe
> Labels: Form
> Fix For: 2.3.1
>
> Attachments: fileUploadSample.java, fileUploadSample.java
>
>
> When attempting to fetch the FileField via a Map and Form's copyTo method from the form object I am getting null. Getting the field via getField() with the passed FileField name works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CLK-782) form.copyTo does not capture file upload
field.
Posted by "Matt Skinner (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Skinner updated CLK-782:
-----------------------------
Attachment: fileUploadSample.java
Updated version with the actual error.
> form.copyTo does not capture file upload field.
> -----------------------------------------------
>
> Key: CLK-782
> URL: https://issues.apache.org/jira/browse/CLK-782
> Project: Click
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: Tomcat, Fedora, Java 1.7
> Reporter: Matt Skinner
> Labels: Form
> Attachments: fileUploadSample.java, fileUploadSample.java
>
>
> When attempting to fetch the FileField via a Map and Form's copyTo method from the form object I am getting null. Getting the field via getField() with the passed FileField name works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CLK-782) form.copyTo does not capture file
upload field.
Posted by "Bob Schellink (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246053#comment-13246053 ]
Bob Schellink commented on CLK-782:
-----------------------------------
Yep, I don't see any harm in overriding getValueObject and returning the FileItem.
> form.copyTo does not capture file upload field.
> -----------------------------------------------
>
> Key: CLK-782
> URL: https://issues.apache.org/jira/browse/CLK-782
> Project: Click
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: Tomcat, Fedora, Java 1.7
> Reporter: Matt Skinner
> Assignee: Naoki Takezoe
> Labels: Form
> Attachments: fileUploadSample.java, fileUploadSample.java
>
>
> When attempting to fetch the FileField via a Map and Form's copyTo method from the form object I am getting null. Getting the field via getField() with the passed FileField name works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CLK-782) form.copyTo does not capture file
upload field.
Posted by "Naoki Takezoe (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naoki Takezoe reassigned CLK-782:
---------------------------------
Assignee: Naoki Takezoe
> form.copyTo does not capture file upload field.
> -----------------------------------------------
>
> Key: CLK-782
> URL: https://issues.apache.org/jira/browse/CLK-782
> Project: Click
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: Tomcat, Fedora, Java 1.7
> Reporter: Matt Skinner
> Assignee: Naoki Takezoe
> Labels: Form
> Attachments: fileUploadSample.java, fileUploadSample.java
>
>
> When attempting to fetch the FileField via a Map and Form's copyTo method from the form object I am getting null. Getting the field via getField() with the passed FileField name works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CLK-782) form.copyTo does not capture file upload
field.
Posted by "Matt Skinner (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Skinner updated CLK-782:
-----------------------------
Attachment: fileUploadSample.java
Added sample file for an more information.
> form.copyTo does not capture file upload field.
> -----------------------------------------------
>
> Key: CLK-782
> URL: https://issues.apache.org/jira/browse/CLK-782
> Project: Click
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: Tomcat, Fedora, Java 1.7
> Reporter: Matt Skinner
> Labels: Form
> Attachments: fileUploadSample.java
>
>
> When attempting to fetch the FileField via a Map and Form's copyTo method from the form object I am getting null. Getting the field via getField() with the passed FileField name works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira