Re: Export content as JSON ready to be imported

2017-03-28 Thread Guillaume Lucazeau
3-28 11:56 GMT+02:00 Bertrand Delacretaz <bdelacre...@apache.org>: > Hi, > > On Tue, Mar 28, 2017 at 11:25 AM, Guillaume Lucazeau > <glucaz...@gmail.com> wrote: > > ...Considering the lack of responses, Re-importing exported JSON, > including > > the privil

Re: Export content as JSON ready to be imported

2017-03-28 Thread Guillaume Lucazeau
the importer on my own :) I was wondering if pull requests on Github are the best way to submit patches to Sling, or if you prefer diff files attached to a ticket. Thank you, Guillaume 2017-03-20 11:50 GMT+01:00 Guillaume Lucazeau <glucaz...@gmail.com>: > Hello, > > I realized th

Re: Export content as JSON ready to be imported

2017-03-07 Thread Guillaume Lucazeau
implement ACLs imports would be really helpful. Is that something already available in Adobe products built on top of Sling? Thank you very much for your help. Best regards, Guillaume On Mon, Mar 6, 2017 at 5:39 PM, Guillaume Lucazeau <glucaz...@gmail.com> wrote: > I have created this tic

Re: Export content as JSON ready to be imported

2017-03-06 Thread Guillaume Lucazeau
omb...@apache.org> wrote: > Hi Guillaume, > > On Mon, 2017-03-06 at 12:20 +0100, Guillaume Lucazeau wrote: > > Hello Robert, > > > > I finally have time this week to work on those enhancements, required > > on > > our project. How does it work, should I

Re: Export content as JSON ready to be imported

2017-03-06 Thread Guillaume Lucazeau
ContentCreator class in the jcr contentloader, but any help would be useful. Best regards, Guillaume On Wed, Dec 21, 2016 at 1:08 PM, Robert Munteanu <romb...@apache.org> wrote: > On Wed, 2016-12-21 at 12:30 +0100, Guillaume Lucazeau wrote: > > Hello Robert, > > > > Is it s

Re: uses for Sling

2017-01-13 Thread Guillaume Lucazeau
Hello Jason, We used it for an extranet for sales people. The company has different brands, each brands contains different products and then the country is divided in regions, sectors and target units. The nodes tree was then convenient for this data structure. We have then different "documents"

Re: Export content as JSON ready to be imported

2016-12-21 Thread Guillaume Lucazeau
Regards, Guillaume On Sat, Dec 17, 2016 at 9:18 PM, Robert Munteanu <romb...@apache.org> wrote: > Hi Guillaume, > > On Tue, 2016-11-29 at 18:36 +0100, Guillaume Lucazeau wrote: > > Hello, > > > > Currently when you get content through the json extension, it >

Export content as JSON ready to be imported

2016-11-29 Thread Guillaume Lucazeau
Hello, Currently when you get content through the json extension, it contains protected properties ("jcr:created", "jcr:createdBy") and permissions nodes. The protected properties prevent the JSON to be immediately reimported in another repository, and for what I see here [1] permissions are not

Re: Copy from an environment to another: user admin doesn't exist anymore

2016-11-29 Thread Guillaume Lucazeau
15, 2016 at 4:03 PM, Robert Munteanu <romb...@apache.org> wrote: > Hi Guillaume, > > On Fri, 2016-10-14 at 15:09 +0200, Guillaume Lucazeau wrote: > > Reindexing everything fixed the issue with admin user. > > > > Now I'm very curious to get information about backupi

Re: x SCR Annotations and sling-mock to get resourceResolverFactory

2016-10-20 Thread Guillaume Lucazeau
Hello Jordan, You can register services in the mocked Sling context: @Rule public final SlingContext slingContext = new SlingContext(ResourceResolverType.RESOURCERESOLVER_MOCK); [...] slingContext.registerService(ResourceResolverFactory.class, new MockResourceResolverFactory()); Thus they will

Re: Copy from an environment to another: user admin doesn't exist anymore

2016-10-14 Thread Guillaume Lucazeau
experience you could have on this topic. Thank you Guillaume On Fri, Oct 14, 2016 at 2:01 PM, Guillaume Lucazeau <glucaz...@gmail.com> wrote: > Hello, > > I would like to know the procedure to duplicate a whole Sling environment, > with data stored in an Oracle DB. > > I though

Custom installer: watch for data files to transform them in resources

2016-08-01 Thread Guillaume Lucazeau
Hello, I'm trying to provided a tool to perform bulk updates on our content. Following the Command pattern, a core bundle would handle commands (delete nodes, update properties, import content etc.) provided by different command bundles. I was thinking I could upload JSON files in a watched

Re: Deploying a bundle with configuration removes other configuration saved with Felix web console

2016-07-06 Thread Guillaume Lucazeau
xes the issue. I was so focused on the configuration part that I didn't think to check here. Many thanks to both of you for finding it. Best regards, Guillaume On Wed, Jul 6, 2016 at 11:31 AM, Bertrand Delacretaz <bdelacre...@apache.org > wrote: > Hi, > > On Wed, Jul 6, 2016 at 1

Re: Deploying a bundle with configuration removes other configuration saved with Felix web console

2016-07-06 Thread Guillaume Lucazeau
n Wed, Jul 6, 2016 at 10:33 AM, Bertrand Delacretaz <bdelacre...@apache.org > wrote: > Hi Guillaume, > > On Wed, Jul 6, 2016 at 9:01 AM, Guillaume Lucazeau <glucaz...@gmail.com> > wrote: > > ...I've found out that if a configuration is initialized through a > > s

Deploying a bundle with configuration removes other configuration saved with Felix web console

2016-07-04 Thread Guillaume Lucazeau
Hello, When I deploy a bundle with a config.json file containing some osgi:config nodes, it deletes the configuration I saved for another bundle through the web console: First the property value declared by my first bundle is modified from the web console: INFO c.r.o.c - Service

Re: Use of request/resource wrappers

2016-05-02 Thread Guillaume Lucazeau
help! Kind regards, Guillaume On Wed, Apr 27, 2016 at 4:05 PM, Guillaume Lucazeau <glucaz...@gmail.com> wrote: > Hello Bertrand, > > Unfortunately I cannot, we don't support anonymous access because from the > user account depends what "documents" he can see and sometimes edi

Re: Use of request/resource wrappers

2016-04-27 Thread Guillaume Lucazeau
Apr 27, 2016 at 11:16 AM, Guillaume Lucazeau > <glucaz...@gmail.com> wrote: > > ...My application is supposed to have a "presentation mode" that disables > > editing capabilities on content > > Can't you use access control for that? > > For example gi

Use of request/resource wrappers

2016-04-27 Thread Guillaume Lucazeau
Hello, My application is supposed to have a "presentation mode" that disables editing capabilities on content. To implement that, I thought I could open the document with a parameter in the link, and add a Sling filter on pages to detect this parameter either in the URL or in the user's session

Re: Why is rep:write necessary to allow user to move nodes?

2016-04-27 Thread Guillaume Lucazeau
omb...@apache.org> wrote: > Hi Guillaume, > > On Wed, 2016-04-13 at 17:52 +0200, Guillaume Lucazeau wrote: > > Hello, > > > > I have a user granted jcr:read and jcr:write privileges on a resource > > "parentNode". Under this resource, I have two nod

Why is rep:write necessary to allow user to move nodes?

2016-04-13 Thread Guillaume Lucazeau
Hello, I have a user granted jcr:read and jcr:write privileges on a resource "parentNode". Under this resource, I have two nodes with type sling:Folder, and I've tried to move a node from one to the other. It fails with "javax.jcr.AccessDeniedException: Not allowed to move node", until I grant my

Re: Compusum 1.5.SNAPSHOT 'Check the ACLs' error at login

2016-04-07 Thread Guillaume Lucazeau
Hello, > I recall that at some point there were some issues with composum and JBoss when deployed under a custom context path. They have added custom context path support in Composum 1.3.3: https://github.com/ist-dresden/composum/issues/9 Regards, Guillaume On Thu, Apr 7, 2016 at 2:34 PM,

Use custom LoginModulePlugin with form based authentication handler

2016-04-05 Thread Guillaume Lucazeau
Hello, I would like to know if it's possible to just plug a custom LoginModulePlugin (to use LDAP) while using everything else from the form based authentication handler, as everything works well for me except I have to use LDAP. I've tried to put my LoginModulePlugin into a fragment but it's

Re: Double servlet context after logout redirection

2016-03-24 Thread Guillaume Lucazeau
his for some time, but I think to remember that there was > an issue > > Regards > Carsten > > Guillaume Lucazeau wrote > > I've built and deployed org.apache.sling.auth.core-1.3.13-SNAPSHOT with > > changing SlingAuthenticator.redirectAfterLogout from: > >

Double servlet context after logout redirection

2016-03-23 Thread Guillaume Lucazeau
Hello, Probably a stupid question again with a simple answer, but really cannot figure it out: I was trying to redirect the user to the loginForm resource after logout, but I end with a double context (/dev/dev/apps/loginForm) if I add it to the resource parameter. If I don't,

Re: Display user node properties

2016-03-19 Thread Guillaume Lucazeau
at 3:24 PM, Guillaume Lucazeau <glucaz...@gmail.com> wrote: > Hello, > > I would need to display some properties from a user node, for now the > displayName property. > > I need it for the current logged in user, the users that have jcr:write > privile

Bundle starts twice when redeployed

2016-02-25 Thread Guillaume Lucazeau
Hello, When I deploy my bundle with the Maven sling plugin, it starts it twice, causing issues in my set up operations (user creation, permissions settings etc). The first time with background update, the second time from FelixFrameworkWiring. Could it be related to this?

Re: Ordering nodes after initial import

2016-02-23 Thread Guillaume Lucazeau
On Tue, Feb 23, 2016 at 12:17 PM, Marius Petria <mpet...@adobe.com> wrote: > > > > > > On 2/23/16, 12:51 PM, "Guillaume Lucazeau" <glucaz...@gmail.com> wrote: > > >The second issue is that my service needs access to an administrative > >s

Ordering nodes after initial import

2016-02-23 Thread Guillaume Lucazeau
Hello, I'm loading content through a JSON file. I would like then to sort nodes (mostly page nodes under document nodes) with the JCR API. I'm calling my service in my bundle's activator, but i'm facing two issues. The first one is that no changes seems to be applied to the content tree. While

Re: Custom login form with a JSP

2016-02-10 Thread Guillaume Lucazeau
ervlet context path '/test' Is anybody else using this form authentication with a context path? Thank you, Guillaume On Tue, Feb 9, 2016 at 4:28 PM, Guillaume Lucazeau <glucaz...@gmail.com> wrote: > I see the same problem with the default value: /system/sling/form/login > > > I need to a

Re: Custom login form with a JSP

2016-02-09 Thread Guillaume Lucazeau
thing here? Thank you, Guillaume [1] https://sling.apache.org/documentation/the-sling-engine/authentication/authentication-authenticationhandler/form-based-authenticationhandler.html On Fri, Jan 29, 2016 at 2:59 PM, Guillaume Lucazeau <glucaz...@gmail.com> wrote: > Hello Julian, >

Re: Custom login form with a JSP

2016-02-09 Thread Guillaume Lucazeau
I see the same problem with the default value: /system/sling/form/login I need to add the context path otherwise I'm redirected to the Sling index page. Any idea of what I'm doing wrong? Thank you for your help Guillaume On Tue, Feb 9, 2016 at 3:55 PM, Guillaume Lucazeau <glucaz...@gmail.

Re: Custom login form with a JSP

2016-01-29 Thread Guillaume Lucazeau
ead permissions? If you want to have a resource based > login page, you need to allow "anonymous" read access. > > Hope this help! > > Regards > Julian > > On Wed, Jan 13, 2016 at 4:15 PM, Guillaume Lucazeau <glucaz...@gmail.com> > wrote: > > Hello, >

Custom login form with a JSP

2016-01-13 Thread Guillaume Lucazeau
Hello, I would like to provide a custom form reusing the form authentication provided by Sling, so I have followed this example: https://github.com/apache/sling/tree/trunk/samples/custom-login-form I works well with a static page, however I would like to reuse the header/footer fragments that I

Re: Using Sling with a context path

2016-01-11 Thread Guillaume Lucazeau
Thank you for confirming that I need to manually set it, I'll stick to the contextPath property for now and look further at the other resources you've provided Thank you for your help Guillaume On Thu, Jan 7, 2016 at 10:56 AM, Carsten Ziegeler wrote: > Oliver Lietz wrote

Using Sling with a context path

2016-01-06 Thread Guillaume Lucazeau
Hello, I'm trying to use Sling in JBoss, I have installed the war as sling.war and I'm accessing the web consoles like this : http://localhost:8080/sling However, I have sevral tags to call different parts of my web UI (header, footer) as seen in some examples, like this: But the context part

Re: Sling 7 - JCR Explorer - Error with any JCR-SQL2 query

2016-01-06 Thread Guillaume Lucazeau
omb...@apache.org> wrote: > Hi Guillaume, > > On Tue, 2015-12-01 at 16:40 +0100, Guillaume Lucazeau wrote: > > Hello, > > > > It seems I cannot execute a single query in the JCR > > Explorer. Something > > simple like this "SELECT *

Sling 7 - JCR Explorer - Error with any JCR-SQL2 query

2015-12-01 Thread Guillaume Lucazeau
Hello, It seems I cannot execute a single query in the JCR Explorer. Something simple like this "SELECT * FROM [sling:Folder]" produces this : * Wrapped javax.jcr.RepositoryException: This query result has already been iterated through (/libs/sling/servlet/default/explorer/search.esp#82) (500)*

Re: Deploy Sling to JBoss EAP 6.4.0

2015-11-24 Thread Guillaume Lucazeau
uld give you the same). > Just to be sure, does that JBoss version support servlet 3.1? > > Regards > Carsten > > Guillaume Lucazeau wrote > > Hello Carsten, > > > > Did you change the file like this? > > web-app version="3.1"

Re: Deploy Sling to JBoss EAP 6.4.0

2015-11-23 Thread Guillaume Lucazeau
.1 in > > sling/launchpad/base/src/main/webapp/WEB-INF/web.xml > > b) Rebuilding launchpad/base > > c) Rebuilding launchpad/builder > > d) Redeploying the war file > > > > Thanks > > Carsten > > > > Guillaume Lucazeau wrote > >> Hello, &

Re: Connect Jackrabbit to Oracle DB

2015-11-22 Thread Guillaume Lucazeau
possible? Using an Oracle database is mandatory to my client. Do you know which Oak version is included in Sling 8? Thank you! Guillaume On Fri, Nov 20, 2015 at 2:29 PM, Robert Munteanu <romb...@apache.org> wrote: > Hi Guillame, > > On Thu, 2015-11-19 at 16:44 +0100, Guillaume

Connect Jackrabbit to Oracle DB

2015-11-19 Thread Guillaume Lucazeau
Hello, sorry for spamming the mailing list but I'm still discovering Sling and trying to anticipate questions from my client. I'm trying to show that Jackrabbit can be persisted in an Oracle DB, following this article:

Include same comment form from different resource type's views

2015-11-17 Thread Guillaume Lucazeau
Hello, not sure the subject is clear... I have this simple structure: - document -- page(s) --- component(s) : 1 to 4 on each page Those components can be of different type : image, text, map, graph. For each I have a different sling:resourceType for the node and a corresponding view (JSP) I'd

Re: Resource class vs CND

2015-11-16 Thread Guillaume Lucazeau
ls last, since - contrary to many > other web frameworks - those do not dominate the solution design. > > Regards, > Olaf > > * Okay, there is JCR OCM, but it's dated / requires some additional work: > http://www.connectcon.ch/2015/en/speakers/katarzyna-kozlowska.html > >

Re: Resource class vs CND

2015-11-13 Thread Guillaume Lucazeau
a is handed off to a renderer. Using as much out of the box > > functionality will give you the greatest flexibility. > > > > > > -Jason > > > > -Original Message- > > From: Guillaume Lucazeau [mailto:glucaz...@gmail.com] > > Sent: Friday, November 13, 20

Resource class vs CND

2015-11-13 Thread Guillaume Lucazeau
Hello, I'm currently studying Sling for a project, to store "documents" containing pages, and components (image, text, maps, graphs etc.) While it seems to fit our needs perfectly, I'm a bit struggling to learn some basic stuff before presenting a POC to our team. My first question would be: on