Tapestry
  1. Tapestry
  2. TAPESTRY-197

Leading & trailing spaces not trimmed from ValidField

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0
    • Fix Version/s: 4.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Operating System: Other
      Platform: All

      Description

      The contract for the IValidator interface states that the input parameter for
      toObject should already be trimmed on entry. This does not happen. I suspect
      that getParameter in RequestContext should be modified to trim the value. Also,
      what about getParameters?
      This bug causes problems with the numeric validators, string validators (eg,
      required, min. length), etc.

        Activity

        DWright created issue -
        Serge Knystautas made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 30312 22704
        Howard M. Lewis Ship made changes -
        Assignee Tapestry Developer List [ tapestry-dev@jakarta.apache.org ] Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Jesse Kuhnert made changes -
        Assignee Jesse Kuhnert [ jkuhnert ]
        Jesse Kuhnert made changes -
        Bugzilla Id 30312
        Priority Minor [ 4 ]
        Fix Version/s 4.1 [ 12310632 ]
        Jesse Kuhnert made changes -
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Mark Thomas made changes -
        Workflow jira [ 32699 ] Default workflow, editable Closed status [ 12567060 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567060 ] jira [ 12589801 ]

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            DWright
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development