• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.10.0
    • 2.9.0
    • None
    • None
    • 4.7.0 RC3

      Bug:
      Some users are unable to access recent activities

      Log:

      Caused by: java.lang.NullPointerException: Cannot invoke "org.ametys.core.user.UserIdentity.equals(Object)" because "author1" is null
      at org.ametys.plugins.repository.activities.DefaultActivityType#isMergeable:109
      at org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityType#isMergeable:121
      at org.ametys.plugins.repository.activities.ActivityTypeExtensionPoint#mergeActivities:60
      at org.ametys.plugins.workspaces.activities.activitystream.ActivityStreamClientInteraction#getActivities:137
      at org.ametys.plugins.workspaces.activities.activitystream.ActivityStreamClientInteraction#getActivitiesForCurrentUser:385
      at org.ametys.plugins.workspaces.activities.activitystream.ActivityStreamClientInteraction#getActivitiesForCurrentUser:362
      at org.ametys.plugins.workspaces.activities.activitystream.ActivityStreamServiceAction#act:111
      at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode#invoke:125
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode#invoke:139
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
      at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
      ... 78 more
      Maybe there is an activity in one of the workspaces that doesn't contain the author node

       

          [WORKSPACES-1508] Unable to access recent activities

          James Hawken added a comment -

          Bug fixed (tested on latest nightly demo)
          I followed the steps mentionned in this issue :
          I was able to reproduce the bug using Ametys 4.6.0 (but not when using Ametys 4.7 latest snapshot)

          James Hawken added a comment - Bug fixed (tested on latest nightly demo) I followed the steps mentionned in this issue : I was able to reproduce the bug using Ametys 4.6.0 (but not when using Ametys 4.7 latest snapshot)

          Issue is split in two part. The bug leading to corrupted data being created will be handled in WORKSPACES-1509.

          Guillaume Gouin added a comment - Issue is split in two part. The bug leading to corrupted data being created will be handled in WORKSPACES-1509 .

          All incriminated activity were of type member.added.
          The isMergeable method should be more resilient but we should also investigate and fix how the situation happened in the first place as the author value should be mandatory on activities

          Guillaume Gouin added a comment - All incriminated activity were of type member.added. The isMergeable method should be more resilient but we should also investigate and fix how the situation happened in the first place as the author value should be mandatory on activities

            ggouin Guillaume Gouin
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: