[jboss-jira] [JBoss JIRA] (WFLY-1333) access log "prefix" configuration required

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Mon May 13 08:51:06 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773770#comment-12773770 ] 

Remy Maucherat commented on WFLY-1333:
--------------------------------------

Well, the xsd might look right, but the code doesn't. Because of some funny copypaste, the default value really is false (as in boolean) in WebAccessLogDefinition. So specify something and you should be fine.
                
> access log "prefix" configuration required
> ------------------------------------------
>
>                 Key: WFLY-1333
>                 URL: https://issues.jboss.org/browse/WFLY-1333
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (JBoss Web)
>         Environment: Windows 7 64bit, JBoss AS 7.2.0
>            Reporter: Bart Van Dosselaer
>            Assignee: Remy Maucherat
>            Priority: Minor
>              Labels: access-log, jboss, web
>
> The virtual server access-log configuration (subsystem xmlns="urn:jboss:domain:web:1.4") requires that the prefix attribute is present.
> If the configuration is like this:
>                 <access-log pattern="%t-[%a] %s %r@%p %b bytes %Ts"/>
> ... the server creates a file named "false2013-05-13"
> Only when the attribute prefix="access_log." is added to the configuration, is the file nicely created like "access_log.2013-05-13".
> According to the jboss-as-web_1_4.xsd file it shouldn't be required to provide the prefix attribute, as there is a default value already supplied:
>    <xs:complexType name="http-access-logType">
>       <xs:sequence>
>          <xs:element name="directory" type="directoryType" />
>       </xs:sequence>
>       <xs:attribute name="pattern" default="common" />
>       <xs:attribute name="resolve-hosts" default="false" type="xs:boolean" />
>       <xs:attribute name="extended" default="false" type="xs:boolean" />
>       <xs:attribute name="prefix" default="access_log." />
>       <xs:attribute name="rotate" default="true" type="xs:boolean" />
>    </xs:complexType>

--
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