Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-64959

StringIndexOutOfBoundsException when saving FreeMarkerEngineConfiguration from System Settings

    Details

      Description

      Steps to reproduce:

      1. Go to System Settings -> Foundation -> FreeMarker Engine
      2. Save with allowedClasses to be empty

      Expected result: No errors in log
      Actual result:

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1                                                                                                                                                              
              at java.lang.String.substring(String.java:1967)                                                                                                                                                                               
              at com.liferay.portal.template.freemarker.LiferayTemplateClassResolver.findClassLoader(LiferayTemplateClassResolver.java:196)                                                                                                 
              at com.liferay.portal.template.freemarker.LiferayTemplateClassResolver.findClassLoader(LiferayTemplateClassResolver.java:224)                                                                                                 
              at com.liferay.portal.template.freemarker.LiferayTemplateClassResolver$ClassLoaderBundleTrackerCustomizer.addingBundle(LiferayTemplateClassResolver.java:304)                                                                 
              at com.liferay.portal.template.freemarker.LiferayTemplateClassResolver$ClassLoaderBundleTrackerCustomizer.addingBundle(LiferayTemplateClassResolver.java:297) 

        Attachments

          Activity

            People

            Assignee:
            ian.song Ian Song (Inactive)
            Reporter:
            tomas.polesovsky Tomáš Polešovský
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 47 weeks, 2 days ago

                Packages

                Version Package
                7.0.1 CE GA2