Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6957

I18nNodeWrapper no longer wraps child-nodes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.4.12, 5.5.4
    • Component/s: i18n
    • Labels:
    • Sprint:
      Saigon 86, Saigon 87, Saigon 88, Saigon 89, Saigon 90
    • Story Points:
      5
    • Magnolia Release:
      5.4.12, 5.5.4

      Description

      As Magnolia 5.4.11/5.5.2 restores support for upload fields with i18n. It now appears that the mgnl:resource nodes created with i18n suffix are not properly accounted for.

      • First, it appears I18nNodeWrapper no longer delegates #getNode to the I18nContentSupport, as it does for properties, and as it did between 4.5.2 and 4.5.8.
      • Once we sort this out, we should ensure link generation gets it right.

      Thanks for reporting, Tom Wespi:

      I tested with 2 languages (de/en), created an i18n file upload field, uploaded 2 files (test_de.pdf, test_en.pdf) and created a link to them with cmsfn.link(content.file).

      It creates following, wrong link:
      /test/main/0/test_de.pdf
      /en/test/main/0/test_de.pdf

      The files are saved correctly under the node
      /test/main/0/file/filename ...
      /test/main/0/file_en/filename ...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oanh.thai Oanh Thai Hoang
              Reporter:
              mgeljic Mikaël Geljić
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3d Original Estimate - 3d
                  3d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 4d 5h
                  4d 5h