Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3088

N-length empty strings not treated as *null* by validwhen

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.8
    • Fix Version/s: 1.3.10, 1.4.0
    • Component/s: Core
    • Labels:
      None

      Description

      Hello,

      As for validator required/requiredif , the continuous space string (ex. " ") is jugded blank field.

      But 'null' of validwhen shows only null or length 0 String .

      For ex,'this == null' is not hit the continuous space string (ex. " ").

      I think it should be same behavior because 'Validator Guide' described as follows:

      > requiredif - field dependant validator
      >Deprecated, use validwhen.

      Now, requiredif cannot be replaced validwhen.

        Attachments

          Activity

            People

            • Assignee:
              pbenedict Paul Benedict
              Reporter:
              ikezawa Masakazu Ikezawa
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: