Bug 1070214
Summary: | CLI inconsistency in the web subsytem | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Lami Akagwu <lakagwu> |
Component: | Domain Management | Assignee: | Emmanuel Hugonnet (ehsavoie) <ehugonne> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 6.2.0 | CC: | brian.stansberry, dandread, ehugonne, kkhan, pkremens |
Target Milestone: | ER1 | ||
Target Release: | EAP 6.4.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Lami Akagwu
2014-02-26 12:21:12 UTC
Making it Domain Management. This looks to be related to the use of backward-compatible aliases for old config styles from AS 7.0. The access-log=configuration and sso=configuration variants are aliases to the correct configuration=. Some details: 2.1) sso should still be **"sso" => undefined** but it has **"sso" => {"configuration" => undefined}** Yes, this is odd. 2.2) access log has two entries "access-log" => {"configuration" => undefined}, "configuration" => {"access-log" => undefined}, I believe the default setting for read-resource is not to show aliases, show yes, having both appear seems wrong. You would expect both if you wanted to see aliases. 3) Adding recursive option omits sso from the output. This is a nice clue to where the 2.1/2.2 problems lie since this code path seems to fix the issue. 4.1) sso dir is showing configuration which is wrong. If try to 'cd configuration' you get error JBAS014808 . 4.2) access-log dir contains configuration. If try to 'cd configuration' you get error JBAS014808 . Yes, this is wrong. I don't thing this is an issue, given the way how aliases work. Only thing worth checking is why do we display aliases for :read-resource by default even when aliases=true is not set. They should not be displayed by default in any case. it works properly for recursive read resource but not for default one. Adding dev_ack+ flag to check / verify behavior of :read-resource in aspect of when and why are aliases included in output. Changing to dev_ack- as the jboss‑eap‑6.3.0? flag is the relevant one. Next I'll switch it to 6.4 and re-ack. PR : https://github.com/jbossas/jboss-eap/pull/1892 Upstream already merged I just want to make a little summary for this BZ. We are fixing the behaviour of r-r-d and r-ch-t operations (as described in WFCORE-57) not to show aliases unless include-aliases is set to true. If https://access.redhat.com/support/cases/#/case/01044483 is not considered to be bug then we should close it and notify customer as I see exactly the same behaviour (https://access.redhat.com/solutions/735753) with EAP 6.4.0.DR9. I am just wondering if /profile=ha/subsystem=web/virtual-server=default-host:read-resource(recursive=true) don't show sso why /profile=ha/subsystem=web/virtual-server=default-host:read-resource(include-aliases=false does? ------ There seems to be another hidden bug in web subsystem, try on clear server: /profile=ha/subsystem=web/virtual-server=default-host:read-resource(recursive=true, include-aliases=true) { "outcome" => "success", ... /profile=ha/subsystem=web/virtual-server=default-host/access-log=configuration:add(pattern="%T %h %l %u %t %r %s %b %{COOKIE}i %{SET-COOKIE}o") { "outcome" => "success", ... /profile=ha/subsystem=web/virtual-server=default-host:read-resource(recursive=true, include-aliases=true) { "outcome" => "failed", "rolled-back" => true } Can you please check it out? This fix only concerned the Read resource description. Those configuration attributes won't show if you do a: /profile=ha/subsystem=web/virtual-server=default-host:read-resource-description Sorry, I think the problem is that the alias is configuration=sso and not just configuration while the registered child being tested is configuration. Upstream PR : https://github.com/wildfly/wildfly-core/pull/366 PR: https://github.com/jbossas/jboss-eap/pull/2077 If I understand this correctly, 'read-children-types' operation is still broken: /profile=ha/subsystem=web/virtual-server=default-host:read-resource-description ... "children" => { "configuration" => { "description" => "configuration of virutal server", "model-description" => undefined }, "rewrite" => { "description" => "A list of rewrite rules that will be processed in order on the URL or vhost specified in the request.", "model-description" => undefined } } ... /profile=ha/subsystem=web/virtual-server=default-host:read-children-types { "outcome" => "success", "result" => [ "access-log", "configuration", "rewrite", "sso" ] } Verified on EAP 6.4.0.ER1 |