On Mon, 2015-10-19 at 16:10 +0000, Venkat Ganesh wrote:
> Thanks Robert. I have installed slingshot also.
> 
> The README.txt file says:
> 
> > For example, install the slingshot sample:
> > samples/slingshot $ mvn install -P autoInstallBundle
> 
> I have installed slingshot sample. I can verify the URL
> http://localhost:8080/slingshot/users/slingshot1.acl.html works.
> 
> 
> From http://localhost:8080/.explorer.html# , I can verify /slingshot
> is a
> valid node and its children are docs, resources and users. I can
> verify
> the URL to access the children of slingshot, listed below, does work,
> as
> expected.
> 
> 1. http://localhost:8080/slingshot/docs.explorer.html
> 
> 2. http://localhost:8080/slingshot/resources.explorer.html
> 3. http://localhost:8080/slingshot/users.explorer.html
> 
> 
> 
> However, albums.html is not a child of slingshot and when I go to
> http://localhost:8080/slingshot/albums.html or
> http://localhost:8080/slingshot/albums.html?sling:authRequestLogin=tr
> ue
>  , the error is ³No resource found (404)², as expected and in the
> error.log file:
> 
> 19.10.2015 08:52:22.680 *INFO* [0:0:0:0:0:0:0:1 [1445269942679] GET
> /slingshot/albums.html HTTP/1.1]
> org.apache.sling.engine.impl.SlingRequestProcessorImpl service:
> Resource
> /slingshot/albums.html not found
> 19.10.2015 08:52:47.500 *INFO*
> [pool-62-thread-1-discovery.impl.heartbeat.runner]
> 
> 
> There are no albums file committed and pushed to git. I pulled the
> latest
> trunk code today.  Maybe someone forgot to check in the album
> resource
> files even though it is mentioned in the README.txt?

I see now, thanks for the detailed explanation.

The Slingshot app has been through some content structure changes and
now the albums resource no longer exists.

You can view the current content model at

  http://localhost:8080/slingshot/docs/content-model.html

And you can pick some of the other URLs for you ACL tests, e.g.


  http://localhost:8080/slingshot/users/slingshot1.acl.html

HTH,

Robert

> 
> Thx,
> 
> /Users/vganesh/git/sling/samples
> $ find . -name "*users*"
> ./slingshot/src/main/resources/SLING-INF/content/slingshot/users
> ./slingshot/src/main/resources/SLING-INF/content/slingshot/users.json
> ./slingshot/target/classes/SLING-INF/content/slingshot/users
> ./slingshot/target/classes/SLING-INF/content/slingshot/users.json
> ./usermanager-ui/src/main/resources/libs/sling/users
> ./usermanager-ui/target/classes/libs/sling/users
> /Users/vganesh/git/sling/samples
> $ find . -name "*albums*"
> /Users/vganesh/git/sling/samples
> 
> 
> 
> 
> 
> On 10/19/15, 3:18 AM, "Robert Munteanu" <[email protected]> wrote:
> 
> > Hi Venkat,
> > 
> > On Fri, 2015-10-16 at 23:10 +0000, Venkat Ganesh wrote:
> > > Hello,
> > > 
> > > After following the instructions available at
> > > sling/samples/accessmanager-ui/README.txt , if I go to the URL
> > > specified at the end of this text file, http://localhost:8080/sli
> > > ngsh
> > > ot/albums.html?sling:authRequestLogin=true , the error is shown
> > > below.
> > 
> > I mention the accessmanager-ui sample, but the URL you accessed is
> > specific to the slingshot sample. Have you installed both?
> > 
> > Robert
> > 
> > > What do I need to do to fix this issue?
> > > 
> > > Thx,
> > > 
> > > 
> > > No resource found (404)
> > > 
> > > The requested URL /slingshot/albums.html resulted in an error in
> > > org.apache.sling.servlets.resolver.internal.defaults.DefaultError
> > > Hand
> > > lerServlet.
> > > 
> > > Request Progress:
> > > 
> > >       0 TIMER_START{Request Processing}
> > >       0 COMMENT timer_end format is {<elapsed msec>,<timer name>}
> > > <optional message>
> > >       0 LOG Method=GET, PathInfo=/slingshot/albums.html
> > >       0 TIMER_START{ResourceResolution}
> > >       0 TIMER_END{0,ResourceResolution}
> > > URI=/slingshot/albums.html
> > > resolves to Resource=NonExistingResource,
> > > path=/slingshot/albums.html
> > >       0 LOG Resource Path Info: SlingRequestPathInfo:
> > > path='/slingshot/albums.html', selectorString='null',
> > > extension='html', suffix='null'
> > >       0 TIMER_START{ServletResolution}
> > >       0 TIMER_START{resolveServlet(NonExistingResource,
> > > path=/slingshot/albums.html)}
> > >       0 TIMER_END{0,resolveServlet(NonExistingResource,
> > > path=/slingshot/albums.html)} Using servlet
> > > org.apache.sling.servlets.get.DefaultGetServlet
> > >       0 TIMER_END{0,ServletResolution} URI=/slingshot/albums.html
> > > handled by
> > > Servlet=org.apache.sling.servlets.get.DefaultGetServlet
> > >       0 LOG Applying Requestfilters
> > >       0 LOG Calling filter:
> > > org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilte
> > > r
> > >       0 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
> > >       0 LOG Applying Componentfilters
> > >       0
> > > TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
> > >       1
> > > TIMER_END{1,org.apache.sling.servlets.get.DefaultGetServlet#0}
> > >       1 LOG Filter timing:
> > > filter=org.apache.sling.i18n.impl.I18NFilter, inner=1, total=1,
> > > outer=0
> > >       1 LOG Applying Error filters
> > >       1 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
> > >       1 TIMER_START{handleError:status=404}
> > >       1 TIMER_END{0,handleError:status=404} Using handler
> > > org.apache.sling.servlets.resolver.internal.defaults.DefaultError
> > > Hand
> > > lerServlet
> > >       1 TIMER_END{1,Request Processing} Dumping
> > > SlingRequestProgressTracker Entries
> > > 
> > > 
> > > ________________________________
> > > ApacheSling/2.4 (jetty/9.2.12.v20150709, Java HotSpot(TM) 64-Bit
> > > Server VM 1.8.0_60, Mac OS X 10.10.5 x86_64)
> > > 
> > > Information contained in this e-mail message is confidential.
> > > This e-
> > > mail message is intended only for the personal use of the
> > > recipient(s) named above. If you are not an intended recipient,
> > > do
> > > not read, distribute or reproduce this transmission (including
> > > any
> > > attachments). If you have received this email in error, please
> > > immediately notify the sender by email reply and delete the
> > > original
> > > message.
> > 
> 
> Information contained in this e-mail message is confidential. This e-
> mail message is intended only for the personal use of the
> recipient(s) named above. If you are not an intended recipient, do
> not read, distribute or reproduce this transmission (including any
> attachments). If you have received this email in error, please
> immediately notify the sender by email reply and delete the original
> message.

Reply via email to