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

DefaultConfiguration swallows caused exception if webwork.properties is malformed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • WW 2.2.2
    • 2.0.0
    • XML Configuration
    • None

    Description

      See the WW user forum
      http://forums.opensymphony.com/thread.jspa?messageID=52690&#52690

      public DefaultConfiguration() {
      // Create default implementations
      // Use default properties and webwork.properties
      ArrayList list = new ArrayList();

      try

      { list.add(new PropertiesConfiguration("webwork")); }

      catch (Exception e)

      { log.warn("Could not find webwork.properties"); }

      In the log.war we should at least have e as the cause as 2nd parameter

      Change it to:
      log.warn("Could not find webwork.properties", e);

      And maybe the text "Could not find webwork.properties" should be "Could not find or error in webwork.properties"

      Attachments

        Activity

          People

            rainerh Rainer Hermanns
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: