[opencms-dev] Help: com.opencms.core.CmsException: 1 Access denied
Armen Markarian
markarian at inexweb.de
Wed Aug 6 17:41:01 CEST 2003
Hi, i'm using following code to delete an Image in a folder, which
throws this exception!
Detailed error: [com.opencms.file.mySql.CmsResourceBroker]
/default/vfs/system/galleries/pics/1111/arrCat_2.gif
My code:
CmsJspActionElement cms = new
CmsJspActionElement(pageContext, request, response);
CmsObject cmsObj = cms.getCmsObject();
resourcepath =
request.getParameter("form_resourcepath");
if(resourcepath!=null) {
try
{
// delete File by given resourcepath
cmsObj.deleteResource(resourcepath);
dOK = true;
}
catch (Throwable t){
System.out.println("PRJ-HOTELSUITE-HCC-ADMIN-MEDIADATA-CHILD-RESULT
(DELETE FILE): " + t);
}
}
Even i've tried the deleteFile-Method which is deprecated. This method
does delete the file from opencms but throws exception too!
The File has the same owner and group rights of the logged user and
permissions rwvrwvr-v
Thank u for helping
Best regards
Armen
More information about the opencms-dev
mailing list