UserManager cache not flushed on config import

XMLWordPrintable

    • 3.13

      We are using Jira with Crowd and storing some properties per user using PropertySets:

      propertySet = UserUtils.getUser(username).getPropertySet();
      

      This propertySet set works fine until you import config. Then it stops working with exception:

      2008-09-12 13:34:11,781 http-2990-Processor17 ERROR [[Catalina].[localhost].[/jira].[action]] Servlet.service() for servlet action threw exception
      com.opensymphony.module.propertyset.PropertyException: Property with key: '##UserBrowseHistory##testadmin##0' cannot be set
              at com.atlassian.crowd.integration.osuser.PrioritizedCompositePropertySet.setImpl(PrioritizedCompositePropertySet.java:178)
      

      Looks like problem is in ExternalEntityJiraProfileProvider that doesn't flush cache in externalEntityStore.

      See attached patch for quick fix

        1. patch.txt
          2 kB
          DusanA

              Assignee:
              Dushan Hanuska [Atlassian]
              Reporter:
              DusanA
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Time Spent - 2h Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - 2h Remaining Estimate - 1h
                  2h