Review Board 1.7.22


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

Review Request #1616 - Created Aug. 22, 2011 and submitted

li xu
shindig-1592
Reviewers
shindig
hsaputra, lindner, rbaxter
shindig
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! 
Passed JUnit tests.
Tested with /embeddedexperiences/index.html
Review request changed
Updated (Aug. 24, 2011, 8:14 p.m.)
Thanks for catching this, Ryan.
is all the procedure documented somewhere? seems like I missed a few...
 
Ship it!
Posted (Aug. 24, 2011, 11:50 p.m.)
Committed revision 1161323. Please close the JIRA as well.  Thanks.