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

MgnlContext.doInsystemContext: binary incompatible change in version 4.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.2.2
    • 4.2, 4.2.1
    • core
    • None

    Description

      The change to the signature in MgnlContext.doInsystemContext() introduced for MAGNOLIA-2921 introduced a binary incompatibility with everything was compiled with al older version.
      Changing the return value from "void" to "java.lang.Void" causes the following exception:

      2009-11-29 15:32:44,998 ERROR info.magnolia.cms.servlets.MVCServletHandlerImpl  : can't call command: show
      java.lang.NoSuchMethodError: info.magnolia.context.MgnlContext.doInSystemContext(Linfo/magnolia/context/MgnlContext$SystemContextOperation;)V
      	at net.sourceforge.openutils.mgnlmedia.media.utils.ImageUtils.checkOrCreateResolution(ImageUtils.java:565)
      	at net.sourceforge.openutils.mgnlmedia.media.utils.ImageUtils.checkOrCreateResolution(ImageUtils.java:511)
      	at net.sourceforge.openutils.mgnlmedia.media.types.impl.ImageTypeHandler.getThumbnailUrl(ImageTypeHandler.java:48)
      	at net.sourceforge.openutils.mgnlmedia.media.pages.MediaFolderViewPage.show(MediaFolderViewPage.java:257)
      

      According to the comments in MAGNOLIA-2921 this should not be what expected, the original method should have been deprecated without changes (and it actually has been deprecated, but after such modification), and a new method has been added.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                had Jan Haderka
                fgiust Fabrizio Giustina
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD