cnsgithub created MYFACES-4279:
----------------------------------

             Summary: inputText: lack of user input validation (maxlength)
                 Key: MYFACES-4279
                 URL: https://issues.apache.org/jira/browse/MYFACES-4279
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.3.2
            Reporter: cnsgithub


h2. Expected Behaviour

Server side validation should be performed as well.
h2. Actual Behaviour

{{h:inputText maxlength}} is validated on client side only. However, client 
side validation may be bypassed easily.
h2. Steps to reproduce

I created a small github project to reproduce this behaviour: 
[https://github.com/cnsgithub/mojarra-ajax/tree/myfaces] (branch myfaces)
 To reproduce:
 - {{git clone [https://github.com/cnsgithub/mojarra-ajax]}}
 - {{git checkout myfaces}}
 - run {{mvn clean package jetty:run}}
 - after the server has started, open 
[http://localhost:8080/maxlength.xhtml|http://localhost:8080/index.xhtml]
 - Enter some characters and press the _Submit_ button. Everything is fine.
 - Press the _Hack_ button. 100 characters are written to the model.

This issue was first found in PrimeFaces, see 
https://github.com/primefaces/primefaces/issues/4420.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to