[opencms-dev] CmsObject.accessReadVisible(CmsResource resource) throws Exception in any non-Online project

Thomas März thomasmaerz at gmx.de
Fri May 9 16:25:02 CEST 2003


Hello,

I want to show in the PictureBrowser only folder that are visible to the
current User. But the method does not return the wanted results.

E. g. it does not return true for a non-Admin User when the Guest User
has set only the v-flag. Also it throws an Exception when I use the
method in a non-Online project (but the folder is in the Project).

What does "If the resource is in the project you never have to
fallback." mean?

What would be the best work-around not using this method.

Part of the exception:

com.opencms.core.CmsException: 0 Unknown exception. Detailed error:
[com.opencms.file.mySql.CmsDbAccess]. 
root cause was com.opencms.core.CmsException: 2 Not found. Detailed
error: [com.opencms.file.mySql.CmsDbAccess] 12. 
       at
com.opencms.file.genericSql.CmsDbAccess.readProject(CmsDbAccess.java:8762)
        at
com.opencms.file.genericSql.CmsResourceBroker.readProject(CmsResourceBroker.java:5987)
        at
com.opencms.file.genericSql.CmsResourceBroker.accessProject(CmsResourceBroker.java:429)
        at
com.opencms.file.genericSql.CmsResourceBroker.accessReadVisible(CmsResourceBroker.java:8307)
        at
com.opencms.file.CmsObject.accessReadVisible(CmsObject.java:4277)


Best regards,
Thomas Maerz



More information about the opencms-dev mailing list