[jboss-jira] [JBoss JIRA] Commented: (AS7-1505) Incorrect time unit written out to JCA configuration

Stefano Maestri (JIRA) jira-events at lists.jboss.org
Wed Sep 14 05:05:26 EDT 2011


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

Stefano Maestri commented on AS7-1505:
--------------------------------------

problem is more general: the thread parser is parsing it wrong and then writing back wrong.
In Parsing https://github.com/jbossas/jboss-as/blob/master/threads/src/main/java/org/jboss/as/threads/ThreadsParser.java#L597 it conside just TimeUnit enum value so just SECONDS while xsd accept s, sec and so on. The best would probably be to limit possible value into xsd, but keeping lower case.

> Incorrect time unit written out to JCA configuration
> ----------------------------------------------------
>
>                 Key: AS7-1505
>                 URL: https://issues.jboss.org/browse/AS7-1505
>             Project: Application Server 7
>          Issue Type: Bug
>         Environment: AS7 upstream (August 10 2011)
>            Reporter: jaikiran pai
>            Assignee: Stefano Maestri
>
> JCA generates the following timeunit (note the case) for keepalive-time element.
> {code}
> <keepalive-time time="10" unit="SECONDS"/>
> {code}
> This fails the xsd validation testcase:
> {code}
> testStandalonePreview(org.jboss.as.test.flat.xml.StandardConfigsXMLValidationUnitTestCase): cvc-enumeration-valid: Value 'SECONDS' is not facet-valid with respect to enumeration '[s, sec, seconds, m, min, minutes, ms, milliseconds, ns, nanoseconds, h, hours, d, days, w, weeks, mon, months]'. It must be a value from the enumeration.
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list