Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-7291

caching issue exposed when creating agenda for new context

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-10020Cannot copy a rule right after the agenda is created
      KULRICE-13872When saving a new agenda, user must tab off of context field or use context lookup to prevent validation error
      KULRICE-12753Context not being set when typed into field in Agenda editor
      KULRICE-12639Agenda Lookup: Search box overlaps Create New link
      KULRICE-11534Create New Agenda requires two blur events to fully render Type when Context is typed in (first renders label, second renders select)
      KULRICE-13076Javascript error searching for Create New Agenda Context, close button is inop
      KULRICE-12468Clicking on agenda context lookup populates value right away
      KULRICE-5933Error saving a newly created agenda with a new rule.
      KULRICE-7626Expose relationship between Context and TermSpecification at the DTO level
      KULRICE-7116Copying a context moves all existing agenda items to the new context
    • 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?

        Activity

        Hide
        Peter Giles (Inactive) added a comment -

        See NamespaceMaintainableImpl for an example of manually flushing a cache.

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

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel