[ 
http://www.jahia.net/jira/browse/JAHIA-3672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35832#action_35832
 ] 

Sergiy Shyrkov commented on JAHIA-3672:
---------------------------------------

I have recreated the above described test scenario: container in the "no 
workflow" mode with a link in the big text field to the never published page.
I get a proper warning message in the Add/Update container engine that I will 
get a 403-error (screenshot-1.jpg).
The content of the main container appears in the live mode with a broken link.

1) The "Bypass URL integrity checks" permission is taken into consideration 
here (Jahia Administration --> Site Settings --> Manage site permissions --> 
Actions --> Bypass URL integrity checks)
By default any authenticated user can bypass link integrity and WAI errors 
(screenshot-2.jpg).
I've corrected the behaviour in case the user does not have the bypass link 
integrity permission. So the content of the container in "no workflow" mode 
will not appear in live mode in case of link integrity errors.

2) When I am trying to delete the child page, I am getting a correct warning in 
the Delete engine about hardcoded links (screenshot-3.jpg).
I have extended the warning text to point out on the 404 issue after deletion.)

3) The 404 error in the console is related to the JAHIA-3502 issue with the new 
history feature of our toolbar.

We still need to review all the integrity checks (which lead to warning, 
blocking errors etc.) and at least create a JIRA ticket with the list of all 
"rules". Perhaps it will be a good idea to shift this validation logic to the 
rule engine to be more flexible.

> URL Integrity checks: I turned on the url integrity checks - no check in big 
> text on suppression of cross-ref sub-pages
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAHIA-3672
>                 URL: http://www.jahia.net/jira/browse/JAHIA-3672
>             Project: Jahia Web Content Management Server (WCMS)
>          Issue Type: Bug
>    Affects Versions: WCM 6.0 (Andromeda)
>         Environment: 22951
>            Reporter: Stephane Croisier
>            Assignee: Sergiy Shyrkov
>            Priority: Major
>             Fix For: WCM 6.0 (Andromeda)
>
>         Attachments: screenshot-1.jpg, screenshot-2.jpg, screenshot-3.jpg
>
>
> I turned on the url checking in the admin center.
> I created a page "page1" (vpublished) with a sub-page "page11" (staging 
> only). I cross-referenced the sub-page in a main_content available from the 
> parent "page1" page.
> My main_content is in no worklow. Despite the fact that the sub-page is not 
> published, the container was validated with a broken link.
> When trying to delete the sub-page, I have no informative message about the 
> fact that such a page is cross-reference in a big text. I can delete the 
> sub-page without any issue. When reloading the parent page in edit mode I now 
> have a 404 exception in the console (cf below)
> I know you were working on some 403/404/WAI toolbars before your paternity 
> leaving. I think this is the time to make a n in-depth tour of all these 
> "broken links" features are they are looking like not working at all 
> currently.
> [GC 166021K->105687K(994112K), 0.0154868 secs]
> 2008-10-30 15:46:43,234: INFO  [org.jahia.bin.Jahia] - Processed 
> [/cms/engineName/deletecontainer/site/tck/op/edit/pid/4] user=[root] 
> ip=[127.0.0.1] in [313ms]
> 2008-10-30 15:46:43,390: INFO  [org.jahia.bin.Jahia] - Processed 
> [/cms/site/tck/op/edit/pid/4] user=[root] ip=[127.0.0.1] in [62ms]
> 2008-10-30 15:46:45,609: ERROR 
> [org.jahia.ajax.gwt.templates.components.toolbar.server.factory.impl.JahiaItemsGroupFactoryImpl]
>  - org.jahia.exceptions.JahiaPageNotFoundException: User message=404 Not 
> found - Page:6, System message=404 error - page [6] could not be found in the 
> database or is no long
> er accessible.
> org.jahia.exceptions.JahiaPageNotFoundException: User message=404 Not found - 
> Page:6, System message=404 error - page [6] could not be found in the 
> database or is no longer accessible.
>         at 
> org.jahia.services.pages.JahiaPageBaseService.lookupContentPage(JahiaPageBaseService.java:1760)
>         at 
> org.jahia.services.pages.JahiaPageBaseService.lookupContentPage(JahiaPageBaseService.java:1658)
>         at 
> org.jahia.services.pages.JahiaPageBaseService.lookupPage(JahiaPageBaseService.java:1818)
>         at 
> org.jahia.services.pages.JahiaPageBaseService.lookupPage(JahiaPageBaseService.java:1848)
>         at 
> org.jahia.services.pages.JahiaPageBaseService.lookupPage(JahiaPageBaseService.java:1545)
>         at 
> org.jahia.services.pages.JahiaPageBaseService$$FastClassByCGLIB$$e7c6d2f7.invoke(<generated>)
>         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
>         at 
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>         at 
> org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>         at 
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
>         at 
> org.jahia.services.pages.JahiaPageBaseService$$EnhancerByCGLIB$$a3380d85.lookupPage(<generated>)
>         at 
> org.jahia.ajax.gwt.templates.components.toolbar.server.factory.impl.JahiaItemsGroupFactoryImpl.createRedirectItem(JahiaItemsGroupFactoryImpl.java:243)
>         at 
> org.jahia.ajax.gwt.templates.components.toolbar.server.factory.impl.JahiaItemsGroupFactoryImpl.populateWithHistoryItems(JahiaItemsGroupFactoryImpl.java:89)
>         at 
> org.jahia.ajax.gwt.templates.components.toolbar.server.factory.impl.JahiaItemsGroupFactoryImpl.populateItemsList(JahiaItemsGroupFactoryImpl.java:54)
>         at 
> org.jahia.ajax.gwt.templates.components.toolbar.server.ToolbarServiceImpl.creatGWTItemsGroup(ToolbarServiceImpl.java:365)
>         at 
> org.jahia.ajax.gwt.templates.components.toolbar.server.ToolbarServiceImpl.createGWTToolbar(ToolbarServiceImpl.java:266)
>         at 
> org.jahia.ajax.gwt.templates.components.toolbar.server.ToolbarServiceImpl.createGWTToolbarSet(ToolbarServiceImpl.java:104)
>         at 
> org.jahia.ajax.gwt.templates.components.toolbar.server.ToolbarServiceImpl.getGWTToolbars(ToolbarServiceImpl.java:75)
>         at sun.reflect.GeneratedMethodAccessor716.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at 
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
>         at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
>         at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         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.jahia.bin.filters.jcr.JcrSessionFilter.doFilter(JcrSessionFilter.java:23)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at 
> org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
>         at 
> org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
>         at 
> org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
>         at 
> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
>         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:433)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>         at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>         at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.jahia.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
jira_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/jira_list

Reply via email to