You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/25 21:35:26 UTC

[jira] [Commented] (SLING-6482) Commons Log WebConsole: Exception when creating logger without log file

    [ https://issues.apache.org/jira/browse/SLING-6482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838626#comment-15838626 ] 

ASF GitHub Bot commented on SLING-6482:
---------------------------------------

GitHub user bjoernweide opened a pull request:

    https://github.com/apache/sling/pull/198

    SLING-6482: Fix Exception in Commons Log WebConsole

    SLING-6482: Fix StringIndexOutOfBoundsException in Commons Log WebConsole by adding a length check for the path. 
    https://issues.apache.org/jira/browse/SLING-6482

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bjoernweide/sling SLING-6482-fix-webconsole-stringindexoutofboundsexception

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/198.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #198
    
----
commit 39fb9e6a8804a7870550a5b04c6dc58365acb1a3
Author: Bjoern Weide <bj...@netcentric.biz>
Date:   2017-01-25T21:29:21Z

    SLING-6482: Fix StringIndexOutOfBoundsException in Commons Log WebConsole by adding a length check for the path.

----


> Commons Log WebConsole: Exception when creating logger without log file
> -----------------------------------------------------------------------
>
>                 Key: SLING-6482
>                 URL: https://issues.apache.org/jira/browse/SLING-6482
>             Project: Sling
>          Issue Type: Bug
>          Components: Commons
>    Affects Versions: Commons Log 5.0.0
>            Reporter: Bjoern Weide
>            Priority: Minor
>             Fix For: Commons Log 5.0.2
>
>
> When creating a new logger via WebConsole specifying an empty logfile it causes an StringIndexOutOfBoundsException when (re-)opening the WebConsole.
> {noformat}
> 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)
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)