Uploaded image for project: 'Magnolia Data Module (closed)'
  1. Magnolia Data Module (closed)
  2. MGNLDATA-256

EditDataActionDefinition does not support datatypes with namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.3, 2.3.1
    • 2.2.2, 2.3

      We migrated our old custom data types to separate workspaces and created apps for each one as recommended. We also migrated our datatypes and added the namespace prefix 'mgnl:' (e.g. rating -> mgnl:rating) to each of them

      In one case we have a tree view with two different data types. Therefore we used the EditDataActionDefinition from the data module to handle the default action properly. The "subAppMapping", which maps each datatype to the correct sub app, requires as jcr name the data type and as value the sub app.

      Problem:
      jcr names can't contain ':' which is used as separator for namespace and datatype name.

      My workarround:
      To solve this issue i encoded the jcr name (e.g. mgnl%3Arating) and added a decoding in the method 'setSubAppMapping' of my extended EditDataActionDefinition class.

        Acceptance criteria

              rkovarik Roman Kovařík
              eruf Erich Ruf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: