Shindig
  1. Shindig
  2. SHINDIG-1311

Issues with osapi and caja in firefox-3.6

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Javascript
    • Labels:
      None
    • Environment:
      Firefox 3.6

      Description

      When using osapi and caja in firefox, you will see RPC requests containing an empty post body. The response of the request is:

      {"message":"badRequest: Invalid batch - No Content-Type specified. One of application/json, text/x-json, application/javascript, application/x-javascript, text/javascript, text/ecmascript, application/json-rpc, application/jsonrequest, multipart/form-data is required","code":400}

      Same gadget will render fine in Chrome.

      Sample gadget:
      <?xml version="1.0" encoding="UTF-8"?>
      <Module>
      <ModulePrefs title="osapi">
      <Require feature="caja"/>
      <Require feature="osapi"/>
      </ModulePrefs>
      <Content type="html">
      <![CDATA[
      <script type="text/javascript">
      function render(data) {
      }

      gadgets.util.registerOnLoadHandler(function()

      { osapi.people.getViewer().execute(render); }

      );
      </script>
      ]]>
      </Content>
      </Module>

        Activity

        Chirag Shah created issue -
        Gavin made changes -
        Field Original Value New Value
        Workflow jira [ 12503352 ] patch-available, re-open possible [ 12629484 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Chirag Shah
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development