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

[Demo data] Donnée "domain"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.1.0
    • 4.1.0
    • None
    • None
    • 4.2 RC3

      Il y a deux points dans cette issue.

      Donnée non multiple
      La donnée "domain" est redéfinie comme non multiple dans la demo, mais les données sont stockées au format multiple. De ce fait, lorsque je veux modifier le domaine d'une formation, alors j'ai une exception :

      Multivalued property can not be set to a single value (an array of length one is OK): property /ametys:root/ametys:plugins/odf/ametys:contents/75/c9/program-fruai3182988bprh7agsxt2/ametys:domain
      javax.jcr.ValueFormatException: Multivalued property can not be set to a single value (an array of length one is OK): property /ametys:root/ametys:plugins/odf/ametys:contents/75/c9/program-fruai3182988bprh7agsxt2/ametys:domain 
          at org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:274) 
          at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:726) 
          at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2058) 
          at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2002) 
          at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) 
          at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1924) 
          at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1894) 
          at org.ametys.plugins.repository.metadata.jcr.JCRCompositeMetadata.setMetadata(JCRCompositeMetadata.java:1040) 
          at org.ametys.cms.content.external.ExternalizableMetadataHelper._setMetadata(ExternalizableMetadataHelper.java:633) 
          at org.ametys.cms.content.external.ExternalizableMetadataHelper._setMetadata(ExternalizableMetadataHelper.java:557) 
          at org.ametys.cms.content.external.ExternalizableMetadataHelper.setLocalMetadata(ExternalizableMetadataHelper.java:234) 
          at org.ametys.cms.workflow.EditContentFunction._setMetadata(EditContentFunction.java:5199) 
          at org.ametys.cms.workflow.EditContentFunction._synchronizeSingleContentReferenceMetadata(EditContentFunction.java:4351) 
          at org.ametys.cms.workflow.EditContentFunction._synchronizeContentReferenceMetadata(EditContentFunction.java:4176) 
          at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadata(EditContentFunction.java:2687) 
          at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadataSetElement(EditContentFunction.java:695) 
          at org.ametys.cms.workflow.EditContentFunction._bindAndValidateContent(EditContentFunction.java:591) 
          at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:324) 
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
          at java.lang.reflect.Method.invoke(Unknown Source) 
          at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:177) 
          at com.sun.proxy.$Proxy28.execute(Unknown Source) 
          at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:871) 
          at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1044) 
          at org.ametys.plugins.workflow.AbstractAmetysWorkflow.transitionWorkflow(AbstractAmetysWorkflow.java:212) 
          at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:567) 
          at org.ametys.plugins.workflow.AbstractAmetysWorkflow.doAction(AbstractAmetysWorkflow.java:164) 
          at org.ametys.cms.workflow.ContentWorkflowAction._act(ContentWorkflowAction.java:69) 
          at org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction.act(AbstractWorkflowAction.java:71) 
          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) 
          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) 
          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._dispatching(DispatchGenerator.java:149) 
          at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:92) 
          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:548) 
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) 
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) 
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) 
          at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) 
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) 
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) 
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) 
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) 
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 
          at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) 
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) 
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) 
          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) 
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) 
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539) 
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495) 
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
          at java.lang.Thread.run(Unknown Source) 

      Restriction de modification
      La donnée domaine avait été oubliée des champs stratégiques, il faut donc rajouter la restriction sur le droit "Champs stratégiques" dans la surcharge :

                  <restrict-to>
                      <right read-write-direction="write" id="ODF_Rights_Strategics_Fields"/>
                  </restrict-to>

            laurence Laurence Aumeunier
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: