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

Failed validation returns Action.NONE instead of Action.INPUT

    Details

      Description

      After upgrading from 2.2.1.1 to 2.2.3 input validation fails (i.e. invalid input values), and returns Action.NONE instead of Action.INPUT. Log (TRACE-level) doesn't show anything interesting. Completely removing result-definition does not result in "result not defined-error". Downgrading to 2.2.1.1 fixes the problem again.

      Action/Controller extends ActionSupport and implements ModelDriven<Object>. Results are defined using annotations. After debugging the Struts2-code it seems as if result is null at line 295 in RestActionInvocation.java.

        Activity

        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Could you check against the latest build [1] ?

        [1] https://builds.apache.org/view/S-Z/view/Struts/job/Struts2/lastStableBuild/

        Show
        lukaszlenart Lukasz Lenart added a comment - Could you check against the latest build [1] ? [1] https://builds.apache.org/view/S-Z/view/Struts/job/Struts2/lastStableBuild/
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        I need some more details, an example application would be nice

        Show
        lukaszlenart Lukasz Lenart added a comment - I need some more details, an example application would be nice
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Ping!

        Show
        lukaszlenart Lukasz Lenart added a comment - Ping!
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Marking as already resolved, if not, feel free to re-open and providing more info

        Show
        lukaszlenart Lukasz Lenart added a comment - Marking as already resolved, if not, feel free to re-open and providing more info

          People

          • Assignee:
            lukaszlenart Lukasz Lenart
            Reporter:
            christoe Christoffer Enqvist
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development