을 자바 아주 새로운 오전 문제가 .. 사람이 도와 주실 래요 무슨 이해하지 못할 java를 처음 사용하는 사람.
ERR_READ_RESOURCES_1은보고있는 오류 메시지입니다. 즉, 폴더 내용에 대한 액세스 권한이 없습니다.
Source code
/**
* Reads all resources below the given path matching the filter criteria,
* including the full tree below the path only in case the <code>readTree</code>
* parameter is <code>true</code>.<p>
*
* @param context the current request context
* @param parent the parent path to read the resources from
* @param filter the filter
* @param readTree <code>true</code> to read all subresources
*
* @return a list of <code>{@link CmsResource}</code> objects matching the filter criteria
*
* @throws CmsSecurityException if the user has insufficient permission for the given resource (read is required)
* @throws CmsException if something goes wrong
*
*/
public List readResources(CmsRequestContext context,
CmsResource parent, CmsResourceFilter filter,
boolean readTree) throws CmsException, CmsSecurityException {
List result = null;
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
try {
// check the access permissions
checkPermissions(dbc, parent, CmsPermissionSet.ACCESS_READ,
true, CmsResourceFilter.ALL);
result = m_driverManager.readResources(dbc, parent, filter,
readTree);
} catch (Exception e) {
dbc.report(null, Messages.get().container(
Messages.ERR_READ_RESOURCES_1,
context.removeSiteRoot(parent.getRootPath())), e);
} finally {
dbc.clear();
}
return result;
}
당신은 관리자 사용자 또는 관리자 권한이있는 유저를 사용하고 있습니까? 그렇지 않은 경우 관리자 권한으로 사용하십시오. 여전히 오류가 발생하는 경우 자원 (/ warrants 폴더)이 오프라인 및 온라인 프로젝트에 모두 존재하는지 확인하십시오. 이는 이미 게시 된 것이어야 함을 의미합니다. –
@Mathias .. 답장을 보내 주셔서 감사합니다. 예. "영장"폴더는 온라인과 오프라인 버전으로 모두 제공되며 사이트는 며칠 전부터 정상적으로 작동하고 있습니다. 로그인을 시도한 사용자에게는 관리자 권한이 있습니다! 이 오류가 발생할 수있는 다른 이유가 있습니까? OpenCMS 관리자로부터 폴더 사용 권한을 확인할 수 있습니까? 다시 한번 감사드립니다 .. –
OpenCms 작업장에 로그인 한 다음 폴더 아이콘을 클릭하고 '사용 권한'옵션을 선택하면 사용자가 로그인 한 현재 사용 권한이 표시됩니다. –