[opencms-dev] Folder creation problem

Jean C. Favila jcfavila at yahoo.com
Mon Nov 17 18:41:01 CET 2003


Hi everyone!

I have a problem when I try to programmatically create a new folder in the root
directory, after I have succesfully logged in with the Admin user, using the
following code:


 CmsJspActionElement cms = new CmsJspActionElement(pageContext, 
                               request, response);
 cms.getCmsObject().setMode(CmsObject.C_MODUS_OFFLINE);
 cms.getCmsObject().createResource("/", "products", "folder");


I get this exception:


com.opencms.core.CmsException: 1 Access denied. Detailed error:
[com.opencms.file.mySql.CmsResourceBroker] /default/vfs/products/.
        at
com.opencms.file.genericSql.CmsResourceBroker.createFolder(CmsResourceBroker.java:1903)
        at com.opencms.file.CmsObject.doCreateFolder(CmsObject.java:1018)
        at
com.opencms.file.CmsResourceTypeFolder.createResource(CmsResourceTypeFolder.java:605)
...


Any ideas?

Thanks in advance.
------------------
Jean C. Favila

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree



More information about the opencms-dev mailing list