You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are defining a mapping to Managed User objects, and your Managed User object model does not have a preferences field, you cannot access the "Association" tab of the UI when editing the mapping. In addition, after opening the tab, you cannot access other tabs until you refresh the page.
Steps to Reproduce
Start OpenIDM with any project that has mappings (e.g. the "Getting Started" sample project).
Edit the "User" managed object and remove the "Preferences" field. (Alternatively, remove the field for the user object in the managed.json file)
Open Developer Tools in the browser and leave it open to the "Console" tab.
Back in the page, create a new mapping to the user object OR edit an existing mapping that references the user object.
Switch to the "Association" tab.
Attempt to expand and collapse the "Association Rules" section.
Attempt to switch to the "Properties" tab.
Examine the developer tools console.
Expected Results
No errors appear in the console during steps 5-10.
In step 8, the section opens.
In step 9, the view switches to the "Properties" tab.
Actual Results
The following error appears:
IndividualRecordValidationView.js:48 Uncaught TypeError: Cannot read property 'properties' of undefined
at s.<anonymous> (IndividualRecordValidationView.js?v=5.5.0-SNAPSHOT:48)
at lodash-3.10.1-min.js?v=5.5.0-SNAPSHOT:23
at lodash-3.10.1-min.js?v=5.5.0-SNAPSHOT:25
at Function.<anonymous> (lodash-3.10.1-min.js?v=5.5.0-SNAPSHOT:30)
at Object.<anonymous> (IndividualRecordValidationView.js?v=5.5.0-SNAPSHOT:46)
at Object.<anonymous> (jquery-2.1.1-min.js?v=5.5.0-SNAPSHOT:2)
at j (jquery-2.1.1-min.js?v=5.5.0-SNAPSHOT:2)
at Object.add [as done] (jquery-2.1.1-min.js?v=5.5.0-SNAPSHOT:2)
at Array.<anonymous> (jquery-2.1.1-min.js?v=5.5.0-SNAPSHOT:2)
at Function.each (jquery-2.1.1-min.js?v=5.5.0-SNAPSHOT:2)
In step 8, the section does not open.
In step 9, the view does not switch. All tabs stop responding.
The text was updated successfully, but these errors were encountered:
GuyPaddock
pushed a commit
to GuyPaddock/wrenidm
that referenced
this issue
Jun 30, 2018
Prevents `IndividualRecordValidationView.js:48 Uncaught TypeError: Cannot read property 'properties' of undefined` when the `preferences` field does not exist in a `user` managed object type.
Affected Versions
master
, at 834a17c)Summary
If you are defining a mapping to Managed User objects, and your Managed User object model does not have a
preferences
field, you cannot access the "Association" tab of the UI when editing the mapping. In addition, after opening the tab, you cannot access other tabs until you refresh the page.Steps to Reproduce
user
object in themanaged.json
file)Expected Results
Actual Results
The text was updated successfully, but these errors were encountered: