[opencms-dev] OpenCMS authorization trouble

Kalle Happonen kalle.happonen at hip.fi
Mon May 7 11:09:17 CEST 2007


Hello,
one change I hace made is to switch <workplace-server> from http to
https in opencms-system.xml but this probably shouldn't matter?

Workplace won't allow me to view contents of subfolders. Trying to
secure/export a folder I get the following error:

'Not enough permissions to execute the operation on the resource "intra".
 Required permissions are: "+w"'

Trying to edit a file in the root gives the following error.

Error
Error reading resource from path "/faq.html".
Reason: Unable to read resource "/faq.html".

The details:
org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource
from path "/faq.html".
	at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:78)
	at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
	at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
	at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3867)
	at org.opencms.file.CmsObject.readResource(CmsObject.java:2702)
	at
org.opencms.workplace.editors.CmsEditorHandler.getEditorUri(CmsEditorHandler.java:86)
	at
org.opencms.workplace.editors.CmsEditorSelector.getSelectedEditorUri(CmsEditorSelector.java:127)
	at
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.editor_005fmain_jsp._jspService(editor_005fmain_jsp.java:47)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:170)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:433)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:174)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:467)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:412)
	at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:719)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1349)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:151)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
	at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
	at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to
read resource "/faq.html".
	at org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:1434)
	at org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:5629)
	at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:5633)
	at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3865)
	... 42 more


>From the opencms log:

07 touko 2007 11:54:14,731  INFO [rg.opencms.jsp.CmsJspLoginBean: 213]
Successfu
l login of user "hidden": Request from IP 193.167.182.15 using uri
"/system/login
/index.html".
07 touko 2007 11:56:48,889 ERROR [rg.opencms.workplace.CmsDialog:1180]
The workp
lace dialog caused an error.
org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource
from pa
th "/faq.html".
        at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsV
fsResourceNotFoundException.java:78)
        at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
        at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
        at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.jav
a:3867)
        at org.opencms.file.CmsObject.readResource(CmsObject.java:2702)
        at
org.opencms.workplace.editors.CmsEditorHandler.getEditorUri(CmsEditor
Handler.java:86)
<snip - the same as detailed above>

Cheers,
Kalle


Christian Steinert wrote:
> Kalle Happonen schrieb:
>> Hi all,
>> I have got a problem with OpenCms. I'm not sure if it's a result of
>> moving to a new Tomcat version, and that there are some misconfigured
>> stuff in the deep recesses of the configuration files. The installation
>> moved from /opt/tomcat/apache-tomcat-5.5.17 to
>> /opt/tomcat/apache-tomcat-5.5.23.
>>   
> this should not make a difference. All paths should be relative to the
> web application root folder and opencms should not care where this web
> app folder lies.
>> The problem is that in the OpenCms workplace people do see the projects,
>> but nobody has permission to do anything, even if they belong to the
>> admin group. 
> What happens, if you try to  - say edit or create a page?
> Any error messages? Any details inside of these error messages?
>> The only site e.g. I can modify is /sites/default. Viewing
>> the site works without trouble. I'm not sure what other info is relavant
>> at the moment.
>>
>> So as I said, I don't know where the problem lies, could anyone give a
>> pointer? Some  files in the wrong place? 
> any information in the opencms logs?
> Can you call your website(s) normally from a browser?
> Does the workplace work at all - if so: what does / what doesn't
>> wrong info in the database?
>>   
> normally not, at least not because of a simple tomcat update
> 
> regards
> christian
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list