Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-3752

MCC validées : Ajout d'entrée via l'interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.3, 4.9.0
    • 4.8.0
    • None
    • None
    • 4.9.0 M2
    • Oui

      Etapes de reproduction

      1. Depuis un conteneur, ouvrir "Voir les MCC validées"
      2. Appuyer sur +, on peut ajouter des entrées
      3. Enregistrer :
        Category:	org.ametys.plugins.core.ui
        Message:		Can not dispatch request '3' : 'cms' 'do-action/222222' '{values={_content.input.mcc-validated-pdf/size=2, _content.input.mcc-validated-pdf[1]/previous-position=-1, content.input.mcc-validated-pdf[1]/pdf={}, _content.input.mcc-validated-pdf[2]/previous-position=-1, content.input.mcc-validated-pdf[2]/pdf={}}, contentId=container://debd414e-84ed-4df7-8e4a-9d4ea0b14b2c, quit=true, content.view=mcc-validated-pdf, content.fallback.view=main, ignore.warnings=false}'
        Location:	org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
        Thrown:
        org.apache.cocoon.util.location.LocatedException: Can not dispatch request '3' : 'cms' 'do-action/222222' '{values={_content.input.mcc-validated-pdf/size=2, _content.input.mcc-validated-pdf[1]/previous-position=-1, content.input.mcc-validated-pdf[1]/pdf={}, _content.input.mcc-validated-pdf[2]/previous-position=-1, content.input.mcc-validated-pdf[2]/pdf={}}, contentId=container://debd414e-84ed-4df7-8e4a-9d4ea0b14b2c, quit=true, content.view=mcc-validated-pdf, content.fallback.view=main, ignore.warnings=false}'
        	at org.ametys.core.ui.dispatcher.DispatchGenerator._handleError(DispatchGenerator.java:314)
        	at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatchingSubRequest(DispatchGenerator.java:227)
        	at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:142)
        	at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:93)
        	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
        	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301)
        	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
        	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
        	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
        	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
        	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
        	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
        	at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
        	at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:717)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
        	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
        	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
        	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        	at java.base/java.lang.Thread.run(Thread.java:833)
        Caused by: org.apache.excalibur.source.SourceException: Cannot get input stream for cocoon://_plugins/cms/do-action/222222?values={_content.input.mcc-validated-pdf/size%3D2, _content.input.mcc-validated-pdf[1]/previous-position%3D-1, content.input.mcc-validated-pdf[1]/pdf%3D{}, _content.input.mcc-validated-pdf[2]/previous-position%3D-1, content.input.mcc-validated-pdf[2]/pdf%3D{}}&contentId=container://debd414e-84ed-4df7-8e4a-9d4ea0b14b2c&quit=true&content.view=mcc-validated-pdf&content.fallback.view=main&ignore.warnings=false&
        	at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:253)
        	at org.ametys.core.ui.dispatcher.DispatchGenerator._handleResponse(DispatchGenerator.java:266)
        	at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatchingSubRequest(DispatchGenerator.java:221)
        	... 70 more
        Caused by: org.xml.sax.SAXException: Could not get sitemap source cocoon://_plugins/cms/do-action/222222?values={_content.input.mcc-validated-pdf/size%3D2, _content.input.mcc-validated-pdf[1]/previous-position%3D-1, content.input.mcc-validated-pdf[1]/pdf%3D{}, _content.input.mcc-validated-pdf[2]/previous-position%3D-1, content.input.mcc-validated-pdf[2]/pdf%3D{}}&contentId=container://debd414e-84ed-4df7-8e4a-9d4ea0b14b2c&quit=true&content.view=mcc-validated-pdf&content.fallback.view=main&ignore.warnings=false&
        org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
        	at <map:mount> - file:/D:/Projets/AmetysV4/kernel/01_Runtime/master/main/kernel/sitemap.xmap:154:82
        	at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:380)
        	at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:215)
        	at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:68)
        	at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:208)
        	at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
        	at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
        	at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
        	at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
        	at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatchingSubRequest(DispatchGenerator.java:217)
        	... 70 more
        Caused by: org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
        	at <map:mount> - file:/D:/Projets/AmetysV4/kernel/01_Runtime/master/main/kernel/sitemap.xmap:154:82
        	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:113)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:122)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194)
        	at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267)
        	at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:333)
        	... 78 more
        Caused by: java.lang.Exception: Invalid action: '222222' for the workflow of instance id: '0' / content ''/ametys:plugins/odf/ametys:contents/container-licence-1-histoire-et-geographie' (container://debd414e-84ed-4df7-8e4a-9d4ea0b14b2c)' / current step '1' / user 'UserIdentity [login=admin, population=ametys-demo-users]'. Fail conditions are: Validation failed for content 'courseContent://54f2da5e-b980-4ad8-9d9f-800674426a23' on global validator 'org.ametys.plugins.odfpilotage.validator.CourseMccRegimeValidator' with errors [Le champ obligatoire Évaluation initiale / Session principale - Épreuves[1]/Type d'évaluation est rempli avec une valeur incompatible avec le régime d'évaluation, Le champ obligatoire Évaluation initiale / Session principale - Épreuves[2]/Type d'évaluation est rempli avec une valeur incompatible avec le régime d'évaluation]
        	at org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction._processInvalidActionException(AbstractWorkflowAction.java:174)
        	at org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction.act(AbstractWorkflowAction.java:84)
        	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
        	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194)
        	at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:111)
        	... 88 more
        Caused by: com.opensymphony.workflow.InvalidActionException: Action 222222 is invalid
        	at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:562)
        	at org.ametys.plugins.workflow.AbstractAmetysWorkflow.doAction(AbstractAmetysWorkflow.java:165)
        	at org.ametys.cms.workflow.ContentWorkflowAction._act(ContentWorkflowAction.java:69)
        	at org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction.act(AbstractWorkflowAction.java:74)
        	... 101 more

      Quand je supprime ces mêmes entrées, je ne peux toujours pas enregistrer.
      De plus, peut être que la date et le fichier devraient être obligatoires, même s'ils sont en "cannot write". Pour éviter tout enregistrement avec des droits étendus.

            ldurand Laurie Durand
            bmaurel Bérénice Maurel
            Laurie Durand Laurie Durand
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: