[JBoss JIRA] (WFCORE-2682) Elytron token-realm attributes validations
by Martin Choma (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2682?page=com.atlassian.jira.plugi... ]
Martin Choma moved JBEAP-10380 to WFCORE-2682:
----------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-2682 (was: JBEAP-10380)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Security
(was: Security)
Affects Version/s: 3.0.0.Beta13
(was: 7.1.0.DR16)
> Elytron token-realm attributes validations
> ------------------------------------------
>
> Key: WFCORE-2682
> URL: https://issues.jboss.org/browse/WFCORE-2682
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Affects Versions: 3.0.0.Beta13
> Reporter: Martin Choma
>
> * I am able to set both {{key-store}} and {{public-key}} attributes. However based on model they should be alternatives and thus only one of them should be allowed.
> * Althought, {{key-store}} and {{certificate}} are configured as requires in model, validation does not work.
> Seems it is caused by WFCORE-2317.
> {code}
> "public-key" => {
> "type" => STRING,
> "description" => "A public key in PEM Format. During validation, if a public key is provided, signature will be verified based on the key you provided here.",
> "expressions-allowed" => true,
> "required" => false,
> "nillable" => true,
> "alternatives" => [
> "key-store",
> "certificate"
> ],
> "min-length" => 1L,
> "max-length" => 2147483647L
> },
> "key-store" => {
> "type" => STRING,
> "description" => "A key store from where the certificate with a public key should be loaded from.",
> "expressions-allowed" => false,
> "required" => false,
> "nillable" => true,
> "alternatives" => ["public-key"],
> "requires" => ["certificate"],
> "capability-reference" => "org.wildfly.security.key-store",
> "min-length" => 1L,
> "max-length" => 2147483647L
> },
> "certificate" => {
> "type" => STRING,
> "description" => "The name of the certificate with a public key to load from the key store.",
> "expressions-allowed" => true,
> "required" => false,
> "nillable" => true,
> "alternatives" => ["public-key"],
> "requires" => ["key-store"],
> "min-length" => 1L,
> "max-length" => 2147483647L
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (WFCORE-2656) DeploymentTestCase.testFilesystemScannerRegistration fails intermittently
by Chao Wang (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2656?page=com.atlassian.jira.plugi... ]
Chao Wang edited comment on WFCORE-2656 at 4/18/17 4:12 AM:
------------------------------------------------------------
I have also seen this test fails today with error:
{noformat}
Failed tests:
DeploymentTestCase.testFilesystemScannerRegistration:253->addDeploymentScanner:799->addDeploymentScanner:817 {
"outcome" => "failed",
"failure-description" => "WFLYCTL0436: Cannot register capability 'org.wildfly.management.deployment-scanner.dummy' at location '[
(\"subsystem\" => \"deployment-scanner\"),
(\"scanner\" => \"dummy\")
]' as it is already registered in context 'global' at location(s) '[[
(\"subsystem\" => \"deployment-scanner\"),
(\"scanner\" => \"dummy\")
]]'",
"rolled-back" => true
} expected:<[success]> but was:<[failed]>
{noformat}
But it fails constantly on my machine, Is this the same cause appeared on CI ?
Edit: [~ehugonnet] confirmed this on IRC. thanks
was (Author: soul2zimate):
I have also seen this test fails today with error:
{noformat}
Failed tests:
DeploymentTestCase.testFilesystemScannerRegistration:253->addDeploymentScanner:799->addDeploymentScanner:817 {
"outcome" => "failed",
"failure-description" => "WFLYCTL0436: Cannot register capability 'org.wildfly.management.deployment-scanner.dummy' at location '[
(\"subsystem\" => \"deployment-scanner\"),
(\"scanner\" => \"dummy\")
]' as it is already registered in context 'global' at location(s) '[[
(\"subsystem\" => \"deployment-scanner\"),
(\"scanner\" => \"dummy\")
]]'",
"rolled-back" => true
} expected:<[success]> but was:<[failed]>
{noformat}
But it fails constantly on my machine, Is this the same cause appeared on CI ?
> DeploymentTestCase.testFilesystemScannerRegistration fails intermittently
> -------------------------------------------------------------------------
>
> Key: WFCORE-2656
> URL: https://issues.jboss.org/browse/WFCORE-2656
> Project: WildFly Core
> Issue Type: Bug
> Components: Deployment Scanner, Domain Management
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
>
> https://ci.wildfly.org/project.html?projectId=WildFlyCore_PullRequest&tes...
> I fear this has something to do with the capability registry and nothing to do with the scanner itself. It started happening when I added a capability to the scanner so it could consume a capability for the path it references.
> The test does a quick add/remove/add of a scanner resource and it's the 2nd add that fails with a dupicate capability error. But the remove mean the dup is gone. It's intermittent so I fear some race, but there's nothing obvious.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (WFCORE-2656) DeploymentTestCase.testFilesystemScannerRegistration fails intermittently
by ehsavoie Hugonnet (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2656?page=com.atlassian.jira.plugi... ]
ehsavoie Hugonnet edited comment on WFCORE-2656 at 4/18/17 4:10 AM:
--------------------------------------------------------------------
[~brian.stansberry] you are correct I 'see' a rollback of the CapabilityRegistry after the 'failure' of the RT :
2017-04-18 09:43:01,668 TRACE [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) Executing "read-children-resources" []
2017-04-18 09:43:01,668 TRACE [org.jboss.threads.interrupt-handler] (MSC service thread 1-8) Interrupting thread "Thread[DeploymentScanner-threads - 1,5,DeploymentScanner-threads]"
2017-04-18 09:43:01,668 TRACE [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) Rolling back on cancellation of operation read-children-resources on address [] in stage MODEL
2017-04-18 09:43:01,668 TRACE [org.jboss.as.controller.management-operation] (management-handler-thread - 1) persisting org.jboss.as.controller.registry.BasicResource@4fcba122 from org.jboss.as.controller.ModelControllerImpl$ManagementModelImpl@3c98ea29
2017-04-18 09:43:01,668 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) Rollbacking current registry
was (Author: ehugonnet):
[~brian.stansberry]you are correct I 'see' a rollback of the CapabilityRegistry after the 'failure' of the RT :
2017-04-18 09:43:01,668 TRACE [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) Executing "read-children-resources" []
2017-04-18 09:43:01,668 TRACE [org.jboss.threads.interrupt-handler] (MSC service thread 1-8) Interrupting thread "Thread[DeploymentScanner-threads - 1,5,DeploymentScanner-threads]"
2017-04-18 09:43:01,668 TRACE [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) Rolling back on cancellation of operation read-children-resources on address [] in stage MODEL
2017-04-18 09:43:01,668 TRACE [org.jboss.as.controller.management-operation] (management-handler-thread - 1) persisting org.jboss.as.controller.registry.BasicResource@4fcba122 from org.jboss.as.controller.ModelControllerImpl$ManagementModelImpl@3c98ea29
2017-04-18 09:43:01,668 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) Rollbacking current registry
> DeploymentTestCase.testFilesystemScannerRegistration fails intermittently
> -------------------------------------------------------------------------
>
> Key: WFCORE-2656
> URL: https://issues.jboss.org/browse/WFCORE-2656
> Project: WildFly Core
> Issue Type: Bug
> Components: Deployment Scanner, Domain Management
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
>
> https://ci.wildfly.org/project.html?projectId=WildFlyCore_PullRequest&tes...
> I fear this has something to do with the capability registry and nothing to do with the scanner itself. It started happening when I added a capability to the scanner so it could consume a capability for the path it references.
> The test does a quick add/remove/add of a scanner resource and it's the 2nd add that fails with a dupicate capability error. But the remove mean the dup is gone. It's intermittent so I fear some race, but there's nothing obvious.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (WFCORE-2656) DeploymentTestCase.testFilesystemScannerRegistration fails intermittently
by Chao Wang (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2656?page=com.atlassian.jira.plugi... ]
Chao Wang commented on WFCORE-2656:
-----------------------------------
I have also seen this test fails today with error:
{noformat}
Failed tests:
DeploymentTestCase.testFilesystemScannerRegistration:253->addDeploymentScanner:799->addDeploymentScanner:817 {
"outcome" => "failed",
"failure-description" => "WFLYCTL0436: Cannot register capability 'org.wildfly.management.deployment-scanner.dummy' at location '[
(\"subsystem\" => \"deployment-scanner\"),
(\"scanner\" => \"dummy\")
]' as it is already registered in context 'global' at location(s) '[[
(\"subsystem\" => \"deployment-scanner\"),
(\"scanner\" => \"dummy\")
]]'",
"rolled-back" => true
} expected:<[success]> but was:<[failed]>
{noformat}
But it fails constantly on my machine, Is this the same cause appeared on CI ?
> DeploymentTestCase.testFilesystemScannerRegistration fails intermittently
> -------------------------------------------------------------------------
>
> Key: WFCORE-2656
> URL: https://issues.jboss.org/browse/WFCORE-2656
> Project: WildFly Core
> Issue Type: Bug
> Components: Deployment Scanner, Domain Management
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
>
> https://ci.wildfly.org/project.html?projectId=WildFlyCore_PullRequest&tes...
> I fear this has something to do with the capability registry and nothing to do with the scanner itself. It started happening when I added a capability to the scanner so it could consume a capability for the path it references.
> The test does a quick add/remove/add of a scanner resource and it's the 2nd add that fails with a dupicate capability error. But the remove mean the dup is gone. It's intermittent so I fear some race, but there's nothing obvious.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years