Created attachment 782733 [details] error when openning the process definition in the full Designer Description of problem: Designer allows users to add a variable with a whitespace in its name to the process definition. Validation doesn't show this as a problem, process can be saved and project can be built. It shows up in the Deployments and in the Process Definitions, the process can be started, value is assigned to the variable. The problem arises when user tries to open any kind of model - deployed process or instance or the process definition in the full Designer in the Authoring section. Designer never finishes loading and server log shows some errors. The process I used to test this is a simple Start -> End with a process variable called 'some var' of type String. Version-Release number of selected component (if applicable): kie-wb 6.0 CR1
Created attachment 782734 [details] error when openning the process or instance model
Created attachment 782735 [details] log after the process is saved
Created attachment 782736 [details] log after the project is built
Created attachment 782737 [details] process used for this issue
As in bug 991374, the process cannot be deleted via GUI since that functionality (for processes) is accessible from the Designer only.
process var editor has been changes to no longer accept white spaces. added validation error in case there are some vars that contain spaces.
It is no longer possible to add a variable with a whitespace. It is also impossible to import or open a process that contains a variable with whitespace in name. If you try to open such process, there is the already mentioned error and Designer never finishes loading. I'd consider that alright though, for these reasons: - you cannot add a variable with whitespace in the Designer - you'd have to change this manually and push the commit through git, - whitespaces aren't valid characters for id attribute - simplifying a bit, for the name of a variable - only alphanumeric chars, underscores, hyphens and periods should be (as far as I know) and are allowed, - the main issue is resolved. The problem with forever loading Designer is already covered by bug 1006734.