when I try to access (i.e. get the subnodes) a file named _sling_redirect.esp I get the follwoing response: ------------------------------------ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head> <title>404 No resource found</title> </head> <body> <h1>No resource found (404)</h1> <p>The requested URL /libs/sling/servlet/default/explorer/edit/_sling_redirect.esp.explorer.item.html resulted in an error in org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet.</p> <h3>Request Progress:</h3> <pre> 0 (2010-08-27 19:24:50) TIMER_START{Request Processing} 0 (2010-08-27 19:24:50) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message> 0 (2010-08-27 19:24:50) LOG Method=GET, PathInfo=/libs/sling/servlet/default/explorer/edit/_sling_redirect.esp.explorer.item.html 0 (2010-08-27 19:24:50) TIMER_START{ResourceResolution} 16 (2010-08-27 19:24:50) TIMER_END{16,ResourceResolution} URI=/libs/sling/servlet/default/explorer/edit/_sling_redirect.esp.explorer.item.html resolves to Resource=NonExistingResource, path=/libs/sling/servlet/default/explorer/edit/sling:redirect.esp.explorer.item.html 16 (2010-08-27 19:24:50) LOG Resource Path Info: SlingRequestPathInfo: path='/libs/sling/servlet/default/explorer/edit/sling:redirect.esp.explorer.item.html', selectorString='esp.explorer.item', extension='html', suffix='null' 16 (2010-08-27 19:24:50) TIMER_START{ServletResolution} 16 (2010-08-27 19:24:50) TIMER_START{resolveServlet(NonExistingResource, path=/libs/sling/servlet/default/explorer/edit/sling:redirect.esp.explorer.item.html)} 16 (2010-08-27 19:24:50) TIMER_END{0,resolveServlet(NonExistingResource, path=/libs/sling/servlet/default/explorer/edit/sling:redirect.esp.explorer.item.html)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet 16 (2010-08-27 19:24:50) TIMER_END{0,ServletResolution} URI=/libs/sling/servlet/default/explorer/edit/_sling_redirect.esp.explorer.item.html handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet 16 (2010-08-27 19:24:50) LOG Applying request filters 16 (2010-08-27 19:24:50) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter 16 (2010-08-27 19:24:50) TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0} 16 (2010-08-27 19:24:50) TIMER_END{0,org.apache.sling.servlets.get.DefaultGetServlet#0} 16 (2010-08-27 19:24:50) TIMER_START{handleError:status=404} 16 (2010-08-27 19:24:50) TIMER_END{0,handleError:status=404} Using handler org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet 16 (2010-08-27 19:24:50) TIMER_END{16,Request Processing} Dumping SlingRequestProgressTracker Entries </pre> <hr> <address>ApacheSling/2.0 (Java HotSpot(TM) Client VM 1.6.0_17; Windows XP 5.1 x86)</address> </body> </html> ------------------------------ what is happening? How come 'URI=/libs/sling/servlet/default/explorer/edit/_sling_redirect.esp.explorer.item.html resolves to Resource=NonExistingResource, path=/libs/sling/servlet/default/explorer/edit/sling:redirect.esp.explorer.item.html' ?
> -----Original Message----- > From: Clemens Wyss [mailto:clemens...@mysign.ch] > Sent: Friday, August 27, 2010 6:40 PM > To: 'dev@sling.apache.org' > Subject: RE: [jira] Commented: (SLING-1671) New features for > jQuery JCR > Explorer - step 1 > > > without any change from my side your proposed use case, which > makes sense, works, as well: > Hence, instead of placing the "custom editors" into > /libs/sling/servlet/default/explorer/edit you can, no would, > place them into /apps/sling/servlet/default/explorer/edit > > > -----Original Message----- > > From: Felix Meschberger [mailto:fmesc...@gmail.com] > > Sent: Friday, August 27, 2010 3:54 PM > > To: dev@sling.apache.org > > Subject: Re: [jira] Commented: (SLING-1671) New features for > > jQuery JCR > > Explorer - step 1 > > > > > > Hi, > > > > On 27.08.2010 15:29, Clemens Wyss (JIRA) wrote: > > > > > > [ > > https://issues.apache.org/jira/browse/SLING-1671?page=com.atla > ssian.jira.plugin.system.issuetabpanels:comment-> > tabpanel&focusedCommentId=12903403#action_12903403 ] > > > > > > Clemens Wyss commented on SLING-1671: > > > ------------------------------------- > > > > > > regarding the "pluggable resource/node editors": > > > within the /libs/sling/servlet/default/explorer/edit folder > > you can place custom esp's to override the default editor for > > specific sling:resourceTypes. As an example I placed the > > sling_redirect.esp in there, which handles nodes of > > sling:resourceType == 'sling:redirect', such as the > root-node/folder. > > > > > > This "feature"/behavior is of course (and not only, I guess > > ;-) ) to be discussed > > > > I like this feature ! +100 as we say ;-) > > > > Yet, the intention of the separation of /apps and /libs is > > (at least in > > our case at Day) that we (Day) provide stuff in /libs while > customers > > and partners provide extensions/overwrites in /apps. > > > > Now from the POV of Sling, I would assume that we (Sling) provide > > defaults below /libs and users of Sling (people implementing > > applications with Sling) will add extensions in the /apps area. > > > > My question: Is such functionality supported by your code ? > > Or can it be > > added ? > > > > For example the ResourceResolver.getResource(String) method > > will use the > > search path (ResourceResolver.getSearchPath()) to resolve > > relative paths. > > > > Regards > > Felix > > > > > > > > > > >> New features for jQuery JCR Explorer - step 1 > > >> --------------------------------------------- > > >> > > >> Key: SLING-1671 > > >> URL: > > https://issues.apache.org/jira/browse/SLING-1671 > > >> Project: Sling > > >> Issue Type: New Feature > > >> Components: Extensions > > >> Reporter: Clemens Wyss > > >> Assignee: Clemens Wyss > > >> Priority: Minor > > >> Attachments: sling-1671-clemens.patch > > >> > > >> > > >> + property (type) specific editors (e.g. date, boolean) > > >> + search (SQL2, JQDOM, sql and xpath) > > >> + optimized tree (navigation) > > >> + pluggable resource/node editors > > > > > >