Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4279

inputText: lack of user input validation (maxlength)

    XMLWordPrintableJSON

Details

    Description

      Expected Behaviour

      Server side validation should be performed as well.

      Actual Behaviour

      h:inputText maxlength is validated on client side only. However, client side validation may be bypassed easily.

      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:

      This issue was first found in PrimeFaces, see https://github.com/primefaces/primefaces/issues/4420. Other components may be affected as well.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cnsgithub cnsgithub
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m