Uploaded image for project: 'DAM Focal'
  1. DAM Focal
  2. RESPDAM-51

REST endpoint returns error on ressources created in previous Magnolia version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • High
    • None
    • 2.0.6
    • None
    • None

    Description

      Steps to reproduce

      1.  Import dam.jel.test.ljdrujj-logo-fr..svg.xml (works)
        1. Image created with version 6.2.11
      2.  Import dam.jel.logos.ljdrujj-logo-fr..svg.xml (does not work)
        1. Image created with a previous 6.2.x version
      3. Compare the two files (see Capture.png) The only difference is :
        <sv:property sv:name="mgnl:created" sv:type="Date">
        <sv:value>2021-09-22T08:12:30.341-04:00</sv:value>
        </sv:property>
        <sv:property sv:name="mgnl:createdBy" sv:type="String">
        <sv:value>superuser</sv:value>
        </sv:property>
      4. Config rest end point for "image"
        1.  implementationClass: info.magnolia.dam.focal.rest.reference.AssetFocalReferenceResolver

      5. Call REST endpoint with implementationClass
        1. Ex: https://www.espacejeux.local/magnoliaAuthor/.rest/delivery/pages/v1/jel/inscription/demo/main/0/row/0/column/0?lang=ff
        2. Pointing directly to the working image : WORKS
        3. Pointing directly to the pb image : FAILED
        4. Comment implementClass
        5. Pointing directly to the pb image : WORKS.
        6. See testing.txt result.

      See Stacktrace.

      Expected results

      Should work with images that does not have thos lines:

      <sv:property sv:name="mgnl:created" sv:type="Date">
      <sv:value>2021-09-22T08:12:30.341-04:00</sv:value>
      </sv:property>
      <sv:property sv:name="mgnl:createdBy" sv:type="String">
      <sv:value>superuser</sv:value>
      </sv:property>

      Actual results

      Fail...

      Workaround

      We would have to re-create all our DAM resources (100+)

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          1. Capture1.PNG
            Capture1.PNG
            113 kB
          2. dam.jel.logos.ljdrujj-logo-en..svg.xml
            14 kB
          3. dam.jel.logos.ljdrujj-logo-en..svg (3).xml
            21 kB
          4. dam.jel.logos.ljdrujj-logo-fr..svg.xml
            16 kB
          5. dam.jel.test.ljdrujj-logo-fr..svg.xml
            16 kB
          6. jel_v1.yaml
            1 kB
          7. stack-trace.txt
            19 kB
          8. testing.txt
            3 kB

          Activity

            People

              amanzoni Adrien Manzoni
              sssimon Simon Tourville
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD