Shindig
  1. Shindig
  2. SHINDIG-1619

Proxied content broken for Content sections using href

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Java
    • Environment:
      All

      Description

      The opensocial spec defines proxied content as follows:

      Data pipelining tags can be top level elements in the <Content> section of a gadget using Proxied Content (Section 6).

      Example

      <Content href="http://example.com/canvas" xmlns:os="http://ns.opensocial.org/2008/markup">
      <os:PeopleRequest key="vf" userId="@viewer" groupId="@friends"/>
      </Content>
      When preparing a request for proxied content, a container MUST process data pipelining elements that are direct children of the proxied content's <Content> element. Data pipelining elements are ALWAYS valid when preparing a request for proxied content, even if the opensocial-data feature is not present.

      However, the gadget processing of the content elements do not process the os requests or the http request and therefore nothing get posted in the request to the home server specified in the href. (Note, these may be authz=signed to support 2-legged OAuth).

        Activity

        Hide
        Henry Saputra added a comment - - edited

        This is not repro with trunk. Send signed request to gadget:

        <?xml version="1.0" encoding="UTF-8"?>
        <Module>
        <ModulePrefs title="Test">
        <Require feature="dynamic-height"/>
        <Require feature="osapi"/>
        <Require feature="views"/>
        <Require feature="opensocial-data"/>
        </ModulePrefs>
        <Content authz="signed" view="home,canvas" type="html" href="http:/localhost/readPost.php" xmlns:os="http://ns.opensocial.org/2008/markup">
        <os:PeopleRequest key="vf" userId="@viewer" groupId="@friends" />
        </Content>
        </Module>

        got this as post body:

        [{"id":"vf","result":{"filtered":false,"totalResults":3,"sorted":false,"list":[{"id":"jane.doe","name":{"formatted":"Jane Doe","familyName":"Doe","givenName":"Jane"}},{"id":"george.doe","name":{"formatted":"George Doe","familyName":"Doe","givenName":"George"}},{"id":"maija.m","name":{"formatted":"Maija Meikäläinen","familyName":"Meikäläinen","givenName":"Maija"}}],"updatedSince":false}}]

        Show
        Henry Saputra added a comment - - edited This is not repro with trunk. Send signed request to gadget: <?xml version="1.0" encoding="UTF-8"?> <Module> <ModulePrefs title="Test"> <Require feature="dynamic-height"/> <Require feature="osapi"/> <Require feature="views"/> <Require feature="opensocial-data"/> </ModulePrefs> <Content authz="signed" view="home,canvas" type="html" href="http:/localhost/readPost.php" xmlns:os="http://ns.opensocial.org/2008/markup"> <os:PeopleRequest key="vf" userId="@viewer" groupId="@friends" /> </Content> </Module> got this as post body: [{"id":"vf","result":{"filtered":false,"totalResults":3,"sorted":false,"list": [{"id":"jane.doe","name":{"formatted":"Jane Doe","familyName":"Doe","givenName":"Jane"}},{"id":"george.doe","name":{"formatted":"George Doe","familyName":"Doe","givenName":"George"}},{"id":"maija.m","name":{"formatted":"Maija Meikäläinen","familyName":"Meikäläinen","givenName":"Maija"}}] ,"updatedSince":false}}]

          People

          • Assignee:
            Henry Saputra
            Reporter:
            Mark Weitzel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development