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

Open social preview can throw SAXParseException when local live staging is enabled

    Details

      Description

      Steps
      1) Make sure to start with an empty database and follow the steps exactly (do not navigate to a document library)
      2) Deploy the Open Social plugin
      3) Enable local live staging on the Liferay site
      4) Go to Control Panel > Sites > Liferay > content > Open Social Gadget publisher
      5) Paste the following into the editor:

      <?xml version="1.0" encoding="UTF-8" ?>
      
      <Module>
        <ModulePrefs title="Google Address">
          <Require feature="pubsub-2">
            <Param name="topics">
              <![CDATA[
              <Topic title="Google Maps" name="com.liferay.opensocial.gmapsdemo" publish="true"/>
              ]]>
            </Param>
          </Require>
          <Require feature="dynamic-height" />
        </ModulePrefs>
      
        <Content type="html">
          <![CDATA[
          <table>
            <tr>
              <td>Address:</td>
              <td>
                <input type="text" id="address" name="address" size="40" value="1400 Montefino Ave, Diamond Bar, CA 91765">
              </td>
              <td>
                <input type="button" value="Update" onclick="updateLoc()">
              </td>
            </tr>
          </table>
      
          <script type="text/javascript">
            function updateLoc() {
              var address = document.getElementById("address").value;
              gadgets.Hub.publish("com.liferay.opensocial.gmapsdemo", address);
            }
      
            gadgets.window.adjustHeight();
          </script>
          ]]>
        </Content>
      </Module>
      

      6) Save it as test.xml
      7) Click the preview button

      Expected: The preview would work without errors
      Actual: The preview fail with the follow error:

      SEVERE: Servlet.service() for servlet 4 Servlet threw exception
      org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 5764; The reference to entity "themeId" must end with the ';' delimiter.
      

      Note
      If a document library portlet is added to a page on to the staging site the problem goes away.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lu.liu Lu Liu
              Reporter:
              preston.crary Preston Crary
              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:
                5 years, 8 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 M4