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

Adding an image to Web Content does not work on IE11

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: WCM
    • Labels:

      Description

      Description

      When adding images to Web Content entries, the image will error with a NullPointerException in the logs, or "successfully add" but only put a newline in the UI, rather than an image

      Steps to Reproduce

      1. Navigate to Site Administration > Content > Web Content
      2. Add a new web content
      3. Click in the "Content" field >  "+" > add image 

      Two Possibilities:

      1. Select file 
      2. Add select an image from drive
         Expected Result: The image successfully uploads, and you can add to content
         Actual Result: The image shows a progress bar and "null", the logs throw NullPointerException
      1. Select an existing image from documents
      2. The image previews, add to content
        Expected Result: Image shows in content box
        Actual Result: Newline is placed instead of image

      Errors/Logs 

      (manually shortened)

      2019-02-05 23:26:30.034 ERROR [http-nio-8080-exec-5][PortletServlet:112] javax.portlet.PortletException: java.lang.NullPointerException
      javax.portlet.PortletException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:69)
      	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:378)
      	at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:97)
      	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:260)
      	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:77)
      	...
      Caused by: java.lang.NullPointerException
      	at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
      	at java.util.regex.Matcher.reset(Matcher.java:309)
      	at java.util.regex.Matcher.<init>(Matcher.java:229)
      	at java.util.regex.Pattern.matcher(Pattern.java:1093)
      	at com.liferay.upload.web.internal.DefaultUniqueFileNameProvider._removeParentheticalSuffix(DefaultUniqueFileNameProvider.java:60)
      	at com.liferay.upload.web.internal.DefaultUniqueFileNameProvider.provide(DefaultUniqueFileNameProvider.java:38)
      	at com.liferay.document.library.web.internal.upload.DLUploadFileEntryHandler.upload(DLUploadFileEntryHandler.java:77)
      	at com.liferay.upload.web.internal.DefaultUploadHandler._getResponseJSONObject(DefaultUploadHandler.java:79)
      	at com.liferay.upload.web.internal.DefaultUploadHandler.upload(DefaultUploadHandler.java:58)
      	at com.liferay.document.library.web.internal.portlet.action.UploadFileEntryMVCActionCommand.doProcessAction(UploadFileEntryMVCActionCommand.java:49)
      	at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:61)
      	... 172 more
      

      Master

      7867605ac60bbde9f9b09f0503a25e71f61efce9

      Branch
      Not reproducible on 7.0.x/7.1.x

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alfred.sampang Alfred Sampang
                Reporter:
                alfred.sampang Alfred Sampang
                Participants of an Issue:
                Recent user:
                Alfred Sampang
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  48 weeks, 4 days ago

                  Packages

                  Version Package