[
https://issues.apache.org/jira/browse/SLING-6577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra reassigned SLING-6577:
--------------------------------------
Assignee: Chetan Mehrotra
> StringIndexOutOfBoundsException in Sling Log Web Console when creating new
> logger with absolute file name
> ---------------------------------------------------------------------------------------------------------
>
> Key: SLING-6577
> URL: https://issues.apache.org/jira/browse/SLING-6577
> Project: Sling
> Issue Type: Bug
> Components: Commons
> Affects Versions: Commons Log 5.0.0
> Reporter: Konrad Windszus
> Assignee: Chetan Mehrotra
> Fix For: Commons Log 5.0.4
>
>
> After adding a new logger via the web console exposed at
> {{/system/console/slinglog}} with an absolute filename (one starting with
> "/"), the following exception is thrown
> {code}
> 28.02.2017 16:47:31.300 *ERROR* [qtp455076072-280]
> org.apache.felix.http.jetty Exception while processing request to
> /system/console/slinglog (java.lang.StringIndexOutOfBoundsException: String
> index out of range: -42)
> java.lang.StringIndexOutOfBoundsException: String index out of range: -42
> at java.lang.String.substring(String.java:1931)
> at
> org.apache.sling.commons.log.logback.internal.SlingLogPanel.getPath(SlingLogPanel.java:791)
> at
> org.apache.sling.commons.log.logback.internal.SlingLogPanel.appendOsgiConfiguredLoggerData(SlingLogPanel.java:221)
> at
> org.apache.sling.commons.log.logback.internal.SlingLogPanel.render(SlingLogPanel.java:110)
> at
> org.apache.sling.commons.log.webconsole.internal.LogWebConsolePlugin.renderContent(LogWebConsolePlugin.java:79)
> at
> org.apache.felix.webconsole.AbstractWebConsolePlugin.doGet(AbstractWebConsolePlugin.java:194)
> {code}
> This is related to the exception being mentioned in SLING-6482.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)