Uploaded image for project: 'Mobile App'
  1. Mobile App
  2. MOBILEAPP-48

ProjectEventObserver logs an error when adding an attachment to a page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0
    • None
    • None
    • None
    • 4.6 M1

      When an attachment is adding to a page, or a content, the ProjectEventObserver logs an error.
      It should not. Created resources are not necessary resources from projects.
      The ProjectEventObserver should only works when the resources is a project's resource.
      If not no error should be log.

      Moreover this observer is for MobileApp, it should be renamed. MobileNotificationOnProjectEventObserver ?

      Niveau : ERROR
      Catégorie : org.ametys.plugins.mobileapp.observer.ProjectEventObserver
      URI de la requête : /cms/generate/test-4-5-1/_plugins/front-edition/servercomm/messages.xml
      Message : Impossible to push a notification for event with id 'resource.created', no EventType or Project found.
      Emplacement : org.ametys.plugins.mobileapp.observer.ProjectEventObserver.observe(ProjectEventObserver.java:202)
      

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

              Created:
              Updated:
              Resolved: