Task #698
closedCannot see provisioning error detail
100%
Description
Audit -> Provisioning queue -> click on error detail raises:
app.js:17186 Uncaught Error: Objects are not valid as a React child (found: object with keys {test}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of `t`. at r (app.js:17186) at i (app.js:237773) at a (app.js:237801) at Object.instantiateChildren (app.js:226563) at g._reconcilerInstantiateChildren (app.js:232593) at g.mountChildren (app.js:232632) at g._createInitialChildren (app.js:228428) at g.mountComponent (app.js:228253) at Object.mountComponent (app.js:233256) at performInitialMount (app.js:227095) r @ app.js:17186 i @ app.js:237773 a @ app.js:237801 ...
Files
Updated by Ondřej Kopr over 7 years ago
- Assignee changed from Radek Tomiška to Ondřej Kopr
Updated by Radek Tomiška over 7 years ago
I am not able to reproduce this issue on develop (chrome, firefox).
Updated by Ondřej Kopr over 7 years ago
- Status changed from New to Needs feedback
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 0 to 90
I possible found main issue of this task:
HH set new attribute mapping (CREATED_TIMESTAMP) that has this transform script:
org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger("created logger") log.info("---created: [{}]", entity.created.toDate()) Map m = new HashMap() m.put("test", entity.created.toDate()) return m
After execute provisioning with this transform rule, provisioningContext was:
"provisioningContext" : { "accountObject" : { ... "USERNAME (SET)" : "test", "CREATED_TIMESTAMP (SET) sendAlways" : { "test" : "2017-06-28T12:42:30.122+0000" }, "EMAIL (SET)" : "example@example.tld", ... } }
When we want show detail provisioning operation (success/failed/..) we get this error:
Error: Objects are not valid as a React child (found: object with keys {test}). If you meant to render a collection of...
After consultation with Radek i was update method for fill accountData on FE. Thanks
fix is part develop
commit: https://github.com/bcvsolutions/CzechIdMng/commit/a89d5c80e616dc343c0ad3f424dbcade324ff24c
Radek could you make a review?
Updated by Radek Tomiška over 7 years ago
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 90 to 100
It's nice and it works, thx!