Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1592

EE sample gadget doesn't work out of box if deployed with context other than root or deployed on port other than 8080

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.0-beta1
    • 2.5.0-beta1
    • Java

    Description

      This fix enables EE sample page to work out of box even if it's deployed with a context root other than root or port other than 8080

      we added two tokens at sample db: canonicaldb.json
      %contextroot%
      %origin%
      it's resolved by JsonDBOpensocialService.java based on injected hostProvider
      This is a generic change... any other opensocial object could use the same token in sample json db.

      Opensocial sample context is updated to include an additional attribute since photogadget.xml need to refer to AlbumViewer.xml
      "eeGadget" : "%origin%%contextroot%/samplecontainer/examples/embeddedexperiences/AlbumViewer.xml",
      fixed related junit tests.

      Thanks to Ryan's help on this!

      Attachments

        1. patch0824
          15 kB
          Li Xu

        Activity

          People

            Unassigned Unassigned
            lixu Li Xu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: