click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian A. (JIRA)" <>
Subject [jira] [Closed] (CLK-716) XmlConfigService throws exception with autobinding value of "default"
Date Sun, 17 Nov 2013 10:17:20 GMT


Adrian A. closed CLK-716.

closing issue fixed a long time ago

> XmlConfigService throws exception with autobinding value of "default"
> ---------------------------------------------------------------------
>                 Key: CLK-716
>                 URL:
>             Project: Click
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.2.0
>         Environment: Java 1.6, Jetty 7, Mac OS X
>            Reporter: Ryan Holmes
>             Fix For: 2.3.0-M1
> The click-2.2.dtd specifies a default value of "default" for the autobinding attribute
of the pages element:
>   <!-- Application pages. -->
>   <!ELEMENT pages (page*, excludes*)>
>     <!ATTLIST pages package CDATA #IMPLIED>
>     <!ATTLIST pages automapping (true|false) "true">
>     <!ATTLIST pages autobinding (default|annotation|none) "default">
> This causes the following exception when the DTD is specified in click.xml and no autobinding
value is supplied (or a value of "default" is specified):
> java.lang.RuntimeException: Invalid pages autobinding attribute: default
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at javax.servlet.GenericServlet.init(
> I marked this bug as major priority because an exception is thrown with a minimal click.xml
file (at least when using the DTD), so the impact to out-of-the-box functionality is pretty
> A quick look at the code reveals that XmlConfigService expects an autobinding value of
"public" instead of "default". This conflicts with both the DTD and the documentation for
click.xml. Since an autobinding value of "public" is not documented anywhere as far as I can
tell and since XmlConfigService maps "public" to the AutoBinding.DEFAULT enum, the use of
"public" is most likely a typo and should simply be replaced with "default".

This message was sent by Atlassian JIRA

View raw message