Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6482

Commons Log WebConsole: Exception when creating logger with an empty log file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Commons Log 5.0.0
    • Commons Log 5.1.0
    • Commons
    • None

    Description

      When creating a new logger via WebConsole specifying an empty logfile it causes an StringIndexOutOfBoundsException when (re-)opening the WebConsole.

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1931)
      	at org.apache.sling.commons.log.logback.internal.SlingLogPanel.getPath(SlingLogPanel.java:791)
      ...
      

      Attachments

        1. SLING-6482-v01.patch
          2 kB
          Konrad Windszus

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              bjoernweide Bjoern Weide
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: