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

Error while viewing a content to restore

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.13, 4.6.0
    • 4.5.12, 4.6.0
    • None
    • None
    • 4.6 M9

      Données de demo : erreur lors de la restauration sur une conteneur

      Steps to reproduce

      1. On ODF demo data
      2. Open the organization of the program "Licence Histoire et Géographie"
      3. Select the container "Licence 1 Histoire et Géographie"
      4. Open the workflow history
      5. Click on "Version 1"

      It is associated to the following log:

      Pile d'appels :
      org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
      at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:187:109
      at org.apache.cocoon.ProcessingException#throwLocated:113
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:122
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
      at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
      at org.apache.cocoon.Cocoon#process:699
      at org.ametys.runtime.servlet.RuntimeServlet#service:580
      at javax.servlet.http.HttpServlet#service:741
      at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:231
      at org.apache.catalina.core.ApplicationFilterChain#doFilter:166
      at org.apache.tomcat.websocket.server.WsFilter#doFilter:53
      at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:193
      at org.apache.catalina.core.ApplicationFilterChain#doFilter:166
      at org.apache.catalina.core.StandardWrapperValve#invoke:202
      at org.apache.catalina.core.StandardContextValve#invoke:96
      at org.apache.catalina.authenticator.AuthenticatorBase#invoke:541
      at org.apache.catalina.core.StandardHostValve#invoke:139
      at org.apache.catalina.valves.ErrorReportValve#invoke:92
      at org.apache.catalina.valves.AbstractAccessLogValve#invoke:688
      at org.apache.catalina.core.StandardEngineValve#invoke:74
      at org.apache.catalina.connector.CoyoteAdapter#service:343
      at org.apache.coyote.http11.Http11Processor#service:375
      at org.apache.coyote.AbstractProcessorLight#process:65
      at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:868
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1639
      at org.apache.tomcat.util.net.SocketProcessorBase#run:49
      at java.base/java.util.concurrent.ThreadPoolExecutor#runWorker:1136
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker#run:635
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable#run:61
      at java.base/java.lang.Thread#run:833
      Caused by: org.ametys.plugins.repository.UnknownAmetysObjectException: There's no revision : undefined
      at org.ametys.plugins.repository.jcr.DefaultAmetysObject#switchToRevision:188
      at org.ametys.cms.content.GetContentAction#act:105
      at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode#invoke:125
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
      at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
      ... 34 more
      Caused by: javax.jcr.version.VersionException: Version {}undefined does not exist.
      at org.apache.jackrabbit.core.version.InternalVersionHistoryImpl#getVersion:277
      at org.apache.jackrabbit.core.version.VersionHistoryImpl#getVersion:138
      at org.ametys.plugins.repository.jcr.DefaultAmetysObject#switchToRevision:183
      ... 46 more 

          [CMS-11465] Error while viewing a content to restore

          Magali Franchet made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Bérénice Maurel made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          Bérénice Maurel made changes -
          Assignee New: Bérénice Maurel [ bmaurel ]
          Laurence Aumeunier made changes -
          Status Original: Functional review OK [ 10207 ] New: Ready to merge [ 10208 ]
          Magali Franchet made changes -
          Status Original: Available for review [ 10005 ] New: Functional review OK [ 10207 ]
          Bérénice Maurel made changes -
          Assignee Original: Bérénice Maurel [ bmaurel ]
          Bérénice Maurel made changes -
          Status Original: Open [ 1 ] New: Available for review [ 10005 ]

          The problem is that unavailable version (probably after cleanup) are clickable.

          Bérénice Maurel added a comment - The problem is that unavailable version (probably after cleanup) are clickable.
          Bérénice Maurel made changes -
          Description Original: Pour le reproduire : 

          1 - Ouvrir la maquette de la formation "Licence Histoire et Géographie"

          2 - Sélectionner le conteneur "Licence 1 Histoire et Géographie"

          3 - Ouvrir le menu "Historique" : 

          !image-2022-10-10-18-26-30-637.png!

          4 - Cliquer sur "Version 1" => 

          !image-2022-10-10-18-26-43-001.png|width=570,height=465!

          Le log suivant est présent :
          {code:java}
          Pile d'appels :
          org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
          at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:187:109
          at org.apache.cocoon.ProcessingException#throwLocated:113
          at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:122
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
          at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
          at org.apache.cocoon.Cocoon#process:699
          at org.ametys.runtime.servlet.RuntimeServlet#service:580
          at javax.servlet.http.HttpServlet#service:741
          at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:231
          at org.apache.catalina.core.ApplicationFilterChain#doFilter:166
          at org.apache.tomcat.websocket.server.WsFilter#doFilter:53
          at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:193
          at org.apache.catalina.core.ApplicationFilterChain#doFilter:166
          at org.apache.catalina.core.StandardWrapperValve#invoke:202
          at org.apache.catalina.core.StandardContextValve#invoke:96
          at org.apache.catalina.authenticator.AuthenticatorBase#invoke:541
          at org.apache.catalina.core.StandardHostValve#invoke:139
          at org.apache.catalina.valves.ErrorReportValve#invoke:92
          at org.apache.catalina.valves.AbstractAccessLogValve#invoke:688
          at org.apache.catalina.core.StandardEngineValve#invoke:74
          at org.apache.catalina.connector.CoyoteAdapter#service:343
          at org.apache.coyote.http11.Http11Processor#service:375
          at org.apache.coyote.AbstractProcessorLight#process:65
          at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:868
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1639
          at org.apache.tomcat.util.net.SocketProcessorBase#run:49
          at java.base/java.util.concurrent.ThreadPoolExecutor#runWorker:1136
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker#run:635
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable#run:61
          at java.base/java.lang.Thread#run:833
          Caused by: org.ametys.plugins.repository.UnknownAmetysObjectException: There's no revision : undefined
          at org.ametys.plugins.repository.jcr.DefaultAmetysObject#switchToRevision:188
          at org.ametys.cms.content.GetContentAction#act:105
          at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode#invoke:125
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
          at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
          at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
          ... 34 more
          Caused by: javax.jcr.version.VersionException: Version {}undefined does not exist.
          at org.apache.jackrabbit.core.version.InternalVersionHistoryImpl#getVersion:277
          at org.apache.jackrabbit.core.version.VersionHistoryImpl#getVersion:138
          at org.ametys.plugins.repository.jcr.DefaultAmetysObject#switchToRevision:183
          ... 46 more {code}
          New: Données de demo : erreur lors de la restauration sur une conteneur

          *Steps to reproduce*
          # On ODF demo data
          # Open the organization of the program "Licence Histoire et Géographie"
          # Select the container "Licence 1 Histoire et Géographie"
          # Open the workflow history
          !image-2022-10-10-18-26-30-637.png!
          # Click on "Version 1"
          !image-2022-10-10-18-26-43-001.png|width=570,height=465!

          It is associated to the following log:
          {code:java}
          Pile d'appels :
          org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
          at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:187:109
          at org.apache.cocoon.ProcessingException#throwLocated:113
          at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:122
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
          at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
          at org.apache.cocoon.Cocoon#process:699
          at org.ametys.runtime.servlet.RuntimeServlet#service:580
          at javax.servlet.http.HttpServlet#service:741
          at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:231
          at org.apache.catalina.core.ApplicationFilterChain#doFilter:166
          at org.apache.tomcat.websocket.server.WsFilter#doFilter:53
          at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:193
          at org.apache.catalina.core.ApplicationFilterChain#doFilter:166
          at org.apache.catalina.core.StandardWrapperValve#invoke:202
          at org.apache.catalina.core.StandardContextValve#invoke:96
          at org.apache.catalina.authenticator.AuthenticatorBase#invoke:541
          at org.apache.catalina.core.StandardHostValve#invoke:139
          at org.apache.catalina.valves.ErrorReportValve#invoke:92
          at org.apache.catalina.valves.AbstractAccessLogValve#invoke:688
          at org.apache.catalina.core.StandardEngineValve#invoke:74
          at org.apache.catalina.connector.CoyoteAdapter#service:343
          at org.apache.coyote.http11.Http11Processor#service:375
          at org.apache.coyote.AbstractProcessorLight#process:65
          at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:868
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1639
          at org.apache.tomcat.util.net.SocketProcessorBase#run:49
          at java.base/java.util.concurrent.ThreadPoolExecutor#runWorker:1136
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker#run:635
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable#run:61
          at java.base/java.lang.Thread#run:833
          Caused by: org.ametys.plugins.repository.UnknownAmetysObjectException: There's no revision : undefined
          at org.ametys.plugins.repository.jcr.DefaultAmetysObject#switchToRevision:188
          at org.ametys.cms.content.GetContentAction#act:105
          at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode#invoke:125
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
          at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
          at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
          ... 34 more
          Caused by: javax.jcr.version.VersionException: Version {}undefined does not exist.
          at org.apache.jackrabbit.core.version.InternalVersionHistoryImpl#getVersion:277
          at org.apache.jackrabbit.core.version.VersionHistoryImpl#getVersion:138
          at org.ametys.plugins.repository.jcr.DefaultAmetysObject#switchToRevision:183
          ... 46 more {code}
          Bérénice Maurel made changes -
          Summary Original: Données de demo : erreur lors de la restauration sur une conteneur New: Error while viewing a content to restore

            bmaurel Bérénice Maurel
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: