Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3659

info.magnolia.cms.servlets.MgnlServletContextListener#initServername should not ignore UnknownHostException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • 4.4.3
    • core
    • None

    Description

      If it does, it returns null, which results in a NullPointerException when attempting to store that value in the properties just a few lines below. We should either make sure we don't try to push null in there... or simply let the exception bubble up, because this doesn't sound like a sane network configuration...

      Additionally, log.error(e.getMessage()); is not explicit, since it just logs the hostname.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD