Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-201

Concurrent image generation jobs generate more images than necessary

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 3.3.1
    • None
    • None

    Description

      Removing the Content API from the Imaging module (MGNLIMG-200) revealed an issue with the generation of uncached images in the following test info.magnolia.imaging.caching.CachingImageStreamerRepositoryTest#testRequestForSimilarUncachedImageOnlyGeneratesItOnce.

      ContentParameterProviderFactory used to wrap Content with a SimpleEqualityContentWrapper providing equals and hashCode methods which would eventually allow storing them by CacheBuilder (see c-tor of CachingImageStreamer). Such wrapper does not exist for Node, hence using e.g. BinaryNodeIdentifierParameterProviderFactory would cause the generated images to be never cached locally thus generating and saving the same image multiple times.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                fgrilli Federico Grilli
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD