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

Application and policy templates through the API gives error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.6.9
    • 2.6.6, 2.6.7, 2.6.8
    • API
    • None

    Description

      In 2.6.6, class StemTemplateContainer was renamed to GroupStemTemplateContainer. This affected class GroupStemTemplateContainer, which was putting in a custom EL template variable for stemTemplateContainer.

       

      ERROR java.lang.RuntimeException:
      Error substituting string: 'This group is the allow policy for the policy group "${grouperRequestContainer.groupStemTemplateContainer.currentServiceAction.argMap['overallGroupDisplayName']}".  This group should generally contain ref groups.',
      Problem with key: 'policyGroupAllowDescription', value: 'This group is the allow policy for the policy group "${grouperRequestContainer.groupStemTemplateContainer.currentServiceAction.argMap['overallGroupDisplayName']}".  This group should generally contain ref groups.'
              at edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage (GrouperUtil.java:10919)
              at edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer.massageText (GrouperTextContainer.java:205)
              at edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer.massageText (GrouperTextContainer.java:167)
              at edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer.textValue (GrouperTextContainer.java:155)
              at edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer.access$000 (GrouperTextContainer.java:27)
              at edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer$1.get (GrouperTextContainer.java:225)
              at edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer$1.get (GrouperTextContainer.java:218)
              at edu.internet2.middleware.grouper.grouperUi.beans.ui.GrouperTemplatePolicyGroupLogic.getServiceActions (GrouperTemplatePolicyGroupLogic.java:334)
              at edu.internet2.middleware.grouper.grouperUi.beans.ui.GrouperTemplatePolicyGroupLogic$getServiceActions.call (Unknown Source)
              at HelperMethods.newPolicyTemplate (groovysh_evaluate:73)
              at HelperMethods$newPolicyTemplate$3.call (Unknown Source)
      

      When running from the UI, grouperRequestContainer is null. Through some EL weirdness, it ignores that and tries to evaluate groupStemTemplateContainer. So we probably just need to rename the custom variable to this.
       

      Attachments

        Activity

          People

            chad.redman@at.internet2.edu Chad Redman (unc.edu)
            chad.redman@at.internet2.edu Chad Redman (unc.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: