[jboss-jira] [JBoss JIRA] (AS7-6660) Web virtual-server does not handle undefining default-web-module properly

Jess Sightler (JIRA) jira-events at lists.jboss.org
Fri Mar 1 11:45:56 EST 2013


Jess Sightler created AS7-6660:
----------------------------------

             Summary: Web virtual-server does not handle undefining default-web-module properly
                 Key: AS7-6660
                 URL: https://issues.jboss.org/browse/AS7-6660
             Project: Application Server 7
          Issue Type: Bug
          Components: Web
    Affects Versions: 7.1.3.Final (EAP), 8.0.0.Alpha1
            Reporter: Jess Sightler
            Assignee: Remy Maucherat
            Priority: Minor


Execute the following commands from the CLI:

/subsystem=web/virtual-server=default-host:write-attribute(name=enable-welcome-root, value=false)
/subsystem=web/virtual-server=default-host:write-attribute(name=default-web-module, value=mywar)
/subsystem=web/virtual-server=default-host:undefine-attribute(name=default-web-module)
/subsystem=web/virtual-server=default-host:write-attribute(name=enable-welcome-root, value=true)


The last command will fail with this error:
{
    "outcome" => "failed",
    "failure-description" => "JBAS018011: The welcome root can not be enabled on a host that has the default web module",
    "rolled-back" => true,
    "response-headers" => {"process-state" => "reload-required"}
}

If I run read-resource, I see this:
{
    "outcome" => "success",
    "result" => {
        "access-log" => undefined,
        "alias" => [
            "localhost",
            "example.com"
        ],
        "default-web-module" => "undefined",
        "enable-welcome-root" => false,
        "name" => "default-host",
        "rewrite" => undefined,
        "sso" => undefined
    },
    "response-headers" => {"process-state" => "reload-required"}
}


It has put in a string of "undefined" instead of actually undefining the attribute.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list