On Thu, Nov 7, 2013 at 1:00 PM, anjan <[email protected]> wrote:
> Hi, I am having an issue and need expert's advice.
>
> From Sling's admin console, "Sling Resource Resolver" tab, when I try to
> resolve the path "http://localhost:8080/content/test/sub-test/abc;abc";, I
> get the response as
> *JcrNodeResource, type=sling:Folder, superType=null,
> path=/content/test/sub-test/abc;abc* which is correct.
>
> But when I try to use the URL
> http://localhost:8080/content/test/sub-test/abc;abc.browser.children.json, I
> get 404 error with the below request tracking.  Please see the PathInfo
> value.  It shows "/content/test/sub-test/abc" instead of
> "/content/test/sub-test/abc;abc".  Is it something to do with the character
> "*;*"?

The ';' character has a special role in HTTP - it can be used as a
query separator under certain circumstances [1] . This might be the
root cause of your problems.

Robert

[1]: http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2

>
> ---------------------------
>
> The requested URL /content/test/sub-test/abc;abc.browser.children.json
> resulted in an error in
> org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet.
> Request Progress:
>
>       0 (2013-11-07 15:41:30) TIMER_START{Request Processing}
>       0 (2013-11-07 15:41:30) COMMENT timer_end format is {<elapsed
> msec>,<timer name>} <optional message>
>       0 (2013-11-07 15:41:30) LOG Method=GET,
> *PathInfo=/content/test/sub-test/abc*
>       0 (2013-11-07 15:41:30) TIMER_START{ResourceResolution}
>       4 (2013-11-07 15:41:30) TIMER_END{4,ResourceResolution}
> URI=/content/test/sub-test/abc;abc.browser.children.json resolves to
> Resource=NonExistingResource, path=/content/test/sub-test/abc
>       4 (2013-11-07 15:41:30) LOG Resource Path Info: SlingRequestPathInfo:
> path='/content/test/sub-test/abc', selectorString='null', extension='null',
> suffix='null'
>       4 (2013-11-07 15:41:30) TIMER_START{ServletResolution}
>       4 (2013-11-07 15:41:30)
> TIMER_START{resolveServlet(NonExistingResource,
> path=/content/test/sub-test/abc)}
>      12 (2013-11-07 15:41:30)
> TIMER_END{8,resolveServlet(NonExistingResource,
> path=/content/test/sub-test/abc)} Using servlet
> org.apache.sling.servlets.get.DefaultGetServlet
>      12 (2013-11-07 15:41:30) TIMER_END{8,ServletResolution}
> URI=/content/test/sub-test/abc;abc.browser.children.json handled by
> Servlet=org.apache.sling.servlets.get.DefaultGetServlet
>      12 (2013-11-07 15:41:30) LOG Applying Requestfilters
>      12 (2013-11-07 15:41:30) LOG Calling filter:
> org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
>      12 (2013-11-07 15:41:30) LOG Calling filter:
> com.praxeva.wsmlite.filter.AuthenticationFilter
>      12 (2013-11-07 15:41:30)
> TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
>      24 (2013-11-07 15:41:30)
> TIMER_END{12,org.apache.sling.servlets.get.DefaultGetServlet#0}
>      25 (2013-11-07 15:41:30) TIMER_START{handleError:status=404}
>      27 (2013-11-07 15:41:30) TIMER_END{2,handleError:status=404} Using
> handler
> org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>      29 (2013-11-07 15:41:30) TIMER_END{29,Request Processing} Dumping
> SlingRequestProgressTracker Entries
>
> ApacheSling/2.2 (Apache Tomcat/6.0.32, Java HotSpot(TM) 64-Bit Server VM
> 1.6.0_23, Linux 3.5.0-42-generic amd64)
>
>
>
> --
> View this message in context: 
> http://apache-sling.73963.n3.nabble.com/Resource-resolution-tp4028847.html
> Sent from the Sling - Users mailing list archive at Nabble.com.



-- 
Sent from my (old) computer

Reply via email to