[opencms-dev] Availability not work as expected in Container Page

edwin19xx edwin.chiu at gmail.com
Thu Jan 16 14:09:55 CET 2014


Hi All,

Currently, I am studying on the built-in availability feature. It works
great on some page. But I found that it is not the case when dealing with
container page and resource inside that container. Below is my testing
procedure. Please help to take a look and see anyone can give a solution on
this.

1.	Go to /dev-demo/model-containerpage/.content/articles/ and change the
availability of file “article-00001.xml”

<http://opencms.996256.n3.nabble.com/file/n23925/1.png> 
 
 
2.	Set the date released (8:27) and expired (8:27)

<http://opencms.996256.n3.nabble.com/file/n23925/2.png> 
 
3.	Before 8:27, access the page (/dev-demo/model-containerpage/) in online
in another browser.
*[It is expected that the article-00001.xml can be shown properly in the
container page after date released]*

<http://opencms.996256.n3.nabble.com/file/n23925/3.png> 
 
4.	Between 8:27 to 8:28, go to workplace, touch any one file and publish to
online, access the page again, the article can be shown properly.
*[In order to flush the container cache in
org.opencms.xml.containerpage.CmsADECache, I need to do so]*

<http://opencms.996256.n3.nabble.com/file/n23925/4.png> 
 

5.	After 8:28, disappear again, but with read resource error.
*[The container was not updated from cache, as a result, the article was
expired but the container still access to the invalid resources, reading
resource error thrown.]*

<http://opencms.996256.n3.nabble.com/file/n23925/5.png>  

2014-01-16 20:28:48,660 [ERROR][http-8443-2] - [CmsJspTagContainer] Error
reading resource with the ID 782371b8-7f98-11e0-91cd-1df1339be1a9.
org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource
with the ID 782371b8-7f98-11e0-91cd-1df1339be1a9.
	at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:71)
	at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:334)
	at org.opencms.db.CmsDbContext.report(CmsDbContext.java:286)
	at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4855)
	at org.opencms.file.CmsObject.readResource(CmsObject.java:2861)
	at org.opencms.file.CmsObject.readResource(CmsObject.java:2828)
	at
org.opencms.xml.containerpage.CmsContainerElementBean.initResource(CmsContainerElementBean.java:425)
	at
org.opencms.jsp.CmsJspTagContainer.renderContainerElement(CmsJspTagContainer.java:986)
	at
org.opencms.jsp.CmsJspTagContainer.doStartTag(CmsJspTagContainer.java:472)
	at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_alkacon_bootstrap_formatters.templates.bootstrap_002dpage_jsp._jspx_meth_cms_005fcontainer_005f5(bootstrap_002dpage_jsp.java:972)
	at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_alkacon_bootstrap_formatters.templates.bootstrap_002dpage_jsp._jspx_meth_c_005fif_005f1(bootstrap_002dpage_jsp.java:741)
	at
org.apache.jsp.WEB_002dINF.jsp.online.system.modules.com_alkacon_bootstrap_formatters.templates.bootstrap_002dpage_jsp._jspService(bootstrap_002dpage_jsp.java:191)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:641)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:926)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:523)
	at
org.opencms.loader.CmsXmlContainerPageLoader.load(CmsXmlContainerPageLoader.java:115)
	at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1183)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1719)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
com.pru.hk.scws.filter.SecureRequestFilter.doFilter(SecureRequestFilter.java:52)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Resource
"/dev-demo/model-containerpage/.content/articles/article-00001.xml" was not
found.
	at
org.opencms.db.CmsSecurityManager.checkPermissions(CmsSecurityManager.java:6817)
	at
org.opencms.db.CmsSecurityManager.checkPermissions(CmsSecurityManager.java:6792)
	at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:7191)
	at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4853)
	... 52 more




--
View this message in context: http://opencms.996256.n3.nabble.com/Availability-not-work-as-expected-in-Container-Page-tp23925.html
Sent from the OpenCMS mailing list archive at Nabble.com.



More information about the opencms-dev mailing list