Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-19012

Missing key: content invalid.condition.argument.outside.range

    XMLWordPrintable

    Details

      Description

      Add a Resource item

      Set a condition with the rule "Grade is greater than or equal to". Select a point value that exceeds the GB point value for the item.

      Alert: [missing key: content invalid.condition.argument.outside.range] 10.0.

      Log entry is:

      2010-08-21 18:22:15,118 WARN http-8080-Processor23 org.sakaiproject.util.ResourceLoader - bundle 'content' missing key: 'invalid.condition.argument.outside.range' from: org.sakaiproject.content.tool.ResourcesAction.doReviseProperties(ResourcesAction.java:6749)

      Also looks like the key invalid.condition.argument is not defined:

      /data/src/trunk/content $ grep -r invalid.condition * | grep -v svn
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourceConditionsHelper.java: VelocityPortletPaneledAction.addAlert(state, rb.getString("conditions.invalid.condition.argument"));
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java: addAlert(state, rb.getString("invalid.condition.argument"));
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java: addAlert(state, rb.getString("invalid.condition.argument.outside.range") + " " + item.getConditionAssignmentPoints() + ".");
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java: addAlert(state, rb.getString("invalid.condition.argument"));
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java: addAlert(state, rb.getString("invalid.condition.argument.outside.range") + " " + item.getConditionAssignmentPoints() + ".");
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java: addAlert(state, rb.getString("invalid.condition.argument"));
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java: addAlert(state, rb.getString("invalid.condition.argument.outside.range") + " " + newFolder.getConditionAssignmentPoints() + ".");
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java: addAlert(state, rb.getString("invalid.condition.argument"));
      content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java: addAlert(state, rb.getString("invalid.condition.argument.outside.range") + " " + newFile.getConditionAssignmentPoints() + ".");

      Also the outside range message should be constructed with a parameter for the points value rather than being appended to the string.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  zach.thomas@txstate.edu Zach A. Thomas
                  Reporter:
                  smarquard Stephen Marquard
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration