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

OpenSocial Editor preview fails because of the wrong url

Details

    Description

      Reproduction steps:

      1. Deploy Open Social portlet
      2. Put out the portlet to a page
      3. Copy this simple "Hello World" code to the editor:

      <?xml version="1.0" encoding="UTF-8" ?>
       <Module>
         <ModulePrefs title="Hello World!">
           <Require feature="opensocial-0.8" />
         </ModulePrefs>
         <Content type="html">
           <![CDATA[
             Hello, OpenSocial Gadget world!
           ]]>
         </Content>
       </Module>
      

      4.Click on Preview - its fail and the following exception occurs

      10:59:54,886 ERROR [PortletServlet:97] javax.portlet.PortletException: org.apache.shindig.gadgets.process.ProcessingException: Unable to retrieve spec for http://localhost:8080/documents/10520/8d7cc71a-6e4f-4c50-9967-8045819219f3. HTTP error 404
      javax.portlet.PortletException: org.apache.shindig.gadgets.process.ProcessingException: Unable to retrieve spec for http://localhost:8080/documents/10520/8d7cc71a-6e4f-4c50-9967-8045819219f3. HTTP error 404
      	at com.liferay.opensocial.editor.portlet.EditorPortlet.serveResource(EditorPortlet.java:140)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:118)
      	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
      	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:75)
      ...
      Caused by: org.apache.shindig.gadgets.process.ProcessingException: Unable to retrieve spec for http://localhost:8080/documents/10520/8d7cc71a-6e4f-4c50-9967-8045819219f3. HTTP error 404
      	at org.apache.shindig.gadgets.process.Processor.process(Processor.java:99)
      	at com.liferay.opensocial.shindig.util.ShindigUtil.getGadgetSpec(ShindigUtil.java:246)
      	at com.liferay.opensocial.editor.portlet.EditorPortlet.serveGetRenderParameters(EditorPortlet.java:422)
      	at com.liferay.opensocial.editor.portlet.EditorPortlet.serveResource(EditorPortlet.java:115)
      	... 125 more
      Caused by: org.apache.shindig.gadgets.GadgetException: Unable to retrieve spec for http://localhost:8080/documents/10520/8d7cc71a-6e4f-4c50-9967-8045819219f3. HTTP error 404
      	at org.apache.shindig.gadgets.AbstractSpecFactory.fetchFromNetwork(AbstractSpecFactory.java:136)
      	at org.apache.shindig.gadgets.AbstractSpecFactory.getSpec(AbstractSpecFactory.java:90)
      	at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.getGadgetSpec(DefaultGadgetSpecFactory.java:81)
      	at org.apache.shindig.gadgets.process.Processor.process(Processor.java:90)
      	... 128 more
      

      5. Add to Open Social portlet - not working
      6. Add the url from the Document Library - its working

      Attachments

        Activity

          People

            pani.gui Pani Gui (Inactive)
            laszlo.csontos Laszlo Csontos (Inactive)
            Rafaela Nascimento Rafaela Nascimento
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 27 weeks, 5 days ago

              Packages

                Version Package
                6.0.X EE