On Oct 15, 2009, at 5:11 PM, David Zülke wrote: > Not a bug; we allow any element from any namespace beneath > <ae:configurations> for extensibility purposes, and it's not > possible in XML Schema to have a blacklist of allowed namespaces > (and #other won't help as we always have two namespaces in a file > that would need coverage).
Hmm, that's a trap :( Is there really no way to at least catch the common sort of mistakes? > > - David > > P.S: next time you figure out a solution to a problem off-list, > please post a summary to the list so others with the same problem > will find an answer in the archives. Yes, I was just about to. We solved the problem around the time you posted to the list. felix > > > On 15.10.2009, at 09:28, Felix Gilcher wrote: > >> Yeah, we figured that out already :) >> >> Anyways, the config validation gets fooled and believes the file is >> valid - bug? >> >> felix >> >> On Oct 15, 2009, at 3:23 PM, David Zülke wrote: >> >>> <ae:configuration> … >>> >>> Sent from my iPhone >>> >>> On 11.10.2009, at 15:44, Shoan Motwani <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I am trying to register a custom config located in app/config/ >>>> Mailer.xml. Below is my config_handlers.xml >>>> >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <ae:configurations >>>> xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0 >>>> " xmlns="http://agavi.org/agavi/config/parts/config_handlers/1.0" >>>> parent="%core.system_config_dir%/config_handlers.xml"> >>>> <configuration> >>>> <handlers> >>>> <handler pattern="%core.config_dir%/Mailer.xml" >>>> class="AgaviReturnArrayConfigHandler" /> >>>> </handlers> >>>> </configuration> >>>> </ae:configurations> >>>> >>>> This is how it's being invoked which leads to an exception >>>> >>>> $config = AgaviConfig::get('core.config_dir') . '/Mailer.xml'; >>>> >>>> if(is_readable($config)) { >>>> //store the xml file in a php array format into $c >>>> $this->config = include(AgaviConfigCache::checkConfig >>>> ($config)); >>>> } else { >>>> throw(new AgaviConfigurationException('Mailer.xml is >>>> unreadable')); >>>> } >>>> >>>> Complete stack trace: >>>> Message >>>> =========== >>>> Configuration file "/Users/shoan/Sites/ucm/app/config/Mailer.xml" >>>> does >>>> not have >>>> a registered handler >>>> >>>> Stack Trace >>>> =============== >>>> 0: /Users/shoan/Sites/ucm/libs/agavi/src/config/ >>>> AgaviConfigCache.class.php (line: 175) >>>> 1: /Users/shoan/Sites/ucm/libs/agavi/src/config/ >>>> AgaviConfigCache.class.php (line: 87) >>>> 2: /Users/shoan/Sites/ucm/libs/agavi/src/config/ >>>> AgaviConfigCache.class.php (line: 243) >>>> 3: /Users/shoan/Sites/ucm/app/lib/mail/MailMessageModel.class.php >>>> (line: 44) >>>> 4: /Users/shoan/Sites/ucm/app/modules/Registration/views/ >>>> MemberRegistrationSuccessView.class.php (line: 15) >>>> 5: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviExecutionFilter.class.php (line: 743) >>>> 6: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviExecutionFilter.class.php (line: 528) >>>> 7: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilter.class.php >>>> (line: 83) >>>> 8: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilterChain.class.php (line: 94) >>>> 9: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviExecutionTimeFilter.class.php (line: 64) >>>> 10: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilter.class.php >>>> (line: 83) >>>> 11: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilterChain.class.php (line: 94) >>>> 12: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviSecurityFilter.class.php (line: 61) >>>> 13: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilter.class.php >>>> (line: 83) >>>> 14: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilterChain.class.php (line: 94) >>>> 15: /Users/shoan/Sites/ucm/libs/agavi/src/controller/ >>>> AgaviExecutionContainer.class.php (line: 314) >>>> 16: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviDispatchFilter.class.php (line: 50) >>>> 17: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilter.class.php >>>> (line: 83) >>>> 18: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilterChain.class.php (line: 94) >>>> 19: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFormPopulationFilter.class.php (line: 78) >>>> 20: /Users/shoan/Sites/ucm/libs/agavi/src/filter/ >>>> AgaviFilterChain.class.php (line: 94) >>>> 21: /Users/shoan/Sites/ucm/libs/agavi/src/controller/ >>>> AgaviController.class.php (line: 254) >>>> 22: /Users/shoan/Sites/ucm/pub/index.php (line: 23) >>>> Version Information >>>> ======================= >>>> Agavi: 1.0.2-dev >>>> PHP: 5.3.0 >>>> System: Darwin Nirvana.local 9.8.0 Darwin Kernel Version 9.8.0: >>>> Wed >>>> Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 >>>> Timestamp: 2009-10-11T19:41:52+0000 >>>> >>>> How do I resolve this? >>>> >>>> Peace, >>>> Shoan. >>>> >>>> _______________________________________________ >>>> users mailing list >>>> [email protected] >>>> http://lists.agavi.org/mailman/listinfo/users >>>> >>> >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.agavi.org/mailman/listinfo/users >> >> -- >> Felix Gilcher >> >> Bitextender GmbH >> Paul-Heyse-Str. 6 >> D-80336 München >> >> T: +49 89 57 08 15 16 >> F: +49 89 57 08 15 17 >> M: +49 172 840 88 28 >> >> [email protected] >> http://www.bitextender.com/ >> >> Amtsgericht München, HRB 174280 >> Geschäftsführer: David Zülke, Florian Clever >> >> >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.agavi.org/mailman/listinfo/users >> > > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users -- Felix Gilcher Bitextender GmbH Paul-Heyse-Str. 6 D-80336 München T: +49 89 57 08 15 16 F: +49 89 57 08 15 17 M: +49 172 840 88 28 [email protected] http://www.bitextender.com/ Amtsgericht München, HRB 174280 Geschäftsführer: David Zülke, Florian Clever _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
