Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5598

CKEditor requests ExecutionImpl.encodeURL with null value, causes NPE in embedded mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 10.0.0
    • 10.0.0, 9.6.4
    • None
    • Security Level: Jean
    • None

      Steps to Reproduce

      Run an empty ckeditor without attributes in an embedded zul file

      Current Result

      page fails to load, error stack contains NPE from ExecutionImpl.encodeURL()

      Expected Result

      Page loads

      Debug Information

      Ckeditor has a rendered attribute customConfigurationsPath which is passed through an encodeURL call
      In embedded mode, the encodeURL method calls Servlets.isUniversalURL, which checks for string length on a null value

      Workaround

      Put a default value into ckeditor's
      Attached lang-addon sets a default blank string instead of a null value

      Add lang-addon to project, add config in zk.xml

        <language-config>
      	     <addon-uri>/WEB-INF/lang-addon.xml</addon-uri>
      	</language-config>
      

            jamson jamson
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: