Re: Getting the actual resource from a request

2016-08-01 Thread Roy Teeuwen
DOS attack when using a > cache. > > One solution might be a generic selector filter, one that can accept a list > of patterns to whitelist or blacklist. > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Saturday, July 30, 2016 6:58

RE: Getting the actual resource from a request

2016-08-01 Thread Jason Bailey
accept a list of patterns to whitelist or blacklist. -Original Message- From: Roy Teeuwen [mailto:r...@teeuwen.be] Sent: Saturday, July 30, 2016 6:58 AM To: users@sling.apache.org Subject: Re: Getting the actual resource from a request Hey Jason, Just come back to the dispatcher

Re: Getting the actual resource from a request

2016-07-30 Thread Roy Teeuwen
e and call that asset with a millisecond time stamp >> and each time I did it, it would be cached, and the cache would get larger. >> Until some point I have consumed all of your disk space. >> >> I'm assuming a similar type issue with cdn's >> >> -Jason >>

Re: Getting the actual resource from a request

2016-07-29 Thread Roy Teeuwen
's > > -Jason > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Friday, July 29, 2016 8:14 AM > To: users@sling.apache.org > Subject: Re: Getting the actual resource from a request > > Hey all, > > Ok so I fixed it f

Re: Getting the actual resource from a request

2016-07-29 Thread Roy Teeuwen
rst make your request find the resource without the servlet in the >>> way. If you switch around the .cdn to the end and add a period at the end >>> of cdn like this... >>> >>> content/dam/nice-image.jpg.cdn./modification-date/20160815/nice-image.jpg >&

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
-image.jpg >> >> This should work to return the original nice-image.jpg at that point it >> should be easier to create a servlet that will have the resource as part of >> the request. >> >> Or optionally you could try adding a sling:resourceType to the imag

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
-Jason > > > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Thursday, July 28, 2016 3:17 PM > To: users@sling.apache.org > Subject: Re: Getting the actual resource from a request > > Hmm Sorry Jason, > > I might have had

RE: Getting the actual resource from a request

2016-07-28 Thread Jason Bailey
that does what you need it do. -Jason -Original Message- From: Roy Teeuwen [mailto:r...@teeuwen.be] Sent: Thursday, July 28, 2016 3:17 PM To: users@sling.apache.org Subject: Re: Getting the actual resource from a request Hmm Sorry Jason, I might have had to notice that I am extending

Re: Getting the actual resource from a request

2016-07-28 Thread Oliver Lietz
> > I'm under the understanding that it is; > > > > request.getResource().getPath() > > > > -Original Message- > > From: Roy Teeuwen [mailto:r...@teeuwen.be] > > Sent: Thursday, July 28, 2016 12:31 PM > > To: users@sling.apache.org > > Subject: Getting the

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
e understanding that it is; > > request.getResource().getPath() > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Thursday, July 28, 2016 12:31 PM > To: users@sling.apache.org > Subject: Getting the actual resource from a request > > Hey all, > > I am c

RE: Getting the actual resource from a request

2016-07-28 Thread Jason Bailey
I'm under the understanding that it is; request.getResource().getPath() -Original Message- From: Roy Teeuwen [mailto:r...@teeuwen.be] Sent: Thursday, July 28, 2016 12:31 PM To: users@sling.apache.org Subject: Getting the actual resource from a request Hey all, I am creating

Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
Hey all, I am creating a SlingServlet that will work by both using a selector and a suffix. The resource is for example /content/dam/image.jpg and the actual url will be /content/dam/nice-image.cdn.jpg/modification-date/20160815/nice-image.jpg What is the most easy way to get the actual