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



      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

      Reproduced on:
      Tomcat 7.0.62 + MySQL 5.6. Portal master GIT ID: 028c228665fa72f04faf27370ac50382328c30a7.


          Issue Links



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


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


                  Version Package
                  7.0.0 Alpha 2