Uploaded image for project: 'XNAT'
  1. XNAT
  2. XNAT-6049

Orphaned experiments (no extension) cause NPE in permissions cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7.5.3
    • Fix Version/s: 1.7.6
    • Labels:
      None
    • Rank:
      0|ii1pn3:

      Description

      From discussion group post:

      2019-05-20 09:40:38,261 [ajp-bio-8009-exec-1] ERROR org.nrg.xdat.turbine.modules.screens.SecureScreen - 
      java.lang.NullPointerException: null key in entry: null=13
          at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:32)
          at com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:71)
          at com.google.common.collect.RegularImmutableMap.fromEntries(RegularImmutableMap.java:48)
          at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:359)
          at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:332)
          at org.nrg.xnat.services.cache.DefaultGroupsAndPermissionsCache.getTotalCounts(DefaultGroupsAndPermissionsCache.java:398)
          at org.nrg.xnat.services.cache.DefaultGroupsAndPermissionsCache$$FastClassBySpringCGLIB$$53c673ac.invoke(<generated>)

      I'm not sure of the root cause of this, but somehow a data type gets dropped from xdat_meta_element. When that happens, the extension value for experiments of that type gets set to null. Any experiments with a null value for extension then get grouped together in the query performed in the DefaultGroupsAndPermissionsCache.resetTotalCounts() method. This isn't something we want to fix in that code but it is something we should detect and then notify users about.

        Attachments

          Activity

            People

            Assignee:
            moore.c@wustl.edu Charlie Moore
            Reporter:
            jrherrick@wustl.edu Rick Herrick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h