Project

General

Profile

Actions

Task #814

closed

Display specific error in script in GUI

Added by Petr Michal about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Scripts
Target version:
Start date:
11/03/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

When you try to save uncomplicable script. In application server log you have full stacktrace with error and affected line.
But in GUI is just shor info, that script cannot be comliled. It should show specific problem, which is now in server log.

Actions #1

Updated by Ondřej Kopr about 7 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Ondřej Kopr about 7 years ago

I added new error GROOVY_SCRIPT_SYNTAX_VALIDATION and new catch for validate script. This statement catch MultipleCompilationErrorsException and parse from this error message with line and token.

Commit: https://github.com/bcvsolutions/CzechIdMng/commit/e11d7c72501752531d1de41f4fe959b2f7777bbe

Please Petr could you make a review and tests? After you complete this review give this ticket also for feedback to Radek, he check code and style. Thank you.

Actions #3

Updated by Ondřej Kopr about 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Petr Michal
  • % Done changed from 0 to 90
Actions #4

Updated by Ondřej Kopr about 7 years ago

  • Assignee changed from Petr Michal to Radek Tomiška

Radek pleas could you? :)

Actions #6

Updated by Radek Tomiška about 7 years ago

  • Status changed from Needs feedback to Closed
  • Assignee changed from Radek Tomiška to Ondřej Kopr
  • Target version set to Forsterite (7.6.0)
  • % Done changed from 90 to 100

I did review and test, it's nice, thx!

Actions

Also available in: Atom PDF