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

Warn if an Action path string appears twice in configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.3.5
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 24099

    Description

      By copy and paste error, I had a path twice.

      Luckily the class for the second one wasn't available yet, so, eventually, it
      failed. But it took me a long time to figure out that this was the case because
      I looked at the first occurrence and there everything appeared to be fine.

      Suggestion: When parsing struts-config.xml, abort or at least warn in debug mode
      when a path is ambigous!

      The error I got, that didn't really lead me to the double problem was.
      HTTP Status 500 - No action instance for path /doubleString could be created

      type Status report

      message No action instance for path /doubleString could be created

      description The server encountered an internal error (No action instance for
      path /doubleString could be created) that prevented it from fulfilling this request.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hauser@acm.org Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: