Re: 500 Error when obtaining a resource

2013-08-21 Thread Dishara Wijewardana
Hi Ian, Need a small clarification. May be you have ,misunderstood me. Correct, on request, my provider always returns one row. What I meant was, the CASSANDRA_MAP (similar to PLANETS hash map) should be populated 1M entries with properties (key/values) prior to read 1M records. So my Map size is 1

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
Hi Ian, Found it finally :-). You are quite right. I am missing the resolutionPathInfo property to send back and hence going to a wrong servlet. I set it to json and it gave me a json rendered page. Awesome !!. On Thu, Aug 22, 2013 at 7:57 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
Hi Ian, I found the place which redirects and causing the loop in debugging. This is for a similar request on http://localhost:8080/content/cassandra/pnode1/cnode1. The class is StreamRendererServlet. My request always falls inside the else block that specified in BOLD and it redirects the respon

[jira] [Commented] (SLING-2779) Support for default properties values of a resource

2013-08-21 Thread Gilles Knobloch (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13745959#comment-13745959 ] Gilles Knobloch commented on SLING-2779: [~cziegeler], thanks for the review. {qu

[jira] [Commented] (SLING-2779) Support for default properties values of a resource

2013-08-21 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13745937#comment-13745937 ] Carsten Ziegeler commented on SLING-2779: - I'm not sure about the "deletedProperti

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Ian Boston
Hi, IIRC the behaviour where the resource resolver iterates up the tree is normal resource resolver behaviour but the recursion is not. Neither is the integration test failure. The resource resolver may be looking for the sling:resourceSuperType, but that is just a hunch. Either, the implementati

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
Hi Since I am doing something similar to PlanetResource, I ran the integration test of PlanetResource to verify it works in trunk. But that also got failed and started a thread on that also. On Wed, Aug 21, 2013 at 8:50 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi, > As per Ian

[PlanetResource] Integration test failure in trunk/launchpad/

2013-08-21 Thread Dishara Wijewardana
Hi, I started the launchpad jar and ran mvn test -Dtest=PlanetsResourceProviderTest in trunk. And Integration tests fails with following. junit.framework.AssertionFailedError: Expected status 200 for http://localhost:8080/planets.tidy.-1.json (content= 404 No resource found No resource found (

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
Hi, If I do a log just inside the Provider.getResource method as following gets printed. This seems a weird behavior System.out.println("+Reource GET " + s); +Reource GET /content/cassandra/pnode1/cnode1 +Reource GET /content/cassandra/pnode1/cnode1 +Reourc