Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 78257 invoked from network); 7 Sep 2010 08:29:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 08:29:57 -0000 Received: (qmail 4993 invoked by uid 500); 7 Sep 2010 08:29:57 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 4933 invoked by uid 500); 7 Sep 2010 08:29:55 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 4923 invoked by uid 99); 7 Sep 2010 08:29:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 08:29:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 08:29:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o878TXr4013442 for ; Tue, 7 Sep 2010 08:29:33 GMT Message-ID: <9414986.50261283848173429.JavaMail.jira@thor> Date: Tue, 7 Sep 2010 04:29:33 -0400 (EDT) From: "Ryan Holmes (JIRA)" To: dev@click.apache.org Subject: [jira] Commented: (CLK-716) XmlConfigService throws exception with autobinding value of "default" In-Reply-To: <4220748.44581283807854060.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLK-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906707#action_12906707 ] Ryan Holmes commented on CLK-716: --------------------------------- Ah, yes. Looks like it's been fixed. Sorry I didn't check trunk first. The following was added to the autobinding parsing logic in the loadPages(Element) method: } else if ("default".equalsIgnoreCase(autobindingStr)) { autobinding = AutoBinding.DEFAULT; > XmlConfigService throws exception with autobinding value of "default" > --------------------------------------------------------------------- > > Key: CLK-716 > URL: https://issues.apache.org/jira/browse/CLK-716 > Project: Click > Issue Type: Bug > Components: core > Affects Versions: 2.2.0 > Environment: Java 1.6, Jetty 7, Mac OS X > Reporter: Ryan Holmes > > The click-2.2.dtd specifies a default value of "default" for the autobinding attribute of the pages element: > > > > > > 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 org.apache.click.service.XmlConfigService.loadPages(XmlConfigService.java:994) > at org.apache.click.service.XmlConfigService.onInit(XmlConfigService.java:240) > at org.apache.click.ClickServlet.initConfigService(ClickServlet.java:1687) > at org.apache.click.ClickServlet.init(ClickServlet.java:197) > at org.apache.click.extras.spring.SpringClickServlet.init(SpringClickServlet.java:387) > at javax.servlet.GenericServlet.init(GenericServlet.java:241) > 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 severe. > 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 is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.