Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-15590

UserManager cache not flushed on config import

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Activity

          People

            dushan@atlassian.com Dushan Hanuska [Atlassian]
            dhornik DusanA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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