Bug 1257061

Summary: [GSS](6.4.z) access-log relative-to attribute is not physically written to the configuration it the value is the default one
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Tom Fonteyne <tfonteyn>
Component: WebAssignee: Dominik Pospisil <dpospisi>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hatlapatka <rhatlapa>
Severity: low Docs Contact:
Priority: low    
Version: 6.4.2CC: bmaxwell, dpospisi, justin.dugan, mcada, rmaucher, rstancel
Target Milestone: CR1   
Target Release: EAP 6.4.16   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-22 09:19:39 UTC 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:
Bug Depends On:    
Bug Blocks: 1434495    

Description Tom Fonteyne 2015-08-26 08:07:03 UTC
if relative-to="jboss.server.log.dir" then it it not pohysically written to the configuration. The setup still works as expected, because the server uses the default value anyhow.

reproduce:

# add the access-log entry
/subsystem=web/virtual-server=default-host/configuration=access-log:add

# set both path and relative-to
/subsystem=web/virtual-server=default-host/configuration=access-log/setting=directory:add(path=".",relative-to="jboss.server.log.dir")

# use the CLI to read the actual config:

/subsystem=web/virtual-server=default-host/configuration=access-log/setting=directory:read-resource
{
    "outcome" => "success",
    "result" => {
        "path" => ".",
        "relative-to" => "jboss.server.log.dir"
    },

in xml:

            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
                <access-log>
                    <directory path="."/>
                </access-log>
            </virtual-server>

Note that "relative-to" is not present in xml.

Expectation: that the value is written to xml regardless

Note that using for example a named path, and setting relative-to to that named path, the relative-to is correctly written.

Either way, the server works as expected as the default value is used when not present

Comment 6 Mike McCune 2016-03-28 22:30:10 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 7 Michael Cada 2017-06-06 08:08:03 UTC
Verified with EAP 6.4.16.CP.CR1

Comment 8 Petr Penicka 2017-06-22 09:19:39 UTC
Released on June 20 2017 as part of the EAP 6.4.16 maintenance release.