[opencms-dev] bug in the template provided : non-existing directory provokes error

Nicolas Delsaux nicolas.delsaux at online.fr
Thu Jun 5 13:41:01 CEST 2003


Hi, I was testing the template given by Alkacon in order to build our site 
layout, and I encountered a bug in the template-nav-top. Indeed, including 
it makes the page undispayable.
I investigated a little, and found that it was due to my topfolder.
As a default, this Java variable is positionned to be the /"locale"/ 
directory (in my case, /fr/), which I haven't. And the use of this 
directory in cms.getNavigation().getNavigationForResource(topfolder); 
results in an exception, which prevents as a consequence the page from 
being correctly displayed (and in fact, from being displayed at all). Since 
I have not too much time, I cannot investigate further in the Java code, 
but I'm convinced there is a lacking .exists() check somewhere.
As a workaround, I've changed the topfolder to be root folder, since I'm 
not able to add a folder to the root, even using the admin account.
Can someone explain me why the admin user is not able to add or remove 
folders or data from the root ?
Thanks

-- 
Nicolas Delsaux
"Dans l'espace, personne ne vous entend crier"




More information about the opencms-dev mailing list