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

Item Selector - Unable to create JSON Object console error

    Details

      Description

      Console is throwing errors when accessing the Item Selector after an image has been uploaded.

      Steps to Reproduce:

      1. Navigate to Content > Blogs;
      2. Click on '+' to add a new blog entry;
      3. Add a new blog entry and click Select File to add a new cover image;
      4. Add a cover image greater than 1MB;
      5. Publish the blog entry;
      6. Click on the '+' button to add another blog entry;
      7. Click on Select File to add a new cover image.

      Expected result: There are no console errors and a user can add cover image to a new blog entry.
      Actual result: A user can add a cover image to a new blog entry, but publishing the blog entry yields "Your request completed successfully" and "Your request failed to complete." Console errors are as follows:

      16:40:50,379 ERROR [http-bio-8080-exec-1][ItemSelectorBrowserUtil:167] Unable to create a JSON object from: {key: Size, value: 1,017KB}
      com.liferay.portal.kernel.json.JSONException: org.json.JSONException: Expected a ':' after a key at character 27
      

      https://gist.github.com/nikki-pru/a0d1bda58326d5f0a007
      Reproduced on:
      Tomcat 7.0.62 + MySQL 5.6. Portal master GIT ID: 028c228665fa72f04faf27370ac50382328c30a7.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nikki.prudencio Nikki Prudencio
                Reporter:
                nikki.prudencio Nikki Prudencio
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 17 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 Alpha 2