You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2017/02/28 15:49:45 UTC

[jira] [Updated] (SLING-6577) StringIndexOutOfBoundsException in Sling Log Web Console when storing new logger with absolute file name

     [ https://issues.apache.org/jira/browse/SLING-6577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated SLING-6577:
-----------------------------------
    Fix Version/s: Commons Log 5.0.2

> StringIndexOutOfBoundsException in Sling Log Web Console when storing 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
>             Fix For: Commons Log 5.0.2
>
>
> 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.3.15#6346)