Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28815

Fix ThumbnailJsonEnricherTest on MongoDB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Thumbnail Service
    • Tags:
    • Team:
      FG
    • Sprint:
      nxFG 11.1.13
    • Story Points:
      1

      Description

      On MongoDB since NXP-26690 we have:

      org.junit.ComparisonFailure: expected : http://fake-url.nuxeo.com/api/v1/repo/test/id/00000000-0000-0000-0000-000000000000/@rendition/thumbnail?changeToken=null but was http://fake-url.nuxeo.com/api/v1/repo/test/id/00000000-0000-0000-0000-000000000000/@rendition/thumbnail?changeToken= expected:<...umbnail?changeToken=[null]> but was:<...umbnail?changeToken=[]>
      	at org.junit.Assert.assertEquals(Assert.java:117)
      	at org.nuxeo.ecm.core.io.marshallers.json.JsonAssert.isEquals(JsonAssert.java:279)
      	at org.nuxeo.ecm.platform.thumbnail.test.ThumbnailJsonEnricherTest.testThumbnailURL(ThumbnailJsonEnricherTest.java:68)
      

      This seems due to the fact that NXP-26690 slightly changed acquisition of the root document. The fix is simple.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m