Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-7291

caching issue exposed when creating agenda for new context

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRMS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      1. Create a new Context in the KR-SAP namespace
      2. create new permission
        • using template "KRMS Agenda Permission"
        • set name to "Maintain KRMS Agenda"
        • set namespace to KR-SAP
      3. add permission to the "Kuali Rules Management System Administrator" role
      4. From Main tab click "Create New Agenda" link
      5. Set namespace to "Sample App"
      6. Set name to anything
      7. Use lookup to set context to the one you created above
        • You'll get the intermediate result of an "Invalid Context" message
      8. Click "Save" button
        • You'll get the intermediate result of an additional "Namespace - Invalid namespace" error.
      9. Open another tab, and go to the cache manager and flush all caches
      10. Go back to the first tab and save again
        • this time it's happy

      So I'm guessing that the permission cache isn't being cleared at the right time (for the invalid namespace issue), and the context cache isn't either on creation of a new one. Or, looking at org.kuali.rice.krms.impl.rule.AgendaEditorBusRule#validContextAgendaNamespace, maybe it's just the Context cache that needs clearing?

        Attachments

          Activity

          Hide
          gilesp Peter Giles (Inactive) added a comment -

          See NamespaceMaintainableImpl for an example of manually flushing a cache.

          Show
          gilesp Peter Giles (Inactive) added a comment - See NamespaceMaintainableImpl for an example of manually flushing a cache.
          Hide
          gilesp Peter Giles (Inactive) added a comment -

          added manual cache flush to ContextMaintainable.saveDataObject(...)

          Show
          gilesp Peter Giles (Inactive) added a comment - added manual cache flush to ContextMaintainable.saveDataObject(...)

            People

            • Assignee:
              gilesp Peter Giles (Inactive)
              Reporter:
              gilesp Peter Giles (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: