Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-5343

Uploaded compilation error in script code prohibts midPoint startup

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.1
    • Fix Version/s: backlog
    • Component/s: None
    • Labels:

      Description

      it is possible to edit user template script code over debug pages and put compilation error to code (missing close bracket). But when this code is used at the first time, JVM is crashed and need to start tomcat again.

      It is possible to validate it before upload?

       

      2019-05-13 15:55:57,461 [] [Thread-310654] ERROR (com.evolveum.midpoint.model.common.expression.script.ScriptExpression): Expression error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      Script275.groovy: 22: expecting ')', found 'if' @ line 22, column 5.
      if (!basic.isEmpty(manager) {
      ^

      1 error
      in (old) expression in mapping 'Validate if manager is calculable from existing attributes' in objectTemplate:10000000-0000-0000-0000-000000000222(User Template)
      com.evolveum.midpoint.util.exception.ExpressionEvaluationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      Script275.groovy: 22: expecting ')', found 'if' @ line 22, column 5.
      if (!basic.isEmpty(manager) {
      ^

      1 error
      in (old) expression in mapping 'Validate if manager is calculable from existing attributes' in objectTemplate:10000000-0000-0000-0000-000000000222(User Template)
      at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.createCompiledScript(Jsr223ScriptEvaluator.java:202) ~[model-common-3.6.2-SNAPSHOT.jar:na]

      ...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                oscar Gustáv Pálos
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: