Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-701

RS if the parameters of the getPassedWithCourseId are integer and not strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.4.4, 9.0.1
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce, set an access rule with: getPassedWithCourseId(3867476)

      RedScreen on learn.olat.com (tomcat9) 8.4.3
      2013-08-19 10:16:02,306 [ajp-8029-1] ERROR OLATRuntimeException - OLAT::ERROR % N9-E2 % org.olat.core.logging
      https://learn.olat.com/olat/auth/1%3A1%3A9000024904%3A2%3A0%3Acid%3Acmd.filter.0/?filter=%2Folat%2Fauth%2F1%253A1%253A9000024904%253A2%253A0%253Acid%253Acmd.filter.0%2F %
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13
      *RedScreen* java.lang.Integer cannot be cast to java.lang.String ::_::
      <dispatchinfo>
      <componentinfo>
      <compname>ffo_main_null</compname>
      <compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      <extendedinfo></extendedinfo>
      <event></event>
      </componentinfo>
      <controllerinfo></controllerinfo>
      </dispatchinfo>
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: java.lang.Integer cannot be cast to java.lang.String
      -> at org.olat.course.condition.interpreter.ConditionInterpreter.handleExpressionExceptions(ConditionInterpreter.java:264)
      at org.olat.course.condition.interpreter.ConditionInterpreter.syntaxTestExpression(ConditionInterpreter.java:199)
      at org.olat.course.editor.CourseEditorEnvImpl.validateConditionExpression(CourseEditorEnvImpl.java:228)
      at org.olat.course.condition.ConditionConfigExpertForm.validateFormLogic(ConditionConfigExpertForm.java:83)
      at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:480)
      at org.olat.core.gui.components.form.flexible.impl.elements.FormSubmit.dispatchFormRequest(FormSubmit.java:76)
      at org.olat.core.gui.components.form.flexible.impl.FormItemImpl.doDispatchFormRequest(FormItemImpl.java:515)
      at org.olat.core.gui.components.form.flexible.impl.Form.evalFormRequest(Form.java:293)
      at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.doDispatchRequest(FormWrapperContainer.java:86)
      at org.olat.core.gui.components.Component.dispatchRequest(Component.java:192)
      at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1121)
      >>> stack of 2.cause::java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
      -> at org.olat.course.condition.interpreter.score.GetPassedWithCourseIdFunction.call(GetPassedWithCourseIdFunction.java:73)
      at com.neemsoft.jmep.FNCToken.evaluate(FNCToken.java:50)
      at com.neemsoft.jmep.Expression.evaluate(Expression.java:763)
      at org.olat.course.condition.interpreter.ConditionInterpreter.syntaxTestExpression(ConditionInterpreter.java:186)
      at org.olat.course.editor.CourseEditorEnvImpl.validateConditionExpression(CourseEditorEnvImpl.java:228)
      at org.olat.course.condition.ConditionConfigExpertForm.validateFormLogic(ConditionConfigExpertForm.java:83)
      at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:480)
      at org.olat.core.gui.components.form.flexible.impl.elements.FormSubmit.dispatchFormRequest(FormSubmit.java:76)
      at org.olat.core.gui.components.form.flexible.impl.FormItemImpl.doDispatchFormRequest(FormItemImpl.java:515)
      at org.olat.core.gui.components.form.flexible.impl.Form.evalFormRequest(Form.java:293)
      at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.doDispatchRequest(FormWrapperContainer.java:86)

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            kscherer Kirsten Scherer
            Tester:
            Kirsten Scherer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m