quick way to see all service user mappings?

2015-08-06 Thread Nicolas Peltier
Hi, right now when i want to see which user is tied to such service for monitoring purpose, i need to go to felix console, and check one by one the 49 (on my local aem 6.1 instance) lines labelled [0] in configuration manager… is there another way i’m not aware of? Nicolas [0]

Re: quick way to see all service user mappings?

2015-08-07 Thread Nicolas Peltier
On Thu, Aug 6, 2015 at 4:02 PM, Nicolas Peltier npelt...@adobe.com wrote: Hi, right now when i want to see which user is tied to such service for monitoring purpose, i need to go to felix console, and check one by one the 49 (on my local aem 6.1 instance) lines labelled [0] in configuration

Re: playing with sling pipes

2016-01-15 Thread Nicolas Peltier
er", "prop1": "${testComp.test1_prop1?testComp.test1_prop1:null}", "prop2": "${testComp.test1_prop2?testComp.test1_prop2:null}" }, "test2": { "jcr:primaryType": "sling:Folder", "pr

Re: playing with sling pipes

2016-01-14 Thread Nicolas Peltier
Hey Ruben! including sling users DL here. if i understand it correctly, you wish to move several properties from a same node in different things, > Eg if the property does not exist, skip the move? Is the problem you have here not to cut the execution stream if one of the property does not

Re: playing with sling pipes

2016-01-15 Thread Nicolas Peltier
cr:primaryType": "sling:Folder", "prop1": "${testComp.test1_prop1?testComp.test1_prop1:null}", "prop2": "${testComp.test1_prop2?testComp.test1_prop2:null}" }, "test2": { "jcr:primaryType": "

Re: playing with sling pipes

2016-01-14 Thread Nicolas Peltier
tle", > "path": "${path.prop1}/item1_title", > "sling:resourceType": "slingPipes/mv" > }, >"prop2": { > "jcr:primaryType": "nt:unstructured", > "expr": "/jcr:root/content//*[jcr:con

[sling mock] is it possible to mock a Date property

2016-03-15 Thread Nicolas Peltier
with resource resolver mock ? doc says it slightly different, but how concretely are we supposed to serialise date values? Thanks, Nicolas

Re: try-with-resources with resolver

2016-04-07 Thread Nicolas Peltier
thx! > On 07 Apr 2016, at 12:53, Carsten Ziegeler <cziege...@apache.org> wrote: > > Nicolas Peltier wrote >> Hi, >> >> is it possible to use the try with resources [0] with resource resolver? My >> compiler yells resource resolver is not auto-closeab

try-with-resources with resolver

2016-04-07 Thread Nicolas Peltier
Hi, is it possible to use the try with resources [0] with resource resolver? My compiler yells resource resolver is not auto-closeable Thanks, Nicolas [0] http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

[import] how to POST ordered structures

2016-04-19 Thread Nicolas Peltier
Hi, json objects’ key values are not ordered, so does that mean there is no choice but to use xml to POST ordered structure? Thanks, Nicolas

Re: [import] how to POST ordered structures

2016-04-20 Thread Nicolas Peltier
acretaz <bdelacre...@apache.org> wrote: > > Hi, > > On Tue, Apr 19, 2016 at 6:11 PM, Nicolas Peltier <npelt...@adobe.com> wrote: >> json objects’ key values are not ordered, so does that mean there is no >> choice >> but to use xml to POST ordered

Re: [import] how to POST ordered structures

2016-04-20 Thread Nicolas Peltier
xml hurts, would it be acceptable to have a “internal” key in object that specifies the order? > On 19 Apr 2016, at 18:11, Nicolas Peltier <npelt...@adobe.com> wrote: > > Hi, > > json objects’ key values are not ordered, so does that mean there is no > choice but to

Re: [import] how to POST ordered structures

2016-04-20 Thread Nicolas Peltier
> > OOTB yes, the alternative being to extend the POST servlet to do what > you need, as it's generally useful. right, how would you see it? custom key value like “slingpost_order”:[“child1”,”child2”,”child3”] ? > > -Bertrand

htl binding & different osgi versions

2016-11-16 Thread Nicolas Peltier
Hi, is there a way to specify the bundle version of the htl pojo or other bindings we use in a script? i’d like to have an app reusing another’s app bindings, without depending directly of the later release cycle. Nicolas

Re: Need help in implementing Sling Context Aware Configuration

2016-11-21 Thread Nicolas Peltier
Hi Guys, thanks for your help, it was indeed a deployment issue. now we’d need to know how to properly implement a “complex” but rather current case with country and language subnodes. Am i right to assume if we want to use default context path strategy we should add a sling:configRef

Re: [caconfig] changing config path

2016-12-16 Thread Nicolas Peltier
s the config data of > the context where the page is created. > > stefan > >> -Original Message- >> From: Nicolas Peltier [mailto:npelt...@adobe.com] >> Sent: Thursday, December 15, 2016 9:38 AM >> To: users@sling.apache.org >> Subject: [caconfig] chang

[caconfig] changing config path

2016-12-15 Thread Nicolas Peltier
Hi, on my project i want to use context aware config, but in order for me to profit from some AEM content management tools, i would like to move the root of my configuration to /content/conf. I realized it was not possible unless i change config path in configuration from /conf to

[caconfig][mock] configuration resolver mock?

2016-12-01 Thread Nicolas Peltier
Hi is there a configuration resolver mock i can use, or is it planned ? Nicolas

[caconfig] shouldn't multiplexers be exposed?

2017-01-06 Thread Nicolas Peltier
Hi, right now ContextPathStrategyMultiplexer (and other multiplexers) are in impl package, and thus only accessible within the bundle. However iiuc those multiplexers are the ones you call to use the interface API regardless of which the implementation is. If in an application i want to

Re: [caconfig][mock] configuration resolver mock?

2017-01-04 Thread Nicolas Peltier
gin. stefan -Original Message- From: Nicolas Peltier [mailto:npelt...@adobe.com] Sent: Wednesday, January 4, 2017 2:31 PM To: users@sling.apache.org<mailto:users@sling.apache.org> Subject: Re: [caconfig][mock] configuration resolver mock? Thanks Stefan! one thing that is not clear to me: how

Re: [caconfig][mock] configuration resolver mock?

2017-01-04 Thread Nicolas Peltier
ling/caconfig/impl/ConfigurationTestU tils.java -Original Message----- From: Nicolas Peltier [mailto:npelt...@adobe.com] Sent: Thursday, December 1, 2016 2:13 PM To: users@sling.apache.org Subject: [caconfig][mock] configuration resolver mock? Hi is there a configuration resolver mock i can use

Re: [caconfig] shouldn't multiplexers be exposed?

2017-01-06 Thread Nicolas Peltier
ub.com/apache/sling/blob/trunk/bundles/extensions/caconfig/impl/src/main/java/org/apache/sling/caconfig/management/ContextPathStrategyMultiplexer.java > > if we you think we should expose others (or all) as well please open a JIRA > ticket. > > stefan > >> -----Original Mes

Re: [caconfig] changing config path

2016-12-19 Thread Nicolas Peltier
iguration, but if you need your users to manipulate it, it becomes content too. > stefan > >> -Original Message- >> From: Nicolas Peltier [mailto:npelt...@adobe.com] >> Sent: Friday, December 16, 2016 3:53 PM >> To: users@sling.apache.org >> Subj

[mocks] weird RT exception with JCR_MOCK

2017-07-06 Thread Nicolas Peltier
Hi, When adding o.a.s.jcr.resource to sling pipes (for JcrResourceConstants), mocks fail to run with exception [0]. I started playing around with exclusions and dependency without success and figured out I could ask here if anybody had this issue before. Any clue? Nicolas [0] Caused by:

Re: [mocks] weird RT exception with JCR_MOCK

2017-07-06 Thread Nicolas Peltier
ly works. i assume you reference a newer version of > jcr.resource in your project, so you have to add a dependency to > org.apache.jackrabbit.oak-jcr as well. > > stefan > >> -Original Message- >> From: Nicolas Peltier [mailto:npelt...@adobe.com.INVALID] >

Sling pipes release

2017-04-27 Thread Nicolas Peltier
Hi, Is it possible to fix SLING-6800 and create a 0.0.12 release for sling pipes? Thanks, Nicolas

Re: Service user for sling pipes

2017-05-17 Thread Nicolas Peltier
ded and integrated into my project. > > - Andy > >> On May 17, 2017, at 12:29 AM, Nicolas Peltier <npelt...@adobe.com.INVALID> >> wrote: >> >> Thanks Robert! will go without service user for now, and track a bug around >> it. >> >>>

Re: Service user for sling pipes

2017-05-17 Thread Nicolas Peltier
Thanks Robert! will go without service user for now, and track a bug around it. > On 17 May 2017, at 09:00, Robert Munteanu <romb...@apache.org> wrote: > > Hi Nicolas, > > On Tue, 2017-05-16 at 19:18 +, Nicolas Peltier wrote: >> Hey, >> >> I’d

Re: Removing commons.json guidance

2017-06-08 Thread Nicolas Peltier
-). > > Overall, the policy is: no more org.json/commons.json. The guideline > is, try to use javax.json if its complicated, otherwise, see if the > Felix JSONWriter is enough and if so, us that one but embed it > directly into the bundle. > > Does this help? > > regards,

Service user for sling pipes

2017-05-16 Thread Nicolas Peltier
Hey, I’d need for a JIRA (asynchronous execution of sling pipes) to create a service user. Not sure how I should bundle that. I see some stuff in the launchpad’s repoinit scripts, but obviously that’s not a place for extensions… Any clue? Nicolas

Removing commons.json guidance

2017-05-29 Thread Nicolas Peltier
Hey Karl, I see you created a few JIRAs on removing commons.json I followed the effort about from rather far away. Would it be possible to indicate some wiki or doc on what are the guidelines following that change? Nicolas

Shortcut for using osgi configurations in sightly

2017-06-16 Thread Nicolas Peltier
Hi, What do we have in sling framework so far to reuse osgi configuration in sightly script? I’ve seen a lot of services, used by beans / models, finally used by the script, but I find it a bit cumbersome (rather other both java pieces do nothing but passing along the information). Nicolas

Re: Compatibility of Sling Pipes across different versions

2018-05-02 Thread Nicolas Peltier
Hi Tobias, Compatibility breaks happened with 0.x ->1.x and 1.x -> 2.x. Some are API based, some about pipes themselves. The major one I remember from top of my head is with sling query that, from 2.x + is much more used [0]. 1.x brought pipe builder (used in groovy creation you talked about),

[slingstart-maven-plugin] configuring logs

2018-09-05 Thread Nicolas Peltier
Hi, Is there a way to easily set logger on a sling instance launched with slingstart-maven-plugin ? Trying to set debug log in https://github.com/apache/sling-org-apache-sling-servlets-annotations-it/blob/master/pom.xml#L76 Nicolas

Re: Can Suffix be used in the Sling Filter Pattern?

2018-07-11 Thread Nicolas Peltier
Hi Cris, Not there is not, you have to test the suffix in the filter itself. Nicolas On 11/07/2018 03:26, "Cris Rockwell" wrote: Hi all Was trying to register a filter by including the path, extension and suffix. EngineConstants.SLING_FILTER_PATTERN +

[caconfig] using caconfig spi for cq content policy fallbacks

2018-10-12 Thread Nicolas Peltier
Hi, because i'm talking about context aware config, i'll give some context here :-) i'd like test using caconfig logic to replace specific inheritance like core breadcrumb's [0] that will allow less code and additional inheritance levels (assuming i'm storing different content policies at

Re: Segment Tar based Sling clustering

2018-11-19 Thread Nicolas Peltier
Note that option 2 is the easiest option in case you are clustering for read only (high availability scenario) On 19/11/2018 12:27, "Julian Sedding" wrote: Hi Stepan This question is better suited for the Jackrabbit Oak list. But here's my take anyways: I am

[osgi] models as adapters

2019-11-18 Thread Nicolas Peltier
Hi, i have the following use case: - my bundle has a model A, and a long running thread, using .adaptTo(A.class) from a resource, - when upgrading my bundle with thread still running there is a period when above adaptTo will return null if it is "okay", and i should detect bundle status in my

Re: [Sling JCR resource] ResourceChangeListeners fail to register

2020-03-13 Thread Nicolas Peltier
in the first place. From: Rafiya Sirin Date: Thursday 12 March 2020 at 22:09 To: "users@sling.apache.org" , Nicolas Peltier Cc: Sandeep Kambi Nanjundeshwara Subject: [Sling JCR resource] ResourceChangeListeners fail to register Hi All, I was trying to register a simple ResourceChan

Re: [VOTE] Release Apache Sling Engine 2.7.2

2020-04-27 Thread Nicolas Peltier
+1 Le dim. 26 avr. 2020 à 22:37, Daniel Klco a écrit : > +1 > > On Sun, Apr 26, 2020 at 4:59 AM Carsten Ziegeler > wrote: > > > +1 > > > > Carsten > > > > On 26.04.2020 09:59, Carsten Ziegeler wrote: > > > Hi, > > > > > > We solved 9 issues in this release: > > >

[caconfig] best way to have an ordered list of CA configurations

2020-08-28 Thread Nicolas Peltier
Hey, am wondering what is the best way to get an ordered list of configuration: - setting my configuration to be a collection, but the API seems to use Collection which is not supposed to be ordered, - using nested configuration, like here [0], but i have troubles seeing working examples (this

Re: [Sling Pipes]Multi Value Property Read & Write

2020-07-09 Thread Nicolas Peltier
3Fid%3DWht7-jR7h0OUrtLBeN7O4Wt4SlUkSKNJhPA9dqz9FkBUQVZNNDJONzhHTFREMTExQktPUFAwNDVFVC4udata=02%7C01%7Cnpeltier%40adobe.com%7C7f3b396f5fae43df929c08d8238c5443%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637298432912519228sdata=Pt0IrED6eZzJ6018hyTK8s%2FER8AJv6sVCxOP3D9uNGY%3Dreserved=0> pro

Re: [Sling Pipes]Multi Value Property Read & Write

2020-07-08 Thread Nicolas Peltier
Hi Kaushall, Multivalue pipe only role is to fork the flow for each value of the MV property, adding the value in the bindings. I think you should write to a temp property before moving it back So something like plumber.newPipe(resourceResolver) .echo("/etc/your/configuration/mvProperty")

Re: [Sling Pipes]Multi Value Property Read & Write

2020-07-13 Thread Nicolas Peltier
c004808d824fcd8c0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637300015692606105sdata=Vb9cpXmJNssIUZO6lTl60rirO4MwWa9c2WfKq9eh6zU%3Dreserved=0> program makes it quick and easy to provide your feedback and help us to recognize our top performers. On Jul 9, 2020, at 2:48 AM, Nicolas Peltier ma

[pipes] getting off of nashorn

2020-06-23 Thread Nicolas Peltier
Hey, not sure who here is using pipes but my team, but you never know :-) As part of replacing nashorn [0] for pipe expressions [1] i see following approach, and here will be the place to shout out if you disagree. I see default behaviour not to use any scripting engine, but commons text's

Re: Sling data migrations

2020-06-11 Thread Nicolas Peltier
If you need to do a > *lot* of > changes to the structure if your content, you may be better to pull it > down, transform it offline and reload. > > On Wed, Jun 10, 2020 at 2:51 AM Nicolas Peltier > wrote: > > > Hi Carlos, > > > > one approach (

Re: Sling data migrations

2020-12-04 Thread Nicolas Peltier
Service Name: org.apache.sling.event.jobs.JobManager > Cardinality: 1..1 > Policy: static > Policy Option: reluctant > Bound Service: ID 798 (org.apache.sling.event.impl.jobs.JobManagerImpl) > Properties= > authorizedUsers=[admin] > bufferSize=1000 >

Re: Sling data migrations

2020-12-04 Thread Nicolas Peltier
figuration. Le ven. 4 déc. 2020 à 17:22, Nicolas Peltier a écrit : > from "executionPermissionResource=/system/sling/permissions/pipes/exec" > it seems you are on version 4.0.0 (which is the latest and that's good) > in case you are on CQ, you can try that content package > h

Re: Sling data migrations

2020-12-03 Thread Nicolas Peltier
the service > unavailable to use. I was wondering if you have any ideas here. > > Regards, > > Carlos > > On Thu, Jun 11, 2020 at 3:45 AM Nicolas Peltier > > wrote: > > > I would kindly disagree here on disqualifying pipes for *lot* of changes > in > > the s

Re: Sling data migrations

2020-12-05 Thread Nicolas Peltier
installed. > > On Fri, Dec 4, 2020 at 11:32 AM Nicolas Peltier > wrote: > > > ha, and looking a bit more at it, "authorizedUsers" is a set of service > > users, and if non void, it will indeed try to fetch that service user and > > do stuff out of it. This is mea

[mock] best way to mock http(s) endpoint

2020-12-01 Thread Nicolas Peltier
Hey, i'd like to "unit" test some code that does http connection & data fetch. I guess using an external endpoint is not a good idea, do we have already some stuff to mock an http(s) endpoint, or do i need to spin up a pax container (with required bundles)? Nicolas

Re: [mock] best way to mock http(s) endpoint

2020-12-01 Thread Nicolas Peltier
thanks guys, it indeed is cool! Le mar. 1 déc. 2020 à 12:55, Roy Teeuwen a écrit : > Yup, you can also get some inspiration from the aem-stubs from Cognifide: > > https://github.com/Cognifide/aem-stubs < > https://github.com/Cognifide/aem-stubs> > > Not sure if there is any actual dependency on