Using Solr or elasticsearch

2014-08-26 Thread Roy Teeuwen
Has anyone managed to use Solr instead of lucene yet in sling (or even elasticsearch or anything)? I have found this gsoc https://issues.apache.org/jira/browse/SLING-2795 but no news on it since last year april. Cheers, Roy

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
t; > If all goes as expected, you will see that the folder > /opt/aem_author/crx-quickstart/repository/index is recreated and the > log messages disappear. If this is not the case, please report back > with your observations. > > Hope this helps. > > Regards > Julian

How to reindex lucene

2016-01-06 Thread Roy Teeuwen
I am having a problem with my lucene index, it is throwing the exception shown in the logs below. Last time I got this solved by setting the reindex property on true for the oak:index/lucene but now my system is so slow because it throws the exception so many times per second that I can't even get

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
lt;https://issues.apache.org/jira/browse/OAK-3504>. I don't know which Oak > version you are running, compare to the issue's fix version. If you > are running a "fixed" version, please report the issue on the Oak > list. Thanks. > > Regards > Julian > > >

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
> >> <https://issues.apache.org/jira/browse/OAK-3504>. I don't know which Oak > >> version you are running, compare to the issue's fix version. If you > >> are running a "fixed" version, please report the issue on the Oak > >> list. Thanks. > &

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
Hey Chetan, It’s a SegmentMK and Oak is 1.0.22 (AEM 6.0 SP3). Greets Roy > On 06 Jan 2016, at 13:09, chetan mehrotra [via Apache Sling] > <ml-node+s73963n4058185...@n3.nabble.com> wrote: > > On Wed, Jan 6, 2016 at 5:28 PM, Roy Teeuwen <[hidden email] > &

Re: Using the resource resolver

2016-06-14 Thread Roy Teeuwen
> > So far I have not seen a problem with simply creating and closing a > resource resolver each time you need it. But the probably the best > solution is to pass the resolver in. > > And :) you should close the resource resolver in deactivate regardless > whether it is live

Re: Using the resource resolver

2016-06-15 Thread Roy Teeuwen
eturns true if this resource resolver has not been closed yet. Unlike the other methods defined in this interface, this method will never throw an exception even after the resource resolver has been closed. Greetings, Roy > On 15 Jun 2016, at 13:55, Carsten Ziegeler <cziege...@apache.org>

Re: adaptTo() 2016 - Agenda published

2016-06-21 Thread Roy Teeuwen
Hey Stefan, Can’t wait for it ;) looks great! Greets Roy > On 21 Jun 2016, at 22:41, Stefan Seifert wrote: > > > We're proud to present this year's agenda http://adapt.to/schedule > > Luckily, there are still tickets available http://adapt.to/tickets > > #adaptTo >

Re: Querying vs iterating

2016-06-20 Thread Roy Teeuwen
ALL the conditions/attributes/properties of your >> query) then using a query should be fine, otherwise iterate yourself" >> having any condition missing from the index can be fatal in >> performance, such as lacking the evaluatePathRestrictions = true, >> which without it

Re: JCR Namespace prefix

2016-04-06 Thread Roy Teeuwen
t; > Hi Roy, > > On Wed, 2016-04-06 at 09:57 +0200, Roy Teeuwen wrote: >> Hello all, >> >> I am currently trying to develop a sass compiler that will compile >> the sass files natively in Sling instead of using CSS files. The >> issue that I am facing at

Sling Events 4.0

2016-04-08 Thread Roy Teeuwen
Hey all, After upgrading to sling events 4.0, the EventUtil has disappeared. I have been using EventUtil.isLocal(event) throughout my codebase, and in the documentation of the deprecation it states that one should check if the property exists. Does this mean that it is enough to replace this

JCR Namespace prefix

2016-04-06 Thread Roy Teeuwen
Hello all, I am currently trying to develop a sass compiler that will compile the sass files natively in Sling instead of using CSS files. The issue that I am facing at this moment though is that when I try to upload the sass files I get following exception: *ERROR* [qtp2101349382-74]

Sorting of a JCR Query

2016-03-02 Thread Roy Teeuwen
Hello all, I have a node A with subnodes B,C,D and am creating a JCR query to retrieve some of the subnodes by using the following XPATH query: /jcr:root/A//element(*, nt:unstructured) [ jcr:contains(property, ‘value’) ] The problem that I am facing at this moment that the order it

Re: Sorting of a JCR Query

2016-03-03 Thread Roy Teeuwen
// do something with it > } > > In other words: query results don't know about the sibling order of nodes. > > Regards > Julian > > > > On Wed, Mar 2, 2016 at 7:13 PM, Roy Teeuwen <r...@teeuwen.be> wrote: >> Hello all, >> >> I have a node A w

Exception when trying out the fling sample

2016-04-30 Thread Roy Teeuwen
Hello all, When navigating to fling.html after installing the fling samples I get following exception, any thought on what is going wrong? Parsing error in template /apps/fling/page/simple/html.html at line 20: extraneous input '(' expecting {'}', '.', '&&', '||', '[', '@'} for expression

Re: Exception when trying out the fling sample

2016-04-30 Thread Roy Teeuwen
instead. You could check the configured service ranking of Thymeleaf, > as suggested in > https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html > > <https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html> > > Best, > V

Re: Exception when trying out the fling sample

2016-05-01 Thread Roy Teeuwen
Hey Olivier, Thanks for the explanation! For me real the benefit would be that I could take a vanilla sling launchpad and install the project where I would add a config file making the thymeleaf engine a higher service ranking and it would all work without any manual action of the user in the

Creating templates for primary types

2016-05-05 Thread Roy Teeuwen
Hello all, I have a question, how can you create templates that work on resources with a specific primary type instead of resource type? Thanks! Roy

Re: Creating templates for primary types

2016-05-05 Thread Roy Teeuwen
nu <romb...@apache.org> wrote: > >> Hi Roy, >> >> On Thu, 2016-05-05 at 13:03 +0200, Roy Teeuwen wrote: >>> Hello all, >>> >>> I have a question, how can you create templates that work on >>> resources with a specific primary type ins

Re: One Resource to multiple views in different locations

2016-07-13 Thread Roy Teeuwen
Hey Vkum, We had the exact same problem, two sites, siteA and siteB, where there was a livecopy from siteA to siteB, but siteB had some specific header and footer components and stuff like that. How we solved this is by creating a filter that went over the resources of the request and when we

Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
Hey all, I am creating a SlingServlet that will work by both using a selector and a suffix. The resource is for example /content/dam/image.jpg and the actual url will be /content/dam/nice-image.cdn.jpg/modification-date/20160815/nice-image.jpg What is the most easy way to get the actual

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
mage.jpg at that point it > should be easier to create a servlet that will have the resource as part of > the request. > > Or optionally you could try adding a sling:resourceType to the image and have > a selector within that resource type that does what you need it do. > >

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
Also lastly to combine with my previous mail, it doesn’t have to be only images. It could also be pdf’s, zips,… So the approach I am using now won’t work in all the cases I want :) > On 28 Jul 2016, at 23:44, Roy Teeuwen <r...@teeuwen.be> wrote: > > Hey Jason, Olivier, > &

Re: Getting the actual resource from a request

2016-07-29 Thread Roy Teeuwen
be more performant/better. Thanks all, Greets Roy > On 29 Jul 2016, at 00:01, Roy Teeuwen <r...@teeuwen.be> wrote: > > Also lastly to combine with my previous mail, it doesn’t have to be only > images. It could also be pdf’s, zips,… So the approach I am using now won’t > work in

Re: Getting the actual resource from a request

2016-07-29 Thread Roy Teeuwen
nd a dispatcher that does > caching. I could sit there and call that asset with a millisecond time stamp > and each time I did it, it would be cached, and the cache would get larger. > Until some point I have consumed all of your disk space. > > I'm assuming a similar type issue with cdn

Re: Getting the actual resource from a request

2016-08-01 Thread Roy Teeuwen
DOS attack when using a > cache. > > One solution might be a generic selector filter, one that can accept a list > of patterns to whitelist or blacklist. > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Saturday, July 30, 2016 6:58

Re: Getting the actual resource from a request

2016-07-30 Thread Roy Teeuwen
obe.com/content/dam/Adobe/images/shared/product_mnemonics/48x48/dreamweaver-no-shadow-48x48.png./test/another.jpg> It seems to make a new image in the dispatcher cache for every request. But I guess we would be on the wrong list to discuss something like this ;) Greets Roy > On 29 Jul 2016,

Re: One Resource to multiple views in different locations

2016-07-14 Thread Roy Teeuwen
> taking of any action in reliance upon, this information by persons or > entities other than the intended recipient is prohibited. If you received > this in error, please contact the sender and delete the material from any > computer. > > From: Roy Teeuwen [via Apache Sling] >

Re: One Resource to multiple views in different locations

2016-07-16 Thread Roy Teeuwen
Hey Vkum, We use osgi configs per site for this :). We define per sitename the fallback roots (so that would in your example be site1 and if not available fall back to generic) Greets Roy > On 14 Jul 2016, at 14:48, vkum14 wrote: > > Hi Roy, > > My apology here if I

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
e 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 c

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

2017-01-27 Thread Roy Teeuwen
Hey Lance, If you really want to use jax-rs, have a look at the following: https://github.com/apache/aries-jax-rs-whiteboard Greets, Roy > On 27 Jan 2017, at 23:29, lancedolan wrote: > > These APIs I'm looking to

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

2017-01-28 Thread Roy Teeuwen
Hey Oli, Isnt that the whiteboard that I gave? https://github.com/apache/aries-jax-rs-whiteboard Greets Roy > On 28 Jan 2017, at 09:43, olimination wrote: > > Hi Lance, > > as Mike already mentioned the "Neba

Sling models adaptTo taglib

2016-08-19 Thread Roy Teeuwen
Hello all, I am trying to use the sling models taglib, and I am using the following input: <%@ page import=“my.packages.TestModel" %> ${model.testString} But when doing this, I get the following exception: java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String

Re: Sling models adaptTo taglib

2016-08-20 Thread Roy Teeuwen
ing to > recompile the JSP's from the OSGi console. > > Regards, > Dan > > On Fri, Aug 19, 2016 at 7:37 AM, Roy Teeuwen <r...@teeuwen.be> wrote: > >> Hey Júnior, >> >> Thanks! >> >> Darnit, it seems that I will have to wait until afte

Re: Sling models adaptTo taglib

2016-08-22 Thread Roy Teeuwen
is defined correctly, which I admit, seems to be a difficult > thing to do. Then the version of the bundle is less important then the > package version of the api's that it exports. > > -Jason > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] >

Authentication handler

2016-10-04 Thread Roy Teeuwen
Hey all, When starting up our sling instance, if you go to /system/console in the VERY beginning (like 1-3 seconds after doing a startup), it is possible to log in with admin/admin, even when the admin password has been changed to something else. What bundle has to come active for this

Re: Authentication handler

2016-10-04 Thread Roy Teeuwen
u have a > security leak if the repository is not available for whatever reason. > > stefan > >> -Original Message- >> From: Roy Teeuwen [mailto:r...@teeuwen.be] >> Sent: Tuesday, October 4, 2016 4:45 PM >> To: users@sling.apache.org >> Subject: Authent

XPath Query

2016-10-10 Thread Roy Teeuwen
Hey all, I’m not really getting a reply in the oak-dev channel, so I might as well also try here because I’m trying it in a sling application :) When doing the following XPath query in JCR 2, it would select me all the nodes that has a subnode named test. But since upgrading to oak, this query

Adding jcr:created date to resource

2016-09-20 Thread Roy Teeuwen
Hello all, I am trying to create an nt:unstructured resource programatically, which contains a jcr:created property, but I don’t seem to find a way to add this programatically, nor how to add a jcr:mixinType (which would make it possible). I tried the following, but it isn’t working: Resource

Re: Creating a service user for your own bundle

2016-11-06 Thread Roy Teeuwen
plugin showing which bundles aren't satisfied Greetings, Roy > On 6 Nov 2016, at 09:51, Carsten Ziegeler <cziege...@apache.org> wrote: > > Roy Teeuwen wrote >> Hey all, >> >> Seeing as it is now best practice to not use the getAdminRe

Creating a service user for your own bundle

2016-11-05 Thread Roy Teeuwen
Hey all, Seeing as it is now best practice to not use the getAdminResourceResolver anymore but go for the getServiceResourceResolver, what is the best way to have a bundle on it's own create the service user that belongs to the bundle. I know you can put the

Re: Creating a service user for your own bundle

2016-11-07 Thread Roy Teeuwen
needs to do this, hence the need for the require capability. Greetings, Roy > On 7 Nov 2016, at 10:05, Oliver Lietz <apa...@oliverlietz.de> wrote: > > On Monday 07 November 2016 07:58:33 Carsten Ziegeler wrote: >> Roy Teeuwen wrote > > Hi Roy, > >>> He

Re: Migrating from JSP to HTL/Sightly

2016-10-18 Thread Roy Teeuwen
workaround for this or should I register a bug. Greetings, Roy > On 12 Oct 2016, at 18:11, Roy Teeuwen <r...@teeuwen.be> wrote: > > Hey all, > > For one of our current projects, we are in the process of making all the new > components/templates in HTL instead of JSP. One

Use of namespaces in node names

2016-11-13 Thread Roy Teeuwen
Hey all, Could anyone explain me what the benefit is of using node (or property) names that contain a namespace, instead of just using nodetypes to force rules on what can be placed on certain nodes? For example for the context aware config there has been chosen to call the node sling:settings

Including attributes with Sightly/HTL

2016-10-28 Thread Roy Teeuwen
Hey all, When using HTL, how does one include attributes in a div when it’s coming from another script? In jsp we would be able to do it like the following: > This doesn’t seem possible in sightly in a way I can find? Greetings, Roy

Custom HTL attributes

2016-10-31 Thread Roy Teeuwen
Hello all, With the refactoring of the HTL bundle into multiple bundles and opening the API's, is it now yet possible to create custom HTL attributes, or is this still not feasible? Greetings, Roy

Re: Including attributes with Sightly/HTL

2016-10-31 Thread Roy Teeuwen
ng > error instead of simply passing through/ignoring the fragments. > > Vlad > > On Fri, Oct 28, 2016 at 3:20 PM, Roy Teeuwen <r...@teeuwen.be> wrote: > >> To clarify further, because a part of the script was missng: >> >> I am doing > > The f

Re: Including attributes with Sightly/HTL

2016-10-28 Thread Roy Teeuwen
To clarify further, because a part of the script was missng: I am doing > The following output is created (see the wrongly put sly tag): data-analytics-page-id=“page id" data-analytics-page-type=“page-type" Greetings, Roy > On 28 Oct 2016, at 13:39

Re: XPath Query

2016-10-11 Thread Roy Teeuwen
d in JR2 (and whether that was a bug or a feature). > > IMO you need to test for /jcr:root//*[fn:name() = 'test'] (or if there > are no other conditions simply /jcr:root//test). > > Regards > Julian > > > On Mon, Oct 10, 2016 at 1:14 PM, Roy Teeuwen <r...@teeuwen.b

Re: XPath Query

2016-10-11 Thread Roy Teeuwen
for your case. > > Regards > Julian > > > On Tue, Oct 11, 2016 at 1:44 PM, Roy Teeuwen <r...@teeuwen.be> wrote: >> Hey Julian, >> >> This is standard XPath and worked in JCR 2, for example if you look at these >> samples provided by microsoft: >> https:

Getting the context path of the application

2016-12-09 Thread Roy Teeuwen
Hey all, I am trying to get the context path of the sling application somewhere where I don't have a HttpServletRequest at hand, so I cant call request.getContextPath(). More specifically I have a bug in a TransformerFactory that transforms links to versioned clientlibs (acs-aem-commons

Re: Getting the context path of the application

2016-12-13 Thread Roy Teeuwen
y which is used directly by the Felix Http Service Jetty > bundle. Having it as a command line option is merely a convenience. > > Regards > Felix > >> Am 13.12.2016 um 08:57 schrieb Roy Teeuwen <r...@teeuwen.be>: >> >> Hey Felix, >> >&g

Re: Getting the context path of the application

2016-12-12 Thread Roy Teeuwen
erything you need. As I expect your TransformerFactory > to only be used as part of request processing anyway, right ? > > Regards > Felix > >> Am 12.12.2016 um 22:07 schrieb Roy Teeuwen <r...@teeuwen.be>: >> >> Hey Carsten, >> >> Ok cool, thanks

Re: Getting the context path of the application

2016-12-12 Thread Roy Teeuwen
a > servlet context through the init method of a servlet or by registering a > servlet context listener (assuming you use latest Sling which is using > the http whiteboard). > Other than those, I think there is no good way > > Regards > Carsten > > Roy Teeuwen wrote >

PAXExam vs Sling Teleporter (vs Sling Mocks)

2016-12-04 Thread Roy Teeuwen
Hello all, I have been going through the code base of Apache Sling and it is clear there are so many ways to test the code, you have two different bundles for PAX Exam (org.apache.sling.testing.paxexam and org.apache.sling.paxexam.util), you have the Teleporter and you also have the Sling

Using OSGi Mocks with OSGi DS annotations

2016-12-20 Thread Roy Teeuwen
Hey all, I am trying to use the osgi mocks in the following setup: @Component @Designate(ocd = ServiceImpl.Config.class) public class ServiceImpl implements Service { @ObjectClassDefinition @interface Config { String property() default "value"; } private Config

Re: Using OSGi Mocks with OSGi DS annotations

2016-12-21 Thread Roy Teeuwen
gt; volgende geschreven: > > Hi Roy, > >> On Tue, 2016-12-20 at 23:03 +0100, Roy Teeuwen wrote: >> Hey all, >> >> I am trying to use the osgi mocks in the following setup: >> @Component >> @Designate(ocd = ServiceImpl.Config.class) >> public class Ser

Re: Using OSGi Mocks with OSGi DS annotations

2016-12-23 Thread Roy Teeuwen
tion but still use an older sling version (e.g. > AEM 6.1). > > this talks lists the possible version matrix combinations > https://adapt.to/2016/en/schedule/unit-testing-with-sling-aem-mocks.html > > sefan > >> -----Original Message- >> From: Roy Teeuwen [mailto:r..

Re: Sling Resource Rendering Inheritance

2017-03-23 Thread Roy Teeuwen
t configurable? > > I used the sling sample Fling as an example but that does not use inheritance. > > Thanks for you swift help - Andy Schaefer > >> On Mar 22, 2017, at 11:05 AM, Roy Teeuwen <r...@teeuwen.be> wrote: >> >> Hey Andreas, >> >> Huh, I

Re: Sling Resource Rendering Inheritance

2017-03-23 Thread Roy Teeuwen
nder /libs instead of /apps. > > In AEM developers were told not to put anything under /libs and now Sling it > going > the other way. Is there a reason for this shift. As far as I know there’s no > difference. > > Thanks for all your help - Andy > >> On Mar 23

Re: Sling Resource Rendering Inheritance

2017-03-22 Thread Roy Teeuwen
ote: >>> >>> Hi Roy >>> >>> I tried to download your example but I am not going to install >>> an Installer software just to see a ZIP file. >>> >>> Can you share this file by any other means? >>> >>> Thanks - Andy Schaefer &

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

2017-04-04 Thread Roy Teeuwen
> Thanks - Andy Schaefer > >> On Apr 4, 2017, at 12:13 AM, Robert Munteanu <romb...@apache.org> wrote: >> >> On Tue, 2017-04-04 at 08:32 +0200, Roy Teeuwen wrote: >>> Hey Andy, >>> >>> The license inside might not be good enough ;) >&g

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

2017-04-04 Thread Roy Teeuwen
Hey Andy, The license inside might not be good enough ;) Greets, Roy > On 3 Apr 2017, at 22:50, Andreas Schaefer wrote: > > Why is that necessary? The one from Adobe isn't good enough? > > - Andy Schaefer > >> On Apr 3, 2017, at 3:23 AM, Robert Munteanu

Re: Fling Installation on Trunk

2017-04-01 Thread Roy Teeuwen
Hey Andreas, You can make your own custom launchpads with a maven project. In your pom.xml you use the following plugin: org.apache.sling slingstart-maven-plugin true Until sling 9 is released you use the following

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
} >} >} > > But this looks a bit odd to me, although I can't quite put my finger on why. > > Regards, > Justin > > On Mon, Jun 12, 2017 at 3:21 PM Roy Teeuwen <r...@teeuwen.be> wrote: > >> Hey Justin, >> >> Cool, thanks f

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
2, 2017 at 12:23 PM Justin Edelson <jus...@justinedelson.com> > wrote: > >> Hi Roy, >> This sounds like unexpected behavior. Please create a JIRA for this, >> ideally with a test case, if you have not already. >> >> Thanks, >> Justin >> &g

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
bundles/extensions/models/integration-tests/src/main/java/org/apache/sling/models/it/services/TestResourceDecorator.java?view=markup > > That said, I agree that this is a bit intrusive. One idea could be to > change the implementation in ResourceWrapper to do what I'm describing all > the time.

Sling models - Resource decorator

2017-06-06 Thread Roy Teeuwen
Hey all, I am using sling models version 1.2.2, and I have the following logic: - I find some resources with the resource resolver (resourceResolver.findResources) - The returned resources are the correct resources which are decorated by my custom resource decorator - I iterate the list to

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
Hey Jason, Guys, No one can give me an answer if this is a bug or something wanted? I can always register a Jira ticket for and put it on the dev list of course Greets, Roy > On 6 Jun 2017, at 21:50, Roy Teeuwen <r...@teeuwen.be> wrote: > > Hey Jason, > > No to both assu

Re: Sling models - Resource decorator

2017-06-06 Thread Roy Teeuwen
> 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 Tee

New Resource Provider SPI - limitations

2017-09-14 Thread Roy Teeuwen
Hey all, We are currently upgrading our environment, and of course the new resource provider SPI is now available. But it seems that our current resource provider would not be able to be used in this new SPI, seeing as in the old one you could dynamically look if the resource provider could

Re: New Resource Provider SPI - limitations

2017-09-18 Thread Roy Teeuwen
uot; provider. However, your resource provider gets a context > which it can use to get a resource from a higher provider. So instead of > returning null you explicitely call the parent and return that result > from the parent. > > Regards > Carsten > > Roy Teeuwen wrote

Re: New Resource Provider SPI - limitations

2017-09-22 Thread Roy Teeuwen
ler <cziege...@apache.org> wrote: > > Roy Teeuwen wrote >> Hey Carsten, >> >> Thanks for the info! It seems by the way that the current implementation >> actually even breaks Slin when still using the old ResourceProvider api. >> >> When you have

File system resource provider - Performance

2017-09-25 Thread Roy Teeuwen
Hey all, We are using the file system resource provider to monitor a directory to be attached as resources. Currently in our directory we have around 5 levels deep with in total 200.000 files. The problem we are facing is that when our application starts up, it takes an unusual amount of time

Re: File system resource provider - Performance

2017-09-29 Thread Roy Teeuwen
Hey Carsten, What about doing the initial scanning also async? As in that you do the initial scanning in the first scheduled run, without throwing change events for that first run Greets, Roy > On 29 Sep 2017, at 15:57, Carsten Ziegeler wrote: > > > > > Stefan

Re: File system resource provider - Performance

2017-09-29 Thread Roy Teeuwen
Hey Stefan, I was planning to give that a try too, could you maybe elaborate on what hick-ups you noticed on the different OSes? Greets Roy > On 29 Sep 2017, at 15:52, Stefan Seifert wrote: > > >> I think we could try using newer file features from Java 7 which might

Running junit integration tests with login administrative

2017-08-28 Thread Roy Teeuwen
Hey all, I am trying to run integration tests based on the org.apache.sling.junit.core bundle. So far this always used to work, because I was able to use loginAdministrative, but now that this feature is disabled I can not do this anymore without providing a

Re: Running junit integration tests with login administrative

2017-08-29 Thread Roy Teeuwen
PID. the properties to be edited are passed as * a map of property name,value pairs. So I don't know if I can also actually add a new one with this method? Thanks, Roy > On 29 Aug 2017, at 12:40, Robert Munteanu <romb...@apache.org> wrote: > > Hi Roy, > > On Mon, 2017-08-2

Re: Running junit integration tests with login administrative

2017-08-29 Thread Roy Teeuwen
Hey, Ok i will give it a try, cant seem to find any projects online that use the testing.clients bundle sadly enough. Thanks Roy > Op 29 aug. 2017 om 13:09 heeft Robert Munteanu <romb...@apache.org> het > volgende geschreven: > > > Hi Roy, > >> On Tue,

Daily content sync between environments

2017-10-22 Thread Roy Teeuwen
when going for the second part would be to expand the oak-migration tool to optionally specify which paths it should export based on a specific date property being larger/smaller than the one you pass as parameter Any opinions / suggestions on this are more than welcome. Greets, Roy Teeuwen [1

Re: Daily content sync between environments

2017-10-23 Thread Roy Teeuwen
slations can be handled in lots of ways, we might not > even use the vlt solution Robert proposed. For new content I think that > is something that will help us. > > > Regards, > > > On 23.10.2017 18:58, Robert Munteanu wrote: >> Hi Roy, >> >> On

Maven plugin to set property on a resource

2017-12-19 Thread Roy Teeuwen
Hey all, I am searching for the fastest way to set and delete a property on a resource of a specific path. I could use the gmaven-plugin and write a groovy script to do this, but maybe there is already someone with a better plugin for this and I don't have to write an ugly script for it in my

Re: Maven plugin to set property on a resource

2017-12-19 Thread Roy Teeuwen
> > -- > Jason > > On Tue, Dec 19, 2017, at 1:04 PM, Roy Teeuwen wrote: >> Hey all, >> >> I am searching for the fastest way to set and delete a property on a >> resource of a specific path. I could use the gmaven-plugin and write a >> groovy script to

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

2017-11-16 Thread Roy Teeuwen
Congratulations Robert! Greets, Roy > On 16 Nov 2017, at 15:25, Carsten Ziegeler wrote: > > Hi, > > it's my pleasure to announce that Robert took up the role as our new PMC > chair. > > Congrats Robert! > > Regards > Carsten > -- > Carsten Ziegeler > Adobe Research

Tracking of use of sling vanity urls

2017-12-20 Thread Roy Teeuwen
Hey all, We have a use case that we would like to track in our analytics if a vanity url is used. A user comes in on the site with https://www.mysite.com/my-vanity-url and gets rewritten to https://www.mysite.com/my/real/page.html

Re: Deprecation of SlingRepository.loginAdministrative()

2018-02-07 Thread Roy Teeuwen
Hey Andres, We had a similar use case to do impersonation, there is another method for that now: https://sling.apache.org/apidocs/sling10/org/apache/sling/jcr/api/SlingRepository.html#impersonateFromService-java.lang.String-javax.jcr.Credentials-java.lang.String-

Re: Deprecation of SlingRepository.loginAdministrative()

2018-02-08 Thread Roy Teeuwen
prerequisits >> ("Impersonation another user will only succeed if the impersonated user is >> valid (i.e. exists and is not disabled) *and* the the user associated with >> the editing session is allowed to impersonate this user."). >> >> >> Jörg >

Removing zips from install folder

2018-08-23 Thread Roy Teeuwen
Hey guys, We previously installed content packages by adding them to the sling-home/install folder, enabling the osgi installer to pick them up and install them. We would now want them to be installed by the jcr packagemanager rest api and clean up our install folder. In older versions of

Unlocking a resource

2018-03-14 Thread Roy Teeuwen
Hey all, I am trying to unlock a resource in a job that needs to modify the resource or subresources, but since upgrading to service resource resolvers this doesn't seem to be supported anymore. When doing the following code, I get the exception "Not an owner of the lock

Re: Unlocking a resource

2018-03-15 Thread Roy Teeuwen
er) a).isAdmin(); } I guess there is no alternative than using the login whitelist then, thats a pity. And from oak 1.10 I can just drop the code of unlocking, even better hehe. Thanks! Roy > On 15 Mar 2018, at 21:15, Robert Munteanu <romb...@apache.org> wrote: > > Hi Roy, > > On

Multiple threads on same resource resolver

2019-03-27 Thread Roy Teeuwen
Hey sling users, This is a repost from the userlist of oak because I didn't get a reply there, so I hope I might get one here: We have a system that migrates our sites based on migration rules, the psuedocode is as the following: resourceResolver =

Re: Multiple threads on same resource resolver

2019-03-28 Thread Roy Teeuwen
can only have one thread for a service >> user. But maybe your getServiceResourceResolver method is always returning >> the same instance and not creating one per call? If not, I fear this is an >> issue for Oak. >> Regards >> Carsten >> Roy Teeuwen wrote

Executing xpath query with number in path

2019-08-29 Thread Roy Teeuwen
Hey all, In the framework that we use (AEM) there is a folder structure as following: /content/launches/2019/08/29/my-launch/content/site-name I would like to do a query to search for subresources in this site, but it seems that this gives issues because an xpath query cannot take numbers as

Re: Sling Slack Channel

2020-04-21 Thread Roy Teeuwen
+1 > On 21 Apr 2020, at 18:57, Daniel Klco wrote: > > Chris, > > I agree, I'd be 100% on board with a Slack channel for Sling. A couple > thoughts: > > - There is already a slack org for the ASF: the-asf.slack.com we could use > rather than setting up another slack org > - We probably should

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

2020-12-01 Thread Roy Teeuwen
Yup, you can also get some inspiration from the aem-stubs from Cognifide: https://github.com/Cognifide/aem-stubs Not sure if there is any actual dependency on AEM for that one > On 1 Dec 2020, at 10:39, Bertrand Delacretaz wrote: > > Hi, > > On Tue,

Getting SlingHttpServletRequest in a HTTP Whiteboard

2020-11-16 Thread Roy Teeuwen
Hey all, I would like to retrieve the SlingHttpServletRequest in a filter that has been registered through the HTTP whiteboard instead of registering it with OSGi DS and implementing the Filter service interface. Is this possible? The code of the registration of the filter:

Re: [Question] API Regions Report

2021-12-06 Thread Roy Teeuwen
Wouldn't it be nice to build a web console interface for this? Looks very cumbersome at the moment and after having talks with internal Adobe customer support I can already tell you that even support doesn't know how api regions work (I asked why a package was not exported in Global, and they just

Re: Sling integration with OpenTelemetry

2023-09-14 Thread Roy Teeuwen
Wow very nice Robert :)! I was on holiday for the last week so I sadly didn't have time yet to look into updating Sling Metrics to OpenTelemetry Will definitely check it out Greets, Roy > On 14 Sep 2023, at 16:52, Robert Munteanu wrote: > > Hi, > > If you're using OpenTelemetry with your

JCR FileVault Install Hook - Load order

2023-01-27 Thread Roy Teeuwen
Hey, We are using an install hook to trigger a migration of some sort after the content package is installed. We have one specific issue with this, namely that if have a fresh environment, the installhook main class might not be available yet. Is there a way we can easily fix this? The

  1   2   >