Uploaded image for project: 'Front Edition'
  1. Front Edition
  2. FRONTEDIT-86

FrontEdition - Doesn't work with fields based on references tables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.3.1
    • 1.3.0
    • None
    • 4.2 M5

      It is impossible to update a field, which list of options comes from a reference table, because the request sent to the server contains a truncated value of the selected id, as below :

      "1":{"pluginOrWorkspace":"cms","responseType":"xml","url":"do-action/42","parameters":{"contentId":"content://85e48311-f1e4-4106-8403-3bbd372b6258","quit":true,"values":{"content.input.geoPosition":"c"}}

       

      It causes the error:

      2018-07-12 17:08:04,932 ERROR [org.ametys.cms.workflow.EditContentFunction] (http-nio-8080-exec-7;/generate/intranet/_plugins/front-edition/servercomm/messages.xml) Content reference invalid at path 'geoPosition',
      value 'c'
      org.ametys.plugins.repository.AmetysRepositoryException: An object id must conform to the <protocol>://<protocol-specific-part> syntax: c
              at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:298)
              at org.ametys.cms.workflow.EditContentFunction._bindContentField(EditContentFunction.java:2331)
              at org.ametys.cms.workflow.EditContentFunction._bindAndValidateContentReferenceMetadata(EditContentFunction.java:2270)
              at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadata(EditContentFunction.java:856)
              at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadataSetElement(EditContentFunction.java:628)
              at org.ametys.cms.workflow.EditContentFunction._bindAndValidateContent(EditContentFunction.java:578)
              at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:326)
              at sun.reflect.GeneratedMethodAccessor281.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:177)
              at com.sun.proxy.$Proxy34.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)
      
      

       

            Unassigned Unassigned
            delphine Delphine Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: