synyx GmbH & Co. KG Homepage Welcome Guest   | Login
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Register  | Search  | Help  | RSS feeds


Quick Go »
Thread Status: Normal
Total posts in this thread: 2
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 2263 times and has 1 reply Next Thread
Male Anonymous
Advanced Member



Joined: Oct 9, 2006
Posts: 332
Status: Offline

access denied

when i execute this code it produce an error. After verification on the files, i have access and i can touch it. So where is my error please


www = cms.getFilesInFolder("/");
for (int i =0; i<www.size();i++){
CmsFile file = (CmsFile) www.elementAt(i);
cms.touch(file.getAbsolutePath(),file.getDateLastModified()+3600,false);
}

com.opencms.core.CmsException: 1 Access denied. Detailed error:
[com.opencms.file.mySql.CmsResourceBroker]

Thomas
[Feb 26, 2004 12:23:19 PM] Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Male Anonymous
Advanced Member



Joined: Oct 9, 2006
Posts: 332
Status: Offline


You have to lock the file first (and then you'll want to unlock it)
[Mar 9, 2004 9:37:50 AM] Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]