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

Impossible to list users from visitor population in the cms

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.9.0
    • 4.9.0
    • None
    • None
    • 4.9.0 M9
    • Oui

      Steps to reproduce bug :
      -Assign a population as visitors only to a site (in _admin)

      -In the cms of that site, try and list users of the aforementioned population

       

      Bug: 

      Users aren't displayed

      Stacktrace : 

      org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'core-ui' 'client-call' '{role=org.ametys.plugins.core.user.UserDAO, id=null, methodName=searchUsersByPopulation, parameters=[XXXXXXXXX, 100, null, , true]}'
      Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.iterator()" because "c" is null
      at java.base/java.util.AbstractCollection#addAll:337
      at org.ametys.web.population.PopulationContextHelper#_getSharedCompatibleContexts:106
      at org.ametys.core.user.population.PopulationContextHelper#lambda$getSharedContextsForUserPopulations$2:332
      at org.ametys.plugins.core.impl.cache.GuavaCache$2#call:144
      at org.ametys.plugins.core.impl.cache.GuavaCache$2#call:140
      at com.google.common.cache.LocalCache$LocalManualCache$1#load:4903
      at com.google.common.cache.LocalCache$LoadingValueReference#loadFuture:3574
      at com.google.common.cache.LocalCache$Segment#loadSync:2316
      at com.google.common.cache.LocalCache$Segment#lockedGetOrLoad:2189
      at com.google.common.cache.LocalCache$Segment#get:2079
      at com.google.common.cache.LocalCache#get:4017
      at com.google.common.cache.LocalCache$LocalManualCache#get:4898
      at org.ametys.plugins.core.impl.cache.GuavaCache#get:139
      ... 107 more

       

            raphael Raphaël Franchet
            jhawken James Hawken
            Raphaël Franchet Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: