Project

General

Profile

Actions

Defect #2020

closed

After upgrade version to 10 isn't possible create automatic role rule concepts with different type than identity

Added by Ondřej Kopr about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Automatic roles
Target version:
Start date:
01/27/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

How to simulate:
  • create new automatic role by attribute,
  • create some rule and change type of rule to identity EAV (for example),
  • now save the rule,
  • page throw error:
    app.js:265854 Uncaught TypeError: Cannot read property 'isValid' of null
        at AbstractForm.isFormValid (app.js:265854)
        at AutomaticRoleRuleTable._saveConcept (app.js:290117)
        at HTMLUnknownElement.callCallback (app.js:178894)
        at Object.invokeGuardedCallbackDev (app.js:178944)
        at invokeGuardedCallback (app.js:179001)
        at invokeGuardedCallbackAndCatchFirstError (app.js:179015)
        at executeDispatch (app.js:179147)
        at executeDispatchesInOrder (app.js:179166)
        at executeDispatchesAndRelease (app.js:179272)
        at executeDispatchesAndReleaseTopLevel (app.js:179280)
    

The error comes from AutomaticRoleRuleTable but original issues will be probably with compose value form attribute in AutomaticRoleAttributeRuleDetail. The reference with refs.value doesn't exists after detail is re-rendered.

Simulated on clean version 10.0.0

Affected version: 10.0.0

Actions #1

Updated by Ondřej Kopr about 4 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Ondřej Kopr about 4 years ago

  • Assignee changed from Ondřej Kopr to Radek Tomiška
Actions #3

Updated by Radek Tomiška about 4 years ago

  • Target version changed from 10.1.0 to 10.0.1
Actions #4

Updated by Radek Tomiška about 4 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Radek Tomiška to Ondřej Kopr
  • % Done changed from 0 to 90

I fixed validation for eav attributes used in automatic role rule detail.

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/158aa6c7fb8e67e366871ceb7a9b90ee6795bcc4

Could yor provide me a feedback, please?

Actions #5

Updated by Ondřej Kopr about 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Ondřej Kopr to Radek Tomiška
  • % Done changed from 90 to 100

I made the feedback. Thank you for fix this issue. I tested on new hotfix branch and also after I merged this into my branch and both versions works! Thank you.

I also made a test on version 9.7.11 and on this version this also works well.

Thank you.

Actions #6

Updated by Radek Tomiška about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF