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

LogonAction does not check errors in appropriate place

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Build
    • 1.2 Family
    • Example Applications
    • None
    • Operating System: other
      Platform: Other
    • 31658

    Description

      The LogonAction (org.apache.struts.webapp.example) of the struts-mailreader
      (example) application should be checking the ActionErrors returned from the
      getUser() before it calls SaveUser() and not after. This results in an
      unexpected exception being generated; instead of forwarding back to the input
      page for display of the 'error.password.mismatch' message. The fix is to move
      the call to SaveUser() after the errors check.

      Attachments

        Activity

          People

            Unassigned Unassigned
            billsigg@bellsouth.net Bill Siggelkow
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: