Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-4098

Trim value when converting a classname

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Fixed
    • r2.12.09
    • r2.15.01
    • None
    • None

    Description

      If you export and save the XML of the editor configuration, an editor may pretty format the xml
      <sv:property sv:name="plugin.class" sv:type="String">
      <sv:value>org.hippoecm.frontend.editor.plugins.field.NodeFieldPlugin</sv:value>
      </sv:property>
      becomes
      <sv:property sv:name="plugin.class" sv:type="String">
      <sv:value>org.hippoecm.frontend.editor.plugins.field.NodeFieldPlugin
      </sv:value>
      </sv:property>

      The value now contains a newline character and some spaces, which breaks the editor (ClassNotFoundException). It would be nice if someone added a trim() before calling Class#forName(String name)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jasha joachimsthal Jasha Joachimsthal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: