Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-325

Retrieving localized content via multi composite field using the .rest endpoint is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Neutral Neutral
    • None
    • 2.2.8
    • None

      Have jcrMultiField which are enable i18n = true like below:

      form:
        properties:
          title:
            i18n: true
            $type: textField
          addresses:
            label: Addresses
            i18n: true
            $type: jcrMultiField
            itemProvider:
              $type: currentItemProvider
            field:
              $type: compositeField
              properties:
                street:
                  label: Street name
                  $type: textField 

      Steps to reproduce

      1. Create one page from "test" template. See my light dev  test.zip
      2. Add 3 value for addresses fields in english form. See 
      3. Add 2 value for addresses fields in german form. See 
      4. Observe 5 address node in JCR browser. See 
      5. Call rest pages rest endpoint config in test light-dev. 
      6. Retrieve lang = all, and lang = en correctly. See   
      7. Retrieve lang = de incorrectly. See the red one is wrong 

      .. Logs, screenshots, gifs...

      Expected results

      Retrieve lang = de correctly. It means retrieve list [addresses0, addresses1] only 

      Actual results

      Retrieve lang = de incorrectly. See [addresses0, addresses1, addresses2]

      Workaround

      Development notes

        Acceptance criteria

          1. de-dialog.png
            de-dialog.png
            428 kB
          2. en-dialog.png
            en-dialog.png
            459 kB
          3. jcr-structure.png
            jcr-structure.png
            425 kB
          4. lang-all-get-correctly.png
            lang-all-get-correctly.png
            417 kB
          5. lang-de-get-incorrectly.png
            lang-de-get-incorrectly.png
            403 kB
          6. lang-en-get-correctly.png
            lang-en-get-correctly.png
            434 kB
          7. test.zip
            3 kB

              Unassigned Unassigned
              oanh.thai Oanh Thai Hoang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 3.5h Remaining Estimate - 0.5h
                    0.5h
                    Logged:
                    Time Spent - 3.5h Remaining Estimate - 0.5h
                    3.5h