[jira] Created: (SLING-647) Configuration error when reconfiguring existing LogWriter

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SLING-647) Configuration error when reconfiguring existing LogWriter

Robert Munteanu (Jira)
Configuration error when reconfiguring existing LogWriter
---------------------------------------------------------

                 Key: SLING-647
                 URL: https://issues.apache.org/jira/browse/SLING-647
             Project: Sling
          Issue Type: Bug
          Components: Commons Log
    Affects Versions: Commons Log 2.0.2
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: Commons Log 2.0.4


When a log writer is configured it checks, whether there is no other writer configuration for the same destinaiton file. If so, the configuration is ignored. This check is done by comparing the configuration PID of the existing writer with the configuration to be changed. If the PIDs match, everything is fine and the existing writer is to be reconfigured. Otherwise the configuration is rejected and ignored.

Currently this check is wrong and rejects configurations if the PID is equal to the current writer configuration, thus actually preventing writer reconfiguration.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (SLING-647) Configuration error when reconfiguring existing LogWriter

Robert Munteanu (Jira)

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

Felix Meschberger closed SLING-647.
-----------------------------------

    Resolution: Fixed

Fixed in Rev. 692350

> Configuration error when reconfiguring existing LogWriter
> ---------------------------------------------------------
>
>                 Key: SLING-647
>                 URL: https://issues.apache.org/jira/browse/SLING-647
>             Project: Sling
>          Issue Type: Bug
>          Components: Commons Log
>    Affects Versions: Commons Log 2.0.2
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Commons Log 2.0.4
>
>
> When a log writer is configured it checks, whether there is no other writer configuration for the same destinaiton file. If so, the configuration is ignored. This check is done by comparing the configuration PID of the existing writer with the configuration to be changed. If the PIDs match, everything is fine and the existing writer is to be reconfigured. Otherwise the configuration is rejected and ignored.
> Currently this check is wrong and rejects configurations if the PID is equal to the current writer configuration, thus actually preventing writer reconfiguration.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.