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

CommandsManager spams startup logs with deprecation warnings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.2.19
    • 6.2.17
    • None

    Description

      Steps to reproduce

      1. Start Magnolia 6
      2. See the following deprecation warning(s) in the startup-logs:
      2022-03-08T10:46:59,202 WARN  info.magnolia.cms.util.WorkspaceObservingManager  : A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
      2022-03-08T10:46:59,202 WARN  info.magnolia.cms.util.DeprecationUtil            : A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
      A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
      A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
       

      Expected results

      No warnings about deprecated classes CommandsManager and WorkspaceObservingManager 

      Actual results

      CommandsManager still uses the deprecated method reload()

      (line 268)

      and produces warnings in the logs

      Workaround

      Development notes

      Remove the deprecation utility call and leave the annotation
       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                agomez Alejandro Gomez
                t.i.molenaar Tim Molenaar
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD