Uploaded image for project: 'Magnolia Templating Essentials'
  1. Magnolia Templating Essentials
  2. MTE-114

Module is not compatible with site module shipped with M6.1 and M6.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.4, 1.5
    • 1.2.3
    • None
    • Magnolia 6.2.1-SNAPSHOT, Site 1.3
    • Yes
    • UI Framework 22

    Description

      To reproduce

      • Pages app -> /travel
      • images are broken

      Trying to request one of the images directly throws the error below. E.g.
      http://localhost:8080/magnoliaPublic/.imaging/mte/travel-demo-theme/1600x1200/dam/tours/flickr-bike-pierce-martin-9812237694_8112ca89ea_o.jpg/jcr:content/flickr-bike-pierce-martin-9812237694_8112ca89ea_o.jpg

      java.lang.NoSuchMethodError: info.magnolia.module.site.SiteModule.getTheme(Ljava/lang/String;)Linfo/magnolia/module/site/theme/Theme;
      	info.magnolia.templating.imaging.parameters.ThemeAwareParameter.getImageVariation(ThemeAwareParameter.java:67)
      	info.magnolia.templating.imaging.ThemeAwareImageGenerator.resolveImageVariation(ThemeAwareImageGenerator.java:94)
      	info.magnolia.templating.imaging.ThemeAwareImageGenerator.generate(ThemeAwareImageGenerator.java:67)
      	info.magnolia.imaging.DefaultImageStreamer.serveImage(DefaultImageStreamer.java:61)
      	info.magnolia.imaging.caching.CachingImageStreamer.generateAndStore(CachingImageStreamer.java:226)
      

      This is related to deprecation removal, see https://git.magnolia-cms.com/projects/MODULES/repos/site/commits/bdbb2e0

      /**
       * @deprecated since 1.0.6 - use {@link ThemeRegistry} IoC instead.
       */
      @Deprecated
      public Theme getTheme(String name)
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                fgrilli Federico Grilli
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 44m
                      44m

                      Jenkins

                        No builds found.