[JSMODELS-14] The registration of components for use in js models fails on Java 1.8.0_66 Created: 12/Jul/17  Updated: 17/Jul/17  Resolved: 13/Jul/17

Status: Closed
Project: Magnolia Javascript Models
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0

Type: Bug Priority: Major
Reporter: Christopher Zimmermann Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Kromeriz 104
Story Points: 1

 Description   

The components registered in the config workspace under

javascript-models/config/engineConfiguration/exposedComponents

does not function on early versions of 1.8
The earliest version where it is known to work is 1.8.0_121-b13.

To reproduce,

  • install java ... _66 or earlier.
  • Install the javascript-model-samples module.
  • Try to run the "browse contacts page"

Suggested fix:

  • If possible, get it to work on earlier versions.
  • Otherwise detect when someone tries to use it and display helpful message in the log about the problem and its resolution.
  • Try to determine in which version it starts working.
  • Document the issue in documentation.

Error:

2017-07-12 13:18:06,972 ERROR ndering.engine.ModeDependentRenderExceptionHandler: Error while rendering [/javascript-model-samples/browse-contacts/main] with template [null] for URI [/javascript-model-samples/browse-contacts.html]:
RenderException: <eval>:66 ReferenceError: "cmsfn" is not defined
info.magnolia.rendering.engine.RenderException: <eval>:66 ReferenceError: "cmsfn" is not defined
  at info.magnolia.templating.renderers.NoScriptRenderer.onRender(NoScriptRenderer.java:106)

Generated at Mon Feb 12 05:58:47 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.