Hi,

I spent some time this morning trying to test out the RC2 build and ran into an 
issue trying to define additional containers (our internal implementation 
defines additional containers beyond "default" and I was trying to get that 
working).  As a test I defined a new container called "foo" and tried using it 
to render gadgets.  Rendering gadgets with the default container seemed to be 
mostly working, but whenever I specified the foo container the gadget rewriters 
seemed to spit back invalid links.

Here is what I did to test:

-- Downloaded the RC2 WAR file from here:  
        
https://repository.apache.org/content/repositories/orgapacheshindig-091/org/apache/shindig/shindig-server/2.0.0-RC2/shindig-server-2.0.0-RC2.war

-- Renamed it to ROOT.war and dropped it into my Tomcat 6 webapps directory

-- Added my new container definition to the shindig.properties file:
        
shindig.containers.default=res://containers/default/container.js,res://foo_container.js

-- Created the foo_container.js container definition under WEB-INF/classes with 
the following content (inheriting everything from the default container):
        {"gadgets.container" : ["foo"]}

-- Tried rendering the New York Times gadget with the following URL's:
        
http://localhost:8080/gadgets/ifr?container=default&url=http://widgets.nytimes.com/packages/html/igoogle/topstories.xml
 (default container)     
        
http://localhost:8080/gadgets/ifr?container=foo&url=http://widgets.nytimes.com/packages/html/igoogle/topstories.xml
 (foo container)
        
When rendering with the default container things looked mostly right (except it 
seemed to be missing some CSS styling), but with the foo container I got links 
back in the rendered gadget code that look something like this:

<link 
href="http://:/gadgets/proxy?container=foo&gadget=http%3A%2F%2Fwidgets.nytimes.com%2Fpackages%2Fhtml%2Figoogle%2Ftopstories.xml&debug=0&nocache=0&refresh=86400&url=http%3A%2F%2Fgraphics8.nytimes.com%2Fcss%2Fapp%2Figoogle%2Fhome-merged.css";
 rel="stylesheet" type="text/css">

I thought maybe the inheritance from the default container configuration wasn't 
working properly so I tried copying all of its content directly into the 
foo_container.js file (changing the container name from default to foo) but I 
still ended up with the same issue.

Anyone else seeing similar issues or have any other suggestions on what else to 
try?

Thanks,

--Jesse

-----Original Message-----
From: Paul Lindner [mailto:[email protected]] 
Sent: Tuesday, August 10, 2010 3:38 PM
To: [email protected]
Subject: [VOTE] Release Apache Shindig Version 2.0.0-RC2

Hi,

We solved many issues:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12314413&styleName=Html&projectId=12310741

Project reports will get pushed to the main site soon.  For now you can see:
http://people.apache.org/~lindner/shindig-2.0.x/

Including the clean RAT
report<http://people.apache.org/~lindner/shindig-2.0.x/rat-report.html>


Staging repo:
https://repository.apache.org/content/repositories/orgapacheshindig-091/

Sources:
https://repository.apache.org/content/repositories/orgapacheshindig-091/org/apache/shindig/shindig/2.0.0-RC2/


Web site:
http://shindig.apache.org/

Vote open for 72 hours.

[ ] +1
[ ] +0
[ ] -1

--
Paul Lindner -- [email protected] -- linkedin.com/in/plindner

Reply via email to