Description of problem: See description in bug 1173089 comment 0. While the issue of defaults was fixed (by not adding the annotation automatically), the issue for duplicate position values persists. The Error pop-up in GRE needs not to be blank - there should be a message of why the validation fails. Version-Release number of selected component (if applicable): 6.1 ER5 Steps to Reproduce: 1. Create a data object C1 with field f1, set Position to 0. Save. 2. Create a data object C2, set the superclass to C1, add field f2, set Position to 0. Save. 3. Create a guided rule, add C2 to 'when' section. 4. Validate the guided rule. Actual results: Step 4 - Error pop-up with no message, validation fails. Expected results: Step 4 - Error pop-up warning about duplicate position, validation fails.
Mike, given that eventually a user can push whatever "malicious" .java files into the git repository, I gues this is more related to how the guided rule editor manage certain errors. But no problem, I can take a look.
Walter, I agree... but it might be that it's Drools Core handling of the problem that needs fixing... if KieBuilder detected the issue and raised a Build error/warning.
fixed in master with the following commit: https://github.com/droolsjbpm/kie-wb-common/commit/b2910ffc0
I've tested the issue both in master and 6.3.x branches and now the expected validation error for the guided rule described use case is shown. See attached screenshots.
Created attachment 1082865 [details] Validaton error for master
Created attachment 1082866 [details] Validaton error for 6.3.x