|
|
Index
| Recent Threads
| Who's Online
| User List
| Register
| Search
| Help
| |
![]() |
OpenCms Forum » List all forums » Forum: Tutorials / HowTo's » Thread: access denied |
|
Thread Status: Normal Total posts in this thread: 2 |
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Advanced Member
|
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 |
||
|
|
Advanced Member
|
You have to lock the file first (and then you'll want to unlock it) |
||
|
| [Show Printable Version of Thread] |