Uploaded image for project: 'Magnolia Javascript Models'
  1. Magnolia Javascript Models
  2. JSMODELS-14

The registration of components for use in js models fails on Java 1.8.0_66

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0
    • 1.0
    • None
    • Kromeriz 104
    • 1

      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)
      

        Acceptance criteria

              jsimak Jaroslav Simak
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: