Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-23 Thread Ian Boston
Hi, Sling uses the JSONObject and friends for json parsing. Its fine for small JSON fragments but not as fast for huge streams as its memory based. JSONObject o = new JSONObject(jsonString) will parse a JSON string into an object. Thanks for doing the other things. Best Regards Ian On 22

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-22 Thread Dishara Wijewardana
Hi Ian, I changed the logic to correct with my misunderstandings as suggested and refactored all code to use apache commons Base64 for encoding and rest of the code review suggestions. And it works. Hence I commited the code. And also upload the code to the JIRA at this milestone (without json

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-20 Thread Ian Boston
Hi, Did you publish your replies to my comments at [1]. I cant see anything other than what I said. Be sure to click on each comment to exand it to full size. Ian 1

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-20 Thread Dishara Wijewardana
Hi Ian, I could see them when I logged in. Did you checked whether you logged in to the google project? When I was not logged in I was not able to see my comments also. But in case if it is still not viewable, I am copying the 3 comments I added. * Ian Boston* 2013/09/18 08:18:57 I think this

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-20 Thread Ian Boston
Hi, You need to publish the comments before anyone else can see them, thats why they say draft on them. I'll reply here, but if you could publish them it would keep the thread going on code review. On 21 September 2013 02:53, Dishara Wijewardana ddwijeward...@gmail.com wrote: Hi Ian, I could

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-19 Thread Dishara Wijewardana
Hi Ian, If you find some time, appreciate if you can add some reply to the comments on the code review basically regarding the issues you raised in the algorithm and the conflict of principals and privileges as per my understanding. I will cleanup the code with your clarification in this weekend.

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-18 Thread Ian Boston
Hi Dishara, Looking good, I have some comments, so I did a code review at [1] Ian 1 https://codereview.appspot.com/13396052/ On 18 September 2013 04:13, Dishara Wijewardana ddwijeward...@gmail.com wrote: Hi Ian, Sorry for the delay of updating the thread. I had to to some experiment(writing

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-18 Thread Dishara Wijewardana
Hi Ian, Thank you very much for the valuable feedbacks as always. I added some comments to clarify couple of cases. Appreciate your response, so that I can proceed with the improvements. On Wed, Sep 18, 2013 at 1:19 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, Looking good, I have some

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-17 Thread Dishara Wijewardana
Hi Ian, Sorry for the delay of updating the thread. I had to to some experiment(writing dummy tests iteratively) to figure out what you exactly meant. And finally was able to implement what you said. I have commited the src under a new package called security. Currently it is a util class which is

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-16 Thread Ian Boston
Hi, Yes you could store the ACL (ordered list of ACE's) with the resource itself, although you will then have to add additional code to protect access to that property which will complicate the CassandraProvider, which is why I was sugesting that you do ACL storage in a completely separate Column

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-13 Thread Dishara Wijewardana
On Thu, Sep 12, 2013 at 8:37 PM, Ian Boston i...@tfd.co.uk wrote: Hi On 12 September 2013 13:24, Dishara Wijewardana ddwijeward...@gmail.com wrote: Hi Ian On Thu, Sep 12, 2013 at 1:50 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, To make the Cassandra Resource Provider really

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-12 Thread Dishara Wijewardana
Hi Ian On Thu, Sep 12, 2013 at 1:50 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, To make the Cassandra Resource Provider really useful I think we need to add access control. I think the best way of doing this is to borrow some concepts from Jackrabbit access control. The following

RE: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-12 Thread Mike Müller
[mailto:ddwijeward...@gmail.com] Sent: Thursday, September 12, 2013 2:25 PM To: dev@sling.apache.org Subject: Re: [GSoC2013] Access Control for Cassandra ResourceProvider Hi Ian On Thu, Sep 12, 2013 at 1:50 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, To make the Cassandra Resource

RE: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-12 Thread Mike Müller
From: ianbos...@gmail.com [mailto:ianbos...@gmail.com] On Behalf Of Ian Boston Hi Mike, Thanks for the pointer. On 12 September 2013 14:58, Mike Müller mike...@mysign.ch wrote: Hi The common way to solve such an access control for a provider like the Cassandra resource provider is

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-12 Thread Ian Boston
Hi On 12 September 2013 13:24, Dishara Wijewardana ddwijeward...@gmail.com wrote: Hi Ian On Thu, Sep 12, 2013 at 1:50 PM, Ian Boston i...@tfd.co.uk wrote: Hi Dishara, To make the Cassandra Resource Provider really useful I think we need to add access control. I think the best way of doing

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-12 Thread Ian Boston
And delete rights. Best regards mike -Original Message- From: Dishara Wijewardana [mailto:ddwijeward...@gmail.com] Sent: Thursday, September 12, 2013 2:25 PM To: dev@sling.apache.org Subject: Re: [GSoC2013] Access Control for Cassandra ResourceProvider Hi Ian On Thu, Sep 12, 2013 at 1