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

RE: schema location

2012-09-04 Thread Jason Bailey
on the 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 and auto-completion while I'm working

Sling :redirect as a security vulnerability

2014-03-04 Thread Jason Bailey
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

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

RE: adding java classes into the jcr

2014-07-19 Thread Jason Bailey
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: Mittwoch, 16. Juli 2014 21:07

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:

RE: Sling Standalone Application won't start

2014-07-19 Thread Jason Bailey
Standalone Application won't start Hi Jason, On Jul 19, 2014 8:55 PM, Jason Bailey jason.bai...@sas.com 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

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

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

2014-11-12 Thread Jason Bailey
. -Bruce From: Jason Bailey jason.bai...@sas.commailto:jason.bai...@sas.com javascript:;mailto: jason.bai...@sas.commailto:jason.bai...@sas.com javascript:; Reply-To: users@sling.apache.orgmailto:users@sling.apache.org javascript:;mailto: users@sling.apache.orgmailto:users@sling.apache.org

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

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

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 hasanein@gmail.com Sent: Wednesday, November 19, 2014

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

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

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

RE: Errorpage for the SlingPostServlet

2015-07-20 Thread Jason Bailey
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 changed? -Jason -Original Message- From

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:

RE: Resource class vs CND

2015-11-16 Thread Jason Bailey
it up > :) > > > > On Fri, Nov 13, 2015 at 2:48 PM, Daniel Klco <daniel.k...@gmail.com> > 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 type > >

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

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

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

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

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

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

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

RE: Out of memory during query

2016-03-25 Thread Jason Bailey
mulate 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: Friday, March 25, 2016 1

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

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

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

RE: Getting the actual resource from a request

2016-07-28 Thread Jason Bailey
resources with a selector AND suffix (as stated in my example of course) ? Thanks! Roy > On 28 Jul 2016, at 18:35, Jason Bailey <jason.bai...@sas.com> wrote: > > I'm under the understanding that it is; > > request.getResource().getPath() > > -Original Messa

RE: Getting the actual resource from a request

2016-08-01 Thread Jason Bailey
last modified > 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 <jason.bai...@sas.com> wrote: >> >> Roy, >>

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

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

RE: Sling Health Checks

2017-01-31 Thread Jason Bailey
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 than the ones ex

RE: Sling Health Checks

2017-02-07 Thread Jason Bailey
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 <jason.bai...@sas.com> wrote: > So I'm part of a team that I will characterize as being "highly > resource o

RE: Sling Health Checks

2017-02-01 Thread Jason Bailey
7 at 4:59 PM, Jason Bailey <jason.bai...@sas.com> wrote: > ...We have an AppDynamics instance that we use to monitor the state of our > instances as much as possible... > ...If the number of submissions each instance is handling falls below > a certain threshold or increases

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

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: 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

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

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: 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

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-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:

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

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: 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]

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

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,

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=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