Error when trying to add idp-review-user-profile.ftl
See original GitHub issueHi,
I’ve tried to implement idp-review-user-profile.ftl
in my keycloakify project (specifing the ftl in extraPages etc.) but the page returns a “Internal Server Error”.
Apparently, there’s an issue in ftl_object_to_js_code_declaring_an_object
, as the logs suggest :
{"refId":2,"exceptionType":"freemarker.core._MiscTemplateException","message":"When calling function \"ftl_object_to_js_code_declaring_an_object\", required parameter \"object\" (parameter #1) was specified, but had null/missing value.\n\n----\nTip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a default value for it with the \"!\" operator, like paramValue!defaultValue.\n----\n\n----\nFTL stack trace (\"~\" means nesting-related):\n\t- Failed at: #function ftl_object_to_js_code_decla... [in template \"idp-review-user-profile.ftl\" in function \"ftl_object_to_js_code_declaring_an_object\" at line 86, column 1]\n\t- Reached through: ${ftl_object_to_js_code_declaring_an_... [in template \"idp-review-user-profile.ftl\" at line 7, column 1]\n----","frames":
Do you have any idea on how we could fix this?
Thanks 🙏
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:11 (3 by maintainers)
@Romcol,
Ok! Nice to know it’s releated.
Sorry for not answering your message on the other issue yet.
I’m still in vacation but I promise we are going to sort this out!
@Romcol @garronej You were right patching using your PR fixed it. Thanks a lot!