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

ConfigContext.getCurrentContextConfig() returns null at times in Rice testing lifecycle

    Details

    • Type: Bug Fix Bug Fix
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Similar issues:
      KULRICE-4047UIDocumentServiceImpl.getMember() can return null but is not handled
      KULRICE-8954Reduce object creation in component lifecycle
      KULRICE-12075Rice needs to support PessimisticLock lookups by date not date AND time
      KULRICE-9807DataDictionaryQualifierResolver.getDocumentEntry returns null
      KULRICE-10810Look into transaction view lifecycle
      KULRICE-8295Null handling in DocumentSearchCriteriaBo.groovy needs work
      KULRICE-1300Create new lifecycles to run the new unit test annotations
      KULRICE-8507IdentityCurrentAndArchivedServiceImpl.getPrincipals returns a null list if one of the principals is not found for the list of principalsIds passed in.
      KULRICE-14068IT Failure UifServletRequestDataBinderIntegrationTest tests
      KULRICE-1756When Suite Lifecycle startup fails, already started lifecycles are not stopped
    • Rice Module:
      KSB
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      If you break on line 50 of RESTServiceDefinition (in the constructor, right after the first check that config==null) and debug RESTServiceTest, you'll see what I mean.

      Even weirder, if you break at line 53 (right after the second check that config==null), and run all the KSB tests via maven, attaching the Eclipse debugger to the process (see http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html), you'll see that in RiceCacheAdministratorTest.testCache() even kludge #1 doesn't work.

      If you try to shortcut and just debug RiceCacheAdministratorTest (even in maven) without the other tests, it is able to get the Config. Yuck!

        Activity

        Hide
        Garey Taylor added a comment -

        Take a look at some of the other test classes that access the current context config.
        look at
        KewTestCase.java
        KSBTestCaes.java

        Show
        Garey Taylor added a comment - Take a look at some of the other test classes that access the current context config. look at KewTestCase.java KSBTestCaes.java

          People

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

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 1 day
              1d
              Remaining:
              Remaining Estimate - 1 day
              1d
              Logged:
              Time Spent - Not Specified
              Not Specified

                Structure Helper Panel