Re: Server-Side Testing

2022-09-26 Thread Andreas Schaefer
9a0cfc4727f2802bd560803c4c8a/src/test/java/org/apache/sling/auth/form/it/AuthFormTestSupport.java#L94> > > > Hope that helps. > > Regards, > Eric > > > On Mon, Aug 22, 2022 at 2:14 PM Andreas Schaefer > wrote: > >> Hi Oliver >> >> I am making good progress

Re: Server-Side Testing

2022-08-22 Thread Andreas Schaefer
14 August 2022 23:15:16 CEST Andreas Schaefer wrote: >> Hi > > Hi Andy, > >> I am working on some sling components and want to IT test them within the >> server to avoid client-side polling. >> >> It looks like there are two ways to do that: >&g

Server-Side Testing

2022-08-14 Thread Andreas Schaefer
Hi I am working on some sling components and want to IT test them within the server to avoid client-side polling. It looks like there are two ways to do that: - Junit Servlet - Sling Testing Server Setup and Teleporter Does Sling do any server side testing? What is the currently support way

Re: new Sling feature launcher: how to set port and control port

2020-09-30 Thread Andreas Schaefer
Hi Hans-Peter Have a look at the Sling Kickstart Project 0.0.8: https://github.com/apache/sling-org-apache-sling-kickstart Out of the Box the Kickstart will launch Sling with the Sling Starter Configuration available at the date of

Re: Sling 12 with Composite Node Store

2020-03-31 Thread Andreas Schaefer
this is an Apache Sling question or an Apache Jackrabbit > question though. > > On Tue, Mar 31, 2020 at 4:02 PM Andreas Schaefer > wrote: > >> Hi >> >> Ruben and I want to setup a Sling 12 instance with a composite node store >> where /libs and /apps is

Hosting Sling

2019-11-07 Thread Andreas Schaefer
Hi Does anyone have experience with hosting a small Apache Sling site? Or is the best solution to run Sling on a Cloud Server (AWS, Azure etc)? Cheers - Andy

Re: Different Login Landing Page

2019-04-29 Thread Andreas Schaefer
never cracked open the code to see >> why. >> >> On Mon, Apr 22, 2019, 13:46 Andreas Schaefer >> wrote: >> >>> Hi Robert, Chris >>> >>> I don’t want or need to change the login page (that works and we could >>> have a custom ico

Re: Different Login Landing Page

2019-04-22 Thread Andreas Schaefer
esources/jcr_root/apps/slick/author/common/login > > On Fri, Apr 19, 2019 at 1:33 AM Robert Munteanu wrote: > >> Hi Andy, >> >> On Thu, 2019-04-18 at 10:36 -0700, Andreas Schaefer wrote: >>> Hi >>> >>> I am wondering how an appl

Different Login Landing Page

2019-04-18 Thread Andreas Schaefer
Hi I am wondering how an application would set a different landing page than the Sling Starter Page? I tried to change the sling:target through a package deployment and it works for /content but not for the root (/). Cheers - Andy Schaefer

Re: How to Execute a Sling Replication

2017-07-31 Thread Andreas Schaefer
> On Jul 26, 2017, at 1:52 AM, Timothee Maret <tma...@apache.org> wrote: > > Hi Andy, > > 2017-07-25 18:30 GMT+02:00 Andreas Schaefer Sr. <schaef...@me.com>: > >> Hi Timothee >> >> I am slowly getting there. As much as I love OSGi for its extensib

Re: How to Execute a Sling Replication

2017-07-25 Thread Andreas Schaefer Sr.
omponent you are configuring in the OSGI components > console (path is /system/console/components). The references marked as > "Unsatisfied" must be resolved, typically by adding a configuration for the > missing referenced service. > > HTH, > > Timothee > &g

Re: How to Execute a Sling Replication

2017-07-24 Thread Andreas Schaefer Sr.
t; https://github.com/apache/sling/tree/trunk/contrib/extensions/distribution#forward-distribution > > Regards, > > Timothee > > 2017-07-24 16:46 GMT+02:00 Andreas Schaefer Sr. <schaef...@me.com>: > >> Hi >> >> I managed to build and install th

How to Execute a Sling Replication

2017-07-24 Thread Andreas Schaefer Sr.
Hi I managed to build and install the Sling Distribution including the sample package. Everything looks fine but I am not sure how to start a replication of a given node. I want to replicate a given node on the Author to the Publish instance(s) defined in the used agent. How would I do that from

Re: Service user for sling pipes

2017-05-17 Thread Andreas Schaefer Sr.
I use a Service User and packaged it up in a Content Package which deploys just fine. The only drawback is that if you need to set permissions with it then you might end up with an issue where the user is created after the policies are created which leads to the policies not being set (no user

Re: Securing a Servlet w/o Resource

2017-04-11 Thread Andreas Schaefer Sr.
and a redeployment will wipe that. Is that by design? Thanks - Andy Schaefer > On Apr 11, 2017, at 12:27 AM, Bertrand Delacretaz <bdelacre...@apache.org> > wrote: > > Hi, > > On Mon, Apr 10, 2017 at 10:15 PM, Andreas Schaefer Sr. <schaef...@me.com> >

Securing a Servlet w/o Resource

2017-04-10 Thread Andreas Schaefer Sr.
Hi If I have a servlet that is not based on a resource how would I secure access in Sling? This is what I came up with on doPost(): userManager = AccessControlUtil.getUserManager(session); Authorizable authorizable = userManager.getAuthorizable(request.getUserPrincipal()); if(authorizable ==

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-04 Thread Andreas Schaefer Sr.
>> The license inside might not be good enough ;) >> >> Greets, >> Roy >>> On 3 Apr 2017, at 22:50, Andreas Schaefer <schaef...@mac.com> >>> wrote: >>> >>> Why is that necessary? The one from Adobe isn't good enough? > &g

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-03 Thread Andreas Schaefer
Why is that necessary? The one from Adobe isn't good enough? - Andy Schaefer > On Apr 3, 2017, at 3:23 AM, Robert Munteanu wrote: > > Hi Greg, > >> On Sat, 2017-04-01 at 13:18 +0200, Greg Fullard wrote: >> Hi All >> >> I see that there is some difference between how

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-01 Thread Andreas Schaefer Sr.
Hi Greg One difference between an JCR Content Package (ZIP file) is that you can use the exploded tree inside the Eclipse or IntelliJ plugin and edit / deploy / import (from server) one file at a time. With the Bundle Content you have to deploy it as an entire bundle. If working with JSon you

Re: Fling Installation on Trunk

2017-03-31 Thread Andreas Schaefer Sr.
ver Lietz <apa...@oliverlietz.de> wrote: > > On Monday 27 March 2017 13:05:38 Andreas Schaefer Sr. wrote: >> Hi >> >> I tried to install Fling from the Samples but failed with the latest Sling. >> >> First I had to install Sling Messaging and Sling Query b

Re: Use of global HTL object log

2017-03-31 Thread Andreas Schaefer Sr.
https://docs.adobe.com/docs/en/htl/docs/use-api/java.html > [1] https://docs.adobe.com/docs/en/htl/docs/use-api/javascript.html > > On Wed, Mar 29, 2017 at 8:57 PM, Andreas Schaefer Sr. <schaef...@me.com> > wrote: > >> Hi >> >> In the HTL documenta

Use of global HTL object log

2017-03-29 Thread Andreas Schaefer Sr.
Hi In the HTL documentation I saw that there is a global HTL object log for the SLF4J logger. How would I use that logger? Cheers - Andy

Re: Fling Installation on Trunk

2017-03-28 Thread Andreas Schaefer Sr.
017, at 1:22 AM, Oliver Lietz <apa...@oliverlietz.de> wrote: > > On Monday 27 March 2017 13:05:38 Andreas Schaefer Sr. wrote: >> Hi >> >> I tried to install Fling from the Samples but failed with the latest Sling. >> >> First I had to install Sling Messaging a

Re: Sling Resource Rendering Inheritance

2017-03-23 Thread Andreas Schaefer Sr.
> > https://www.dropbox.com/s/tw0edw4dddi9ksh/page-example-3.zip?dl=1 > <https://www.dropbox.com/s/tw0edw4dddi9ksh/page-example-3.zip?dl=1> > > Greets, > Roy > >> On 22 Mar 2017, at 19:48, Andreas Schaefer Sr. <schaef...@me.com >> <mailto:schaef...@m

Re: Sling Resource Rendering Inheritance

2017-03-22 Thread Andreas Schaefer Sr.
you > have to click twice. Anyway, here, my dropbox: > > https://www.dropbox.com/s/0sem7twkr5a2icp/page-example-1.zip?dl=1 > > Greetings, > Roy >> On 22 Mar 2017, at 18:26, Andreas Schaefer <a...@headwire.com> wrote: >> >> Hi Roy >> >> I t

Re: Sling Resource Rendering Inheritance

2017-03-22 Thread Andreas Schaefer
ed deleting this property from the content node? It should be > sufficient to just have sling:resourceSuperType on the component node for > inheritance to work correctly. > > Henry > >> On Mar 22, 2017, at 10:26 AM, Andreas Schaefer <a...@headwire.com> wrote: >> >&

Sling Resource Rendering Inheritance

2017-03-21 Thread Andreas Schaefer
Hi As a long time CQ / AEM backend developer I ran into some issues to adjust to Sling. I have a resource ‘Home Page’ that should render a JCR node as a HTML page. The Home page component then only adjust the layout of the Body and Head and the rest should be inherited from its Resource Super

Sling Resource Rendering Inheritance

2017-03-21 Thread Andreas Schaefer Sr.
Hi As a long time CQ / AEM backend developer I ran into some issues to adjust to Sling. I have a resource ‘Home Page’ that should render a JCR node as a HTML page. The Home page component then only adjust the layout of the Body and Head and the rest should be inherited from its Resource Super

Bundle based JCR File

2017-03-19 Thread Andreas Schaefer
Hi I want to add a JSon file to Sling as JCR Node (primary type nt:file) inside a Bundle Content. Is that possible and if how does the structure look like: In the XML based export the structure looks like this: - my-file (raw file) - my-file.dir - .content.xml (jcr:root of type

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-27 Thread Andreas Schaefer Sr.
I never develop for Sling but a few years doing backend on AEM. So I am wondering if you used the Sling IDE Tooling (Eclipse or our IntelliJ Plugin) and debugged your code there. Did you try to use a Servlet that is bound to a Type instead of a Path? This might do what you want. Cheers - Andy

Re: Multiple Version of Commons Lang in OSGI...

2017-01-09 Thread Andreas Schaefer Sr.
I use Commons tools both version 2 and 3 together in AEM and so it should work. That said how are you installing Commons lang and which package does need it. If you have a custom package that needs commons lang 3 then you need to package it with it if it is not provided from another package.

Dynamic Resource Change Listener

2016-12-25 Thread Andreas Schaefer Sr.
Hi I would like to listen to JCR Nodes being added, modified and removed in Sling and saw that you provide the Resource Change Listener which would work perfectly but I could not figure out how to make the paths to listen for dynamic. What I would love to have is to configure an OSGi Service

Re: Sling Bundle Project together with Integration Tests

2010-02-09 Thread Andreas Schaefer
to take some tweaking of the launchpad plugin. Mind creating a JIRA? On 2/9/10 2:00 PM, Andreas Schaefer wrote: Hi Felix Thanks for your help. I am not quite sure what you mean it the it classes but anyhow I made some progress. I finally could create the launchpad-bundles (needed to set

Re: Sling Bundle Project together with Integration Tests

2010-02-09 Thread Andreas Schaefer
That's fine. I'll try it as soon as it is in. Thanks - Andy On Feb 9, 2010, at 3:15 PM, Justin Edelson wrote: I haven't committed the prepare-test-webapp mojo, so this won't work. On Feb 9, 2010, at 6:13 PM, Andreas Schaefer schaef...@me.com wrote: Great, I will apply this to my project