Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4566

Form.getValidators does not respect validateAnnotatedMethodOnly flag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.16
    • 2.5
    • Core Actions
    • None
    • Patch

    Description

      WW-4139 removed method name from getValidators call. While this works fine for a case mentioned in that ticket it fails to account for a case when
      dynamicMethodCalls and validateAnnotatedMethodOnly are used. Without
      method name actionValidatorManager.getValidators returns all validators defined for a given field.

      Expected behavior for dynamicMethodCalls with validateAnnotatedMethodOnly case is to return validators for a given field defined at the method level.

      Patch:
      https://github.com/apache/struts/pull/57

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lukaszracon Lukasz Racon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: