Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1281

An observer failed when adding an attachment to a page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.4.0
    • None
    • None
    • None
    • 4.6 M1

      When adding an attachment on a page, the ResourcesMailNotifierObserver failed with a ClassCastException

      Message : The synchronous observer 'org.ametys.plugins.workspaces.project.notification.ResourcesMailNotifierObserver' failed to observe event[id: resource.created, issuer: UserIdentity [login=admin, population=ametys_demo_users], args: [object.parent.path = /ametys-internal:sites/intranet/ametys-internal:sitemaps/fr/mon-organisation/l-institution/nouvelle-page/ametys-internal:attachments, resources = {resource://8940d683-695c-4fdb-90c9-f772d63d75ea='/ametys-internal:sites/intranet/ametys-internal:sitemaps/fr/mon-organisation/l-institution/nouvelle-page/ametys-internal:attachments/pexels-freestocksorg-1002778.jpg' (resource://8940d683-695c-4fdb-90c9-f772d63d75ea)}, object.parent = resources-collection://44e2f5c0-7b1c-41be-9f09-c669c21c730b]]Emplacement : org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46) 
      java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.List (java.lang.String and java.util.List are in module java.base of loader 'bootstrap')
      at org.ametys.core.right.RightManager#_getAllowedUsers:621
      at org.ametys.core.right.RightManager#getReadAccessAllowedUsers:536
      at org.ametys.plugins.workspaces.project.notification.AbstractSendNotificationObserver#getUsersToNotify:227
      at org.ametys.plugins.workspaces.project.notification.AbstractSendNotificationObserver#observe:127
      

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

              Created:
              Updated:
              Resolved: