Bug 1257061 - [GSS](6.4.z) access-log relative-to attribute is not physically written to the configuration it the value is the default one
Summary: [GSS](6.4.z) access-log relative-to attribute is not physically written to th...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web
Version: 6.4.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: CR1
: EAP 6.4.16
Assignee: Dominik Pospisil
QA Contact: Radim Hatlapatka
URL:
Whiteboard:
Depends On:
Blocks: eap6416-payload
TreeView+ depends on / blocked
 
Reported: 2015-08-26 08:07 UTC by Tom Fonteyne
Modified: 2019-07-11 09:51 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-22 09:19:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.