Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10918

Multiple errors in logs when MetadataSetDefGenerator is called with null content

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.4.6, 4.5.0
    • None
    • None

    Description

      MetadataSetDefGenerator can be called with null content to sax model from a content type (use for UGC forms for example)

      When accessing to a UGC form, there are multiple errors in logs:

      java.lang.RuntimeException: complex key is not valid because it contains null values
      	at org.ametys.plugins.core.impl.cache.GuavaCache.put(GuavaCache.java:174)
      	at org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController._putInFirstCache(AbstractProfileStorageBasedAccessController.java:564)
      	at org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController._hasAnonymousAnyPermissionOnWorkspace(AbstractProfileStorageBasedAccessController.java:405)
      	at org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController.hasAnonymousAnyPermissionOnWorkspace(AbstractProfileStorageBasedAccessController.java:378)
      	at org.ametys.core.right.RightManager._hasRightOrRead(RightManager.java:387)
      	at org.ametys.core.right.RightManager._hasRightOrRead(RightManager.java:330)
      	at org.ametys.core.right.RightManager._hasRight(RightManager.java:323)
      	at org.ametys.core.right.RightManager.hasRight(RightManager.java:289)
      	at org.ametys.cms.content.MetadataSetDefGenerator._saxMetadataDefinition(MetadataSetDefGenerator.java:252)
      	at org.ametys.cms.content.MetadataSetDefGenerator._saxMetadataSetElement(MetadataSetDefGenerator.java:170)
      	at org.ametys.cms.content.MetadataSetDefByContentTypeGenerator._saxContentTypeMetadataSet(MetadataSetDefByContentTypeGenerator.java:86)
      	at org.ametys.cms.content.MetadataSetDefByContentTypeGenerator.generate(MetadataSetDefByContentTypeGenerator.java:49)
      

      Attachments

        Activity

          People

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: