You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Jesse Ciancetta <jc...@mitre.org> on 2011/11/14 19:58:00 UTC

Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/
-----------------------------------------------------------

Review request for shindig.


Summary
-------

Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.

This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).


This addresses bug shindig-1660.
    https://issues.apache.org/jira/browse/shindig-1660


Diffs
-----

  http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 

Diff: https://reviews.apache.org/r/2824/diff


Testing
-------

Updated/added tests.  Ran build, verified unit tests and tested common container.


Thanks,

Jesse


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Jesse Ciancetta <jc...@mitre.org>.

> On 2011-11-14 19:17:59, Dan Dumont wrote:
> > http://svn.apache.org/repos/asf/shindig/trunk/config/container.js, line 104
> > <https://reviews.apache.org/r/2824/diff/1/?file=57907#file57907line104>
> >
> >     Could you add a comment after this line, like:  "// You can specify the key to use inline like this" or something?

There is a comment near the top of container.js that says not to use trailing slashes so I just added a little more to the comment above instead (and also added back the comment about how to generate a good key which I had inadvertently removed).


- Jesse


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3210
-----------------------------------------------------------


On 2011-11-14 20:46:51, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 20:46:51)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Dan Dumont <dd...@us.ibm.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3210
-----------------------------------------------------------

Ship it!


Looks great, thanks!


http://svn.apache.org/repos/asf/shindig/trunk/config/container.js
<https://reviews.apache.org/r/2824/#comment7127>

    Could you add a comment after this line, like:  "// You can specify the key to use inline like this" or something?


- Dan


On 2011-11-14 18:57:59, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 18:57:59)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Jesse Ciancetta <jc...@mitre.org>.

> On 2011-11-14 19:26:13, Henry Saputra wrote:
> > http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java, line 230
> > <https://reviews.apache.org/r/2824/diff/1/?file=57912#file57912line230>
> >
> >     Can we add fail test for the new methods?

That test was there because the BlobCrypterSecurityTokenCodec used to handle reading in the security token key from an external resource (file or classpath resource) but that work is now handled by the ContainerConfig loader -- I'll go ahead and add a couple failure tests there too though.


- Jesse


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3213
-----------------------------------------------------------


On 2011-11-14 20:46:51, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 20:46:51)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Henry Saputra <hs...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3213
-----------------------------------------------------------



http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java
<https://reviews.apache.org/r/2824/#comment7134>

    Can we add fail test for the new methods?


- Henry


On 2011-11-14 18:57:59, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 18:57:59)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Jesse Ciancetta <jc...@mitre.org>.

> On 2011-11-15 14:20:24, Ryan Baxter wrote:
> > LGTM.  Jesse just following process here, could you attach the patch to the JIRA?  Then I will commit it.

I'll give it a day or two to see if Paul might get a chance to add my Apache user id to the SVN commit access group.  If he does I'll go ahead and commit it myself otherwise I'll attach the patch to the JIRA ticket for you to commit.


- Jesse


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3256
-----------------------------------------------------------


On 2011-11-14 20:46:51, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 20:46:51)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Ryan Baxter <rb...@gmail.com>.

> On 2011-11-15 14:20:24, Ryan Baxter wrote:
> > LGTM.  Jesse just following process here, could you attach the patch to the JIRA?  Then I will commit it.
> 
> Jesse Ciancetta wrote:
>     I'll give it a day or two to see if Paul might get a chance to add my Apache user id to the SVN commit access group.  If he does I'll go ahead and commit it myself otherwise I'll attach the patch to the JIRA ticket for you to commit.

Sounds good to me


- Ryan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3256
-----------------------------------------------------------


On 2011-11-14 20:46:51, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 20:46:51)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Ryan Baxter <rb...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3256
-----------------------------------------------------------

Ship it!


LGTM.  Jesse just following process here, could you attach the patch to the JIRA?  Then I will commit it.

- Ryan


On 2011-11-14 20:46:51, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 20:46:51)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Jesse Ciancetta <jc...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3263
-----------------------------------------------------------

Ship it!


Committed r1202283.

- Jesse


On 2011-11-14 20:46:51, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 20:46:51)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Stanton Sievers <si...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/#review3236
-----------------------------------------------------------

Ship it!


Good stuff.  Thanks Jesse!

- Stanton


On 2011-11-14 20:46:51, Jesse Ciancetta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/2824/
> -----------------------------------------------------------
> 
> (Updated 2011-11-14 20:46:51)
> 
> 
> Review request for shindig.
> 
> 
> Summary
> -------
> 
> Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.
> 
> This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).
> 
> 
> This addresses bug shindig-1660.
>     https://issues.apache.org/jira/browse/shindig-1660
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
>   http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/2824/diff
> 
> 
> Testing
> -------
> 
> Updated/added tests.  Ran build, verified unit tests and tested common container.
> 
> 
> Thanks,
> 
> Jesse
> 
>


Re: Review Request: Allow ContainerConfig stack to load property values from external resources and update BlobCrypterSecurityTokenCodec to use this new feature.

Posted by Jesse Ciancetta <jc...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2824/
-----------------------------------------------------------

(Updated 2011-11-14 20:46:51.179593)


Review request for shindig.


Changes
-------

Updated patch based on feedback.


Summary
-------

Update the ContainerConfig stack to allow for res://some-resource.txt and file:///some-file.txt style values in container.js and automatically resolve these references during initialization. This allows us to refactor BlobCrypterSecurityTokenCodec to expect to be given the actual encryption key rather than a key or resource pointer as it does currently.

This also opens the door for this functionality to be used for other configuration which we'd like to load from external files (which should be useful for third party implementers).


This addresses bug shindig-1660.
    https://issues.apache.org/jira/browse/shindig-1660


Diffs (updated)
-----

  http://svn.apache.org/repos/asf/shindig/trunk/config/container.js 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/DefaultSecurityTokenCodec.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/util/ResourceLoader.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java 1201745 
  http://svn.apache.org/repos/asf/shindig/trunk/java/common/src/test/resources/classpath-accessible-test-file.txt PRE-CREATION 

Diff: https://reviews.apache.org/r/2824/diff


Testing
-------

Updated/added tests.  Ran build, verified unit tests and tested common container.


Thanks,

Jesse