Shindig
  1. Shindig
  2. SHINDIG-1548

Shindig does not accept relative URLs for template libraries

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.5.0-beta1
    • Fix Version/s: 2.5.0-beta2
    • Component/s: Java
    • Labels:

      Description

      Section 15.1 of the OpenSocial Templating Spec (version 1.1 at <http://opensocial-resources.googlecode.com/svn/spec/1.1/OpenSocial-Templating.xml#rfc.section.15.1>, version 2.0 draft at <http://opensocial-resources.googlecode.com/svn/spec/2.0/OpenSocial-Templating.xml#rfc.section.15.1> states that, when interpreting the URL in a template library request like this:

      <Require feature="opensocial-templates">
        <Param name="requireLibrary">templates.xml</Param>
      </Require>                                    
      

      that "Relative URLs are interpreted in relation to the location of the Gadget Spec XML file." However, Shindig currently generates a /gadgets/makeRequest call and passes in the relative URL value ("templates.xml") and fails with an HTTP status of 400 (Bad Request) because this URL does not start with "http:" or "https:".

      1. 1548.patch
        3 kB
        Erik BI
      2. RelativeTemplateLibrary.xml
        1 kB
        Erik BI
      3. TestTemplateLibrary.xml
        0.3 kB
        Erik BI

        Activity

        Ryan Baxter made changes -
        Fix Version/s 2.5.0-beta2 [ 12321670 ]
        Fix Version/s 2.5.0 [ 12320364 ]
        Henry Saputra made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 2.5.0 [ 12320364 ]
        Resolution Fixed [ 1 ]
        Erik BI made changes -
        Attachment RelativeTemplateLibrary.xml [ 12525401 ]
        Attachment TestTemplateLibrary.xml [ 12525402 ]
        Erik BI made changes -
        Attachment 1548.patch [ 12525387 ]
        Erik BI made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Labels patch
        Henry Saputra made changes -
        Assignee Henry Saputra [ hsaputra ]
        Gavin made changes -
        Field Original Value New Value
        Workflow jira [ 12616647 ] patch-available, re-open possible [ 12630034 ]
        Craig McClanahan created issue -

          People

          • Assignee:
            Henry Saputra
            Reporter:
            Craig McClanahan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development