Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-632

Empty $type warning at startup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 3.0.0, 2.1.7
    • 2.0.15
    • None
    • magnolia-personalization-pages

    Description

      Steps to reproduce

      1. Start Magnolia 6
      2. Check the startup-logs
      3. See the following warning: 
        WARN  a.config.resolver.AnnotationProcessingTypeResolver: Encountered the '$type' property but failed to resolved the type from its value: [{}]. Available types: [jcrStatusColumn,variantAwareNameColumn,enumColumn,iconColumn,referredColumn,unhtmlColumn,columnComponent,jcrTypeColumn,iconAndValueColumn,koosCountColumn,jcrTitleColumn,jcrPathColumn,dateOnlyColumn,dateColumn] 
        
        

      Also check line 271 of info/magnolia/map2bean/Map2BeanTransformer.java and line 139 of info/magnolia/config/resolver/AnnotationProcessingTypeResolver.java

      The reason why it fails, is that in info/magnolia/personalization/magnolia-personalization-pages/2.0.15/magnolia-personalization-pages-2.0.15.jar!/personalization-pages/decorations/pages-app/apps/pages-app.yaml we have the following piece of configuration:

      (...)
      workbench:
        contentViews:
          tree:
            columns:
              jcrName:
                $type: !override
                class: info.magnolia.pages.app.browser.column.CachingVariantAwareTitleColumnDefinition
      (...) 

      Apparently, this is not the way to replace $type with another class; it reports an empty type.

      Expected results

      No warning should be logged on startup

      Actual results

      The logs are spammed with 50+ warnings

      Workaround

      -

      Development notes

       the $type: !override can be safely removed and it works 

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                thuy.to Thuy To
                t.i.molenaar Tim Molenaar
                AuthorX
                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 - 4h 50m
                      4h 50m