RE: sling with sso - with oauth2 / openid connect

2018-02-13 Thread Jason Bailey
Here are some authentication implementations and their source code https://github.com/apache?utf8=%E2%9C%93&q=sling+auth It's been a while since I touched this, so I hope I'm not too off base here. There are two parts to an access control system, authentication and authorization. It should be s

RE: [ANN] New Apache Sling PMC Chair: Robert Munteanu

2017-11-17 Thread Jason Bailey
Congrats Robert! -Original Message- From: Georg Henzler [mailto:slin...@ghenzler.de] Sent: Friday, November 17, 2017 5:27 AM To: users@sling.apache.org Subject: Re: [ANN] New Apache Sling PMC Chair: Robert Munteanu EXTERNAL Congratulations also from my side! On 2017-11-17 10:26, Andrei

useful tip for jsp development

2017-08-21 Thread Jason Bailey
I've finally solved a nagging eclipse configuration issue with developing Sling JSP's and I wanted to share with the community. One of the pain points we've always found was the lack of a context root in a bundle package. That's the ability to reference a file in JSP via an include to another

RE: Sling models - Resource decorator

2017-06-06 Thread Jason Bailey
Hey Roy, Couple of Assumptions: For the Self resource you have it defined as: @Self public Resource resource; and for the @Model you have something like @Model(adaptables = RoysCustomDecorator.class) Am I close? -Jason -Original Message- From: Roy Teeuwen [mailto:r...@teeuwen.be] Se

bundle + war + sling

2017-03-29 Thread Jason Bailey
Wondering if anyone has done anything with creating a war that can be deployed as bundle and have its resources exposed as sling content. -Jason

RE: Best Sling samples for a beginner to look at?

2017-03-29 Thread Jason Bailey
Bertrand, I can't you how relieved I am to here that there is a desire to be scripting language agnostic. I hope this continues. -Original Message- From: Bertrand Delacretaz [mailto:bdelacre...@apache.org] Sent: Wednesday, March 29, 2017 6:39 AM To: users Subject: Re: Best Sling sample

json support

2017-02-23 Thread Jason Bailey
I found out recently through github that people are using json files to create content nodes in bundles. Is this something I can do downstream in AEM and/or in a package? Thanks -jason

RE: Sling Health Checks

2017-02-07 Thread Jason Bailey
a HC checking these deltas against your thresholds (we are using this setup in one of our projects). Best regards, Bjoern On Tue, Jan 31, 2017 at 4:59 PM, Jason Bailey wrote: > So I'm part of a team that I will characterize as being "highly > resource optimized" We have an

RE: Sling Health Checks

2017-02-01 Thread Jason Bailey
the healthcheck rather than writing two separate things. :) All good. -Original Message- From: Bertrand Delacretaz [mailto:bdelacre...@apache.org] Sent: Tuesday, January 31, 2017 11:59 AM To: users Subject: Re: Sling Health Checks Hi, On Tue, Jan 31, 2017 at 4:59 PM, Jason Bailey

RE: Sling Health Checks

2017-01-31 Thread Jason Bailey
nstance is healthy or not, additional properties might be confusing. Could you describe your use case in a bit more detail? Regards Georg On 2017-01-30 18:56, Jason Bailey wrote: > Anyone know if it's possible to use the Sling Health Checks to expose > a value via the MBean other tha

Sling Health Checks

2017-01-30 Thread Jason Bailey
Anyone know if it's possible to use the Sling Health Checks to expose a value via the MBean other than the ones explicitly defined in the Result Object? Thanks -Jason

RE: Sling Model and Request Parameters

2017-01-18 Thread Jason Bailey
As mentioned in the original thread. I think you would just need to create a JIRA and add your patch to that. As long as it was one of those non-default injectors I would appreciate it. Original thread: http://apache-sling.73963.n3.nabble.com/Sling-Model-and-Request-Parameters-tt4065648.html#a

RE: Not-sticky sessions with Sling?

2017-01-18 Thread Jason Bailey
Couldn't this be simplified to simply stating that the sticky session cookie only lasts for x amount of seconds? I like this idea, but I'm not sure this is really a sling solution rather than an API management or proxy solution. When you take an instance out of the pool, you would need to stat

uses for Sling

2017-01-13 Thread Jason Bailey
I know that Sling is used for 2 downstream CMS applications. I was wondering if anyone could share other use cases that they have found Sling to be useful for. Thanks.

Re: JS Use API usability or limitations

2017-01-12 Thread Jason Bailey
I've experienced a variety of results between switching between a dynamic and static types languages I think a lot of it has to do with context. IMHO there's a certain rhythm to developing on any specific platform. Where using a certain set of technologies make more sense than others. Since eve

RE: JS Use API usability or limitations

2017-01-11 Thread Jason Bailey
Alright, I'll bite. If you're talking about model building logic. Is there some architectural constraint on why you don't just stick with java? -Jason -Original Message- From: lancedolan [mailto:lance.do...@gmail.com] Sent: Wednesday, January 11, 2017 2:37 PM To: users@sling.apache.or

RE: Creating a service user for your own bundle

2016-11-07 Thread Jason Bailey
The focus seems to be around providing a service user. Wouldn't it be preferable to have a system where the bundle defined the permissions it requires and then automatically associate an already existing system user? -Original Message- From: Robert Munteanu [mailto:romb...@apache.org]

Re: Generating report of tens of thousands of pages

2016-09-25 Thread Jason Bailey
Hi Henry, I run queries that cover up to half a million AEM "pages" quite often, My times range between 30 seconds to 3 minutes depending on what I'm doing. Here's my observations: If you are running a query, make sure that it's as simple as possible and that it is keying on a property that is

Quartz scheduler

2016-09-02 Thread Jason Bailey
When you have components implementing Runnable, as an example. Is there any way to see that these items are scheduled?

RE: Sling models adaptTo taglib

2016-08-22 Thread Jason Bailey
IMHO the big selling point of OSGi, is the ability to add additional packages as you go. If the package is needing an api of a particular version that isn't in your environment it just won't turn on. If the bundle is defined correctly, which I admit, seems to be a difficult thing to do. Then th

RE: Call JSP Directly on Apache Sling

2016-08-12 Thread Jason Bailey
e processed. > > > > As I understood it correctly, I would need to have a servlet or > > component that would be responsible for calling that JSP, right? > > > > Thanks > > > > > > 2016-08-09 10:50 GMT-03:00 Jason Bailey : > > > >> This re

Re: Call JSP Directly on Apache Sling

2016-08-09 Thread Jason Bailey
This really depends on what you mean by 'calling directly' if you put a jsp file under the /apps directory. You are putting a file there. You can access that file directly as a file. If you are looking at accessing the functionality that the jsp provides, the servlet, you need to point to some

RE: Getting the actual resource from a request

2016-08-01 Thread Jason Bailey
; date and only return it then, and else return a 404. This would solve the > caching possibility of infinite image issue! > > Thanks > Roy > > >> On 29 Jul 2016, at 14:31, Jason Bailey wrote: >> >> Roy, >> >> I think you may slap your forehead on

RE: Getting the actual resource from a request

2016-07-29 Thread Jason Bailey
the same image gets >> replaced in the dam by a new image with the same name on a page, I >> don’t have to invalidate the azure cdn cache because the modification >> date changing in the url takes care of that, and because I am not >> using a query string I also don’t have

RE: Getting the actual resource from a request

2016-07-28 Thread Jason Bailey
g I try to achieve is a servlet that also catches resources with a selector AND suffix (as stated in my example of course) ? Thanks! Roy > On 28 Jul 2016, at 18:35, Jason Bailey wrote: > > I'm under the understanding that it is; > > request.getResource().getPath() >

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 a SlingServ

RE: resource locator project

2016-07-18 Thread Jason Bailey
al Message- From: Bertrand Delacretaz [mailto:bdelacre...@apache.org] Sent: Friday, July 15, 2016 6:57 AM To: users Subject: Re: resource locator project Hi, On Wed, Jul 13, 2016 at 3:49 PM, Jason Bailey wrote: ... > https://github.com/JEBailey/sling-resourcelocator ... Interesting! It look

RE: One Resource to multiple views in different locations

2016-07-13 Thread Jason Bailey
I've never needed to have the resource resolver select a different script. Referencing your example of breadcrumb. I've had the main breadcrumb script import the specific implementation based on a configuration. /apps/www/components/breadcrumb/breadcrumb.jsp /apps/www/components/breadcrumb/brea

resource locator project

2016-07-13 Thread Jason Bailey
I have a utility for sling that I've been working on open sourcing that I'd like to share. https://github.com/JEBailey/sling-resourcelocator This is a java 8 port of a tool I developed in-house. It provides a set of predefined predicates for properties, and a traversal control so that you can

RE: Response content type when url has no extension

2016-06-22 Thread Jason Bailey
I believe that exists, or I'm misunderstanding the intent. Under org.apache.sling.servlets.resolver for the property servletresolver.defaultExtensions -Original Message- From: Bertrand Delacretaz [mailto:bdelacre...@apache.org] Sent: Wednesday, June 22, 2016 8:16 AM To: users Subject:

sling without a jcrResourceProvider

2016-06-15 Thread Jason Bailey
Has anyone played around with using Sling without utilizing the JCR resource provider and utilizing one of the other providers instead? -Jason

RE: Using the resource resolver

2016-06-14 Thread Jason Bailey
I agree with Paul, I would say that the rule of thumb is to stay open for just the length of time needed to access the resource via the resource resolver. A couple of notes, based on your sample 1. The use of getAdministrativeResourceResolver is considered harmful. Ideally you should have an a

RE: Out of memory during query

2016-03-25 Thread Jason Bailey
ssion that will accumulate the nodes I traverse? Or, will they be reclaimable as soon as I am finished with them? Again, I am extremely paranoid about memory usage and I cannot have an out-of-memory condition. -Original Message- From: Jason Bailey [mailto:jason.bai...@sas.com] Sent: Frid

RE: Out of memory during query

2016-03-25 Thread Jason Bailey
A couple of observations. 1. The query you created is amazingly broad with the usage of nt:base and no restricitions such as path. If you're going to create a query the more restrictive you can make the query the better. 2. Not sure if you're using JCR or OAK. If you're using oak, be sure to i

Sling job pool sizing

2015-12-07 Thread Jason Bailey
I'm trying to understand the relationships between the different pools of threads in Sling and get feedback on configuration. Specifically with Jobs. There is a default job queue with a job pool size. You can then define a specific job queue with a pool size and optional thread queue There is al

on using MongoMK

2015-11-23 Thread Jason Bailey
First, I would say that the majority of my issues come from the fact that I was attempting to migrate a good sized amount of content from crx2 to crx3. However, the issues I have with OAK/MongoDB are pretty significant. 1. Having a remote JCR is not like having a remote data store for some cont

RE: Resource class vs CND

2015-11-16 Thread Jason Bailey
to it and I'm slow to pick it up > :) > > > > On Fri, Nov 13, 2015 at 2:48 PM, Daniel Klco > wrote: > > > Agreed, I would also highly suggest looking at Sling Models as an > > option to make your code more strongly typed without requiring a > > rigid node typ

RE: Resource class vs CND

2015-11-13 Thread Jason Bailey
My opinions: Sling is really about being able to take a data set and present that data in multiple ways. For the vast majority of use cases you should use the existing node types and property values and you don't need to use a CND. A custom nodetype is useful if there is a need to perform some

RE: sling-maven-plugin install goal issues

2015-10-28 Thread Jason Bailey
I'm reading Steven's concern as that the Sling plugin is not assuming the use of the Sling post handler. Which is preventing the use of the POST command to the desired location. Which is kind of odd. -Original Message- From: Stefan Seifert [mailto:sseif...@pro-vision.de] Sent: Wednesd

RE: Control JcrInstaller (OsgiInstaller) Behavior of Bundle Updating vs Installing

2015-09-21 Thread Jason Bailey
I'm a bit confused by the use case. Breakage should only occur if the bundle is exporting an API that is versioned, and you have a bundle that is explicitly set to not accept the new package version. Or is the breakage somewhere else? -Jason -Original Message- From: Steven Walters [m

RE: help needed problems with redirects and https

2015-08-04 Thread Jason Bailey
might want to check the changelog of the Apache Felix SSLFilter. Make sure that you have the latest version, as it changes a nasty bug there. Jörg 2015-08-03 22:22 GMT+02:00 Jason Bailey : > Our environment is set up where we have an apache instance with a > dispatcher passing the request

help needed problems with redirects and https

2015-08-03 Thread Jason Bailey
Our environment is set up where we have an apache instance with a dispatcher passing the requests back to our Sling instances. The apache instance prepends either /content/external1 or /content/external2 onto the request before sending it the sling instance(based on domain). In the sling instan

RE: Best practices for java DTOs to/from Sling

2015-07-28 Thread Jason Bailey
I second Bertrand on this. The whole point of Sling is that it's a REST framework with a straightforward CRUD support. I feel there's a tendency for people to attempt to shoehorn in paradigms from other application frameworks, because it's familiar to them, and they end up with a layer of comple

RE: Best practices for java DTOs to/from Sling

2015-07-27 Thread Jason Bailey
I'm going to chime in and say that I don't think you need to change your process. You mentioned defining the :operation="import" which really threw me off since I associate that with a form posting and you mentioned JSON. I took a second look at the links that Julian sent out and there's a sec

RE: Best practices for java DTOs to/from Sling

2015-07-24 Thread Jason Bailey
ostservlet-servlets-post.html#importing-content-structures Regards Julian On Thu, Jul 23, 2015 at 2:35 PM, Jason Bailey wrote: > The occasional problem with Sling is that the feature set moves faster than > the documentation. > > Support for modification of content via JSON has been imple

RE: Best practices for java DTOs to/from Sling

2015-07-23 Thread Jason Bailey
The occasional problem with Sling is that the feature set moves faster than the documentation. Support for modification of content via JSON has been implemented. Here's some relevant links: https://cwiki.apache.org/confluence/display/SLING/FAQ#FAQ-HowdoIcreateanodebypostingajsondocumenttoaURL? h

RE: Errorpage for the SlingPostServlet

2015-07-20 Thread Jason Bailey
but I wonder if it's possible for a general error page as well. Best, Sandro Am 15.07.15 um 21:49 schrieb Jason Bailey: > Sandro, > > I guess I haven't been keeping up, I thought error handlers had to be under > /sling/servlet/errorhandler/ ??? > > Was that ch

Re: SlingServlet SO Question

2015-07-16 Thread Jason Bailey
.engine.impl.request.RequestData.service(RequestData.java:511) at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) On Jul 15, 2015, at 4:28 PM, Jason Bailey mailto:jason.bai...@sas.com>> wrote:

RE: SlingServlet SO Question

2015-07-15 Thread Jason Bailey
nks! On Jul 15, 2015, at 3:42 PM, Jason Bailey wrote: > Hi Chris, > > Can you capture what the post url looks like? > > -Jason > > > -Original Message- > From: Christopher Rockwell [mailto:cmroc...@umich.edu] > Sent: Wednesday, July 15, 2015 2:08 PM &g

RE: Errorpage for the SlingPostServlet

2015-07-15 Thread Jason Bailey
Sandro, I guess I haven't been keeping up, I thought error handlers had to be under /sling/servlet/errorhandler/ ??? Was that changed? -Jason -Original Message- From: Sandro Boehme [mailto:sandro.boe...@gmx.de] Sent: Wednesday, July 15, 2015 6:57 AM To: users@sling.apache.org Subject:

RE: SlingServlet SO Question

2015-07-15 Thread Jason Bailey
Hi Chris, Can you capture what the post url looks like? -Jason -Original Message- From: Christopher Rockwell [mailto:cmroc...@umich.edu] Sent: Wednesday, July 15, 2015 2:08 PM To: users@sling.apache.org Subject: SlingServlet SO Question Hi all. I'm having trouble with a servlet that

So my filter ordering got reversed

2015-07-10 Thread Jason Bailey
Working on an upgrade to AEM 6.0sp2 and things started going weird all over the place. Figured out the ordering of the servlet filters got reversed. Per https://issues.apache.org/jira/browse/SLING-2920 We're now going through the process of changing our filter run ordering . However I'm not und

RE: management of sling instances

2015-07-10 Thread Jason Bailey
org Subject: Re: management of sling instances On Thursday 09 July 2015 18:59:35 Jason Bailey wrote: hello Jason, > I was reviewing the way we manage deployments of our sling instances. > Apache ACE looks interesting. I was wondering if anyone on the list > has tried it, or has recommend

management of sling instances

2015-07-09 Thread Jason Bailey
I was reviewing the way we manage deployments of our sling instances. Apache ACE looks interesting. I was wondering if anyone on the list has tried it, or has recommendations. -Jason

RE: Greetings and IRC consult

2015-07-06 Thread Jason Bailey
acretaz [mailto:bdelacre...@apache.org] Sent: Monday, July 06, 2015 9:39 AM To: users Subject: Re: Greetings and IRC consult On Mon, Jul 6, 2015 at 3:37 PM, Jason Bailey wrote: > ...anything that could actually create an actual sling community would be a > positive step Why do you th

RE: Greetings and IRC consult

2015-07-06 Thread Jason Bailey
Although I don’t use IRC that much myself, I think anything that could actually create an actual sling community would be a positive step. From: Jonathan Vila Lopez [mailto:jonathan.v...@gmail.com] Sent: Wednesday, July 01, 2015 3:06 PM To: users@sling.apache.org Subject: Greetings and IRC consul

RE: Sling CRUD with content versioning, API architecture

2015-01-16 Thread Jason Bailey
I was wondering about the rational for using parameters to display the version rather than using a selector. I would have thought a selector would be more inline (with my understanding) of using selectors to depict a variant of what the full path represents. If this is implemented. We would als

looking for feedback

2014-11-24 Thread Jason Bailey
I'm still feeling my way around the right way to implement solutions in Sling that follow "sling thinking" and I'm hoping to get some confirmation from the community. I've got a requirement where I need to render an html page as text. It doesn't need to be perfect and I understand that there wil

RE: Injecting OSGI services using sling models

2014-11-19 Thread Jason Bailey
That's an usual problem you're having. You should be able to see the service you've defined in the OSGi panel before executing the request that creates the model. -Jason From: Hasanein Khafaji Sent: Wednesday, November 19, 2014 6:54 AM To: users@sling.ap

RE: SlingServlet paths/resourceType/etc for POST to nonexistent URLs in JCR

2014-11-14 Thread Jason Bailey
Bruce, How you would do this depends in part on what that servlet does that's listening at /var/cars/ If you have all the data that is supposed to be at a particular path then removing that custom servlet and using the built in content creation process detailed at http://sling.apache.org/docu

RE: Equivalent to modeshape Sequencers or equivalent in sling/oak?

2014-11-14 Thread Jason Bailey
I did something similar with a side project that I work on, I created an import service that would be called based on the mimetype of the data that was being delivered. OOTB, there is a ContentImporter service, but it seems to be deliberately limited to a single implementation. IMHO I would lov

RE: HATEOAS compliant json self/child references from sling?

2014-11-12 Thread Jason Bailey
y to wrap a UI around the whole thing if you have HATEOAS on the server side. It's as close as you can get to a CRUD UI with seriously minimal code. Also, this is the data format provided by spring-data-rest, so it's a format that already has wide acceptance. I suppose one could ena

RE: HATEOAS compliant json self/child references from sling?

2014-11-12 Thread Jason Bailey
Not unless you add it yourself. As a note, you may not want to design your application where you are relying on the default json renderer to supply information to the front end client. It can reveal more information and structure then a lot of people are comfortable with. -Original Message

RE: Sling Standalone Application won't start

2014-07-21 Thread Jason Bailey
ache.org Subject: Re: Sling Standalone Application won't start On Sun, Jul 20, 2014 at 4:07 AM, Jason Bailey wrote: > Well that's a kick in the teeth to my plans to get it adopted. Does anyone on > the list know when the next stable release is? This isn't a direct answer to

RE: Sling Standalone Application won't start

2014-07-19 Thread Jason Bailey
ation won't start Hi Jason, On Jul 19, 2014 8:55 PM, "Jason Bailey" wrote: > > Got an odd situation here. I'm unable to start the Sling Standalone Application (org.apache.sling.launchpad-6-standalone.jar) it throws the following > > 19.07.2014 08:25:18.502 *ERROR*

Sling Standalone Application won't start

2014-07-19 Thread Jason Bailey
Got an odd situation here. I'm unable to start the Sling Standalone Application (org.apache.sling.launchpad-6-standalone.jar) it throws the following 19.07.2014 08:25:18.502 *ERROR* [main] Failed to Start OSGi framework org.osgi.framework.BundleException: Uncaught Instantiation Issue: java.lang

RE: adding java classes into the jcr

2014-07-19 Thread Jason Bailey
tp://neba.io), which gives you .adaptTo + resource to model mapping and Spring MVC plus some more features. I'm a bit biased towards that one - since I am NEBA's lead developer ;-) Kind regards, Olaf -Original Message- From: Jason Bailey [mailto:jason.bai...@sas.com] Sent:

adding java classes into the jcr

2014-07-16 Thread Jason Bailey
We're using CQ5 pretty extensively for our external web presence and I'm in the process of evaluating Sling for a wider range of use cases internally. One of the questions that comes up on a regular basis is whether we are able to define a java object alongside the JSP when we are creating a wid

Sling :redirect as a security vulnerability

2014-03-04 Thread Jason Bailey
I wanted to get some clarity from the sling user base to whether they have seen this before, is there a setting that I am missing? Or do I need to do some additional to prevent this from being an issue? Etc. Thanks -Jason Bailey

finding the right pipeline generator

2013-12-06 Thread Jason Bailey
I'm currently working in CQ5 and I'm in the process of developing a utility function that needs to iterate over the html that's being generated. I'm not able to utilize the default "global" pipeline that cq5 provides as it only generates events for certain type of dom objects and when I attempte

RE: schema location

2012-09-04 Thread Jason Bailey
Sling and JCR level. Regards Felix Am 04.09.2012 um 12:34 schrieb Jason Bailey: > Hi, > > I'm setting up my eclipse environment, and I thought I'd add the schemas for > sling and jcr to the xml catalog that's on eclipse so that I can get context > validation

schema location

2012-09-04 Thread Jason Bailey
Hi, I'm setting up my eclipse environment, and I thought I'd add the schemas for sling and jcr to the xml catalog that's on eclipse so that I can get context validation and auto-completion while I'm working on xml. I can't seem to locate those schemas in the bundles. Can someone point me to wh

How to leverage the suffix in a sling request

2012-06-22 Thread Jason Bailey
I understand most of the sling script resolution process except for the suffix piece. Is the suffix used to modify the identity of the script that is being resolved? Or is it extra data for the script to consume. If it's additional data; how is it accessed? -jason