Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-1396

Create page with name like "10 spécialités"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0 M5
    • 3.0 M5
    • UI
    • None

      How to reproduce

      • Connect to the cms
      • Create a page with a name like "10 spécialités", "1ere page", "2ème article" not :"ma page"
      • Affect a template

      Actual behavior

      • Error with stacktrace

      Expected behavior

      • No error

          [CMS-1396] Create page with name like "10 spécialités"

          Page titlecan not starts with a number because of jackrabbit error.
          For M5, ignore the first character if it is a number for page name and url

          Laurence Aumeunier added a comment - Page titlecan not starts with a number because of jackrabbit error. For M5, ignore the first character if it is a number for page name and url

          Caused by: org.ametys.plugins.repository.AmetysRepositoryException: An error occured executing the JCR query : //element(www, ametys:site)/ametys-internal:sitemaps/fr/8-page/10-specialites//element(, ametys:page)/ametys-internal:zones//ametys-internal:zoneItems//jcr:deref(@ametys-internal:content, '')[(@ametys-internal:contentType ='org.ametys.web.default.Content.article' and @ametys-internal:tags ='FOCUS')] at org.ametys.plugins.repository.AmetysObjectResolver.query(AmetysObjectResolver.java:548) at org.ametys.web.filter.DefaultWebContentFilter.getMatchingContents(DefaultWebContentFilter.java:168) at org.ametys.web.filter.ContentFilterHelper.saxMatchingContents(ContentFilterHelper.java:86) at org.ametys.web.tags.inputdata.FilteredContentsInputData.saxFilter(FilteredContentsInputData.java:163) at org.ametys.web.tags.inputdata.FilteredContentsInputData.toSAX(FilteredContentsInputData.java:86) at org.ametys.web.inputdata.DefaultInputDataManager.toSAX(DefaultInputDataManager.java:75) at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:159) at $Proxy10.toSAX(Unknown Source) at org.ametys.web.inputdata.InputDataGenerator.generate(InputDataGenerator.java:44) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579) ... 51 more

          Laurence Perier added a comment - Caused by: org.ametys.plugins.repository.AmetysRepositoryException: An error occured executing the JCR query : //element(www, ametys:site)/ametys-internal:sitemaps/fr/8-page/10-specialites//element( , ametys:page)/ametys-internal:zones/ /ametys-internal:zoneItems/ /jcr:deref(@ametys-internal:content, ' ') [(@ametys-internal:contentType ='org.ametys.web.default.Content.article' and @ametys-internal:tags ='FOCUS')] at org.ametys.plugins.repository.AmetysObjectResolver.query(AmetysObjectResolver.java:548) at org.ametys.web.filter.DefaultWebContentFilter.getMatchingContents(DefaultWebContentFilter.java:168) at org.ametys.web.filter.ContentFilterHelper.saxMatchingContents(ContentFilterHelper.java:86) at org.ametys.web.tags.inputdata.FilteredContentsInputData.saxFilter(FilteredContentsInputData.java:163) at org.ametys.web.tags.inputdata.FilteredContentsInputData.toSAX(FilteredContentsInputData.java:86) at org.ametys.web.inputdata.DefaultInputDataManager.toSAX(DefaultInputDataManager.java:75) at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:159) at $Proxy10.toSAX(Unknown Source) at org.ametys.web.inputdata.InputDataGenerator.generate(InputDataGenerator.java:44) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579) ... 51 more

            Unassigned Unassigned
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: