[jboss-jira] [JBoss JIRA] (WFCORE-4841) Logging subsystem capabilities do not work correctly

James Perkins (Jira) issues at jboss.org
Tue Feb 11 18:15:00 EST 2020


    [ https://issues.redhat.com/browse/WFCORE-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969360#comment-13969360 ] 

James Perkins commented on WFCORE-4841:
---------------------------------------

[~brian.stansberry] yes. I was going to file a JIRA for that part. It seemed weird when I was debugging it. I just wanted to finish this for now, then I'll write a simple test example that fails.

> Logging subsystem capabilities do not work correctly
> ----------------------------------------------------
>
>                 Key: WFCORE-4841
>                 URL: https://issues.redhat.com/browse/WFCORE-4841
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Logging
>            Reporter: James Perkins
>            Assignee: James Perkins
>            Priority: Major
>
> With WFCORE-3337 the logging subsystem introduced capabilities. While looking at WFCORE-966 I determined the capabilities were not correctly implemented. In some cases invalid capabilities are allowed to be add in admin-only mode. In other cases they're allowed to be assigned even when invalid and running a full server.
> The tests are also incorrect. They seemed correct as they checked for failed operations. However the result of the failure was not checked and some of the operations were failing, but not for the reasons expected. This was all a poor design on my part.
> New tests need to be added. One thing I did notice was these tests don't seem to work in a static {{KernelServices}} test controller. For some reason when running against a logging profile the capability recorder seems to be empty. However using a manual mode test works fine. I believe this is just a flaw in the unit test controller. This will require the tests to be moved to manual mode tests so they can be test against an admin-only booted server.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list