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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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]
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
When you have components implementing Runnable, as an example. Is there any way
to see that these items are scheduled?
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
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
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
; 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
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
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()
>
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
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
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
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
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:
Has anyone played around with using Sling without utilizing the JCR resource
provider and utilizing one of the other providers instead?
-Jason
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.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:
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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*
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
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:
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
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
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
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
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
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
73 matches
Mail list logo