[jboss-jira] [JBoss JIRA] Updated: (AS7-1367) size-rotating-file-handler rotate-size doens't properly handle add/update with management API

Jason Greene (JIRA) jira-events at lists.jboss.org
Thu Sep 22 23:19:46 EDT 2011


     [ https://issues.jboss.org/browse/AS7-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Greene updated AS7-1367:
------------------------------

    Fix Version/s: 7.1.0.Beta1
                       (was: 7.1.0.Alpha1)


> size-rotating-file-handler rotate-size doens't properly handle add/update with management API
> ---------------------------------------------------------------------------------------------
>
>                 Key: AS7-1367
>                 URL: https://issues.jboss.org/browse/AS7-1367
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 7.0.0.Final
>            Reporter: Stan Silvert
>            Assignee: Stan Silvert
>             Fix For: 7.1.0.Beta1
>
>
> From the management API, rotate-size doesn't handle the one-character suffixes for (b)yte, (k)ilobyte, (m)egabyte, etc.  
> So for instance, if you say:
> /subsystem=logging/size-rotating-file-handler=SIZE:update-properties(rotate-size=5m)
> You will get an error because it will try to convert that to a long.  If you enter a valid long without a suffix, then the value will be corrupted when the server is restarted.
> The solution is to keep this attribute as a String in the management model and only parse out the suffix when you need to convert to a long for the runtime.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list