myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson (JIRA)" <>
Subject [jira] Commented: (TRINIDAD-788) stopp uploading empty files
Date Mon, 29 Oct 2007 15:46:50 GMT


Andrew Robinson commented on TRINIDAD-788:

0 byte files are very valid, especially on a unix based platform. There are many times that
a file by its existence implies meaning. Take for example "~/.config/xserver-xgl/disable",
if this file is present, xgl mode of the linux X server is disabled for that user. The file
should be empty. This is just one small example.

If an application doesn't want to support 0 byte files, it should use a validator or actionListener
method to check the length.

This is different from a blank string in EditableValueHolder. In this instance, the user intentionally
uploaded a file with 0 bytes.

I strongly recommend reverting this fix.

> stopp uploading empty files
> ---------------------------
>                 Key: TRINIDAD-788
>                 URL:
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>    Affects Versions: 1.0.3-core
>            Reporter: Matthias We├čendorf
>            Assignee: Matthias We├čendorf
>            Priority: Minor
>             Fix For: 1.0.4-core
> JSF Spec answers this question:
> "Is an empty String (length 0) equal to "no String" (ie. null)?"
> with yes
> (see required on EditableValueHolder interface)
> the inputFile component should also handle empty files (0 bytes) an no file

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message