Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1351

Failures in findAllChildStems

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.1, 2.3.0.patch
    • None
    • None

    Description

      A bug was introduced in this commit (patch 15):

      https://github.com/Internet2/grouper/commit/a42bf5de1c84851a59a6c027769d98c43842ff73

      Missing sql query in a couple of options:

            } else if (Stem.Scope.SUB == scope && ns.isRootStem()) {
              stemsSet = byHqlStatic
                .options(queryOptions)
                .setCacheable(false)
                .setCacheRegion(KLASS + ".FindChildStems")
                .setString("stem", Stem.DELIM)
                .listSet(Stem.class);
            } else if (Stem.Scope.SUB == scope) {
              stemsSet = byHqlStatic
                .options(queryOptions)
                .setCacheable(false)
                .setCacheRegion(KLASS + ".FindChildStems")
                .setString("scope", ns.getNameDb() + Stem.DELIM + "%")
                .listSet(Stem.class);
      

      So if you run findAllChildStems with a scope of sub, you'll get an error if you have this patch

      Attachments

        Activity

          People

            shilen.patel@at.internet2.edu Shilen Patel (duke.edu)
            shilen.patel@at.internet2.edu Shilen Patel (duke.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist