Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-767

[ASF BZ 61253] tomcat-vault throws RuntimeExceptions that are eaten by tomcat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • None
    • None
    • tomcat
    • None
    • Hide

      1) Setup tomcat and tomcat-vault
      2) Configure vault and use a property substitution with a null vault block:

      ${VAULT::::password::}

      3) Start tomcat and observe that no error is thrown and that the substitution did not occur. An error should be thrown as it's defined here.

      Show
      1) Setup tomcat and tomcat-vault 2) Configure vault and use a property substitution with a null vault block: ${VAULT::::password::} 3) Start tomcat and observe that no error is thrown and that the substitution did not occur. An error should be thrown as it's defined here .

    Description

      Tomcat-vault throws a few IllegalArgumentExceptions, which are a subclass of RuntimeException and labeled as unchecked exceptions. This means that the methods throwing these exceptions aren't required to throw them...Since it doesn't throw the exceptions they propagate up to tomcat's Digester, which catches and ignores them.

      Examples of the exceptions are here and here is where the Digester in Tomcat ignores them.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-csutherl Coty Sutherland
              rhn-support-csutherl Coty Sutherland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: