Re: Recompilation of jsp

2012-03-07 Thread Markus Joschko
elete the compiled classes below > /var/classes/org/apache/jsp (this is off the top of my head, may be > slightly different). This way you don't need to touch all files > individually. > > Regards > Julian > > > On Wednesday, March 7, 2012, Markus Joschko > wrote

Recompilation of jsp

2012-03-07 Thread Markus Joschko
Hi, when and how are jsps recompiled by sling? I have a jsp which is using a jsp include to include another jsp(fragment). <%@include file="../../common/header.jsp"%> When I update the bundle with an updated header fragment, the jsp that includes that fragment is not recompiled. A server restart

Re: Component Configuration troubles

2012-02-23 Thread Markus Joschko
>> I have an issue with the configuration for a component. I can >> configure the component perfectly fine through the web console >> configuration. >> I see that the configuration is written in >> /apps/sling/config/foo.bar.config and the jcr:data property has the >> correct value. >> >> However w

Component Configuration troubles

2012-02-22 Thread Markus Joschko
Hi, I have an issue with the configuration for a component. I can configure the component perfectly fine through the web console configuration. I see that the configuration is written in /apps/sling/config/foo.bar.config and the jcr:data property has the correct value. However when I restart launc

Is there an obr that has up to date sling bundles?

2012-01-25 Thread Markus Joschko
Subject says it all. I wonder whether there is an obr that contains the most recent sling bundles? I have the following entries in the webconsole obr section: Apache Sling Release Repository http://incubator.apache.org/sling/obr/sling.xml Apache Sling Master Repository http://sling.apache.org/

Re: Configuration re-bound after bundle upgrade possible?

2012-01-25 Thread Markus Joschko
h the configurations. I guess that is then the "plain" update. So I only get into trouble when I explicitly want to pick the version I want to switch to by upgrading through the obr webconsole UI. On Wed, Jan 25, 2012 at 3:15 PM, Markus Joschko wrote: >> how do you upgrade your bundle

Re: Configuration re-bound after bundle upgrade possible?

2012-01-25 Thread Markus Joschko
> how do you upgrade your bundles? Usually when I have a version upgrade I go through the Web Console -> OSGI Repository. I search for the bundle and on the most recent version I use the deploy button. > > 2012/1/25 Felix Meschberger : >> Hi Markus, >> >> Am 25.0

Configuration re-bound after bundle upgrade possible?

2012-01-25 Thread Markus Joschko
Hi, not sure whether this belongs to this list or to the felix mailing list as I don't know whether the sling installer is responsible for storing and applying configuration for components or felix is. I give it a go here first ;-) We have quite a large number of components with exhaustive config

OSGI woes

2011-11-15 Thread Markus Joschko
Hi, maybe someone with a bit more OSGI experience can help me with my current issue. I currently play around with a custom extension to the DefaultAccessManager and ACLProvider which works fine when I use it without OSGI and sling just in combination with jackrabbit. However when I use it in the sl

Re: Anonymous user

2011-11-15 Thread Markus Joschko
Hi all, just as a follow up on this issue: With the updated descriptor evaluation (JCR-3143) I have no issues any longer with the davex servlet and the sling authentication. Thanks for following up on this one. Regards, Markus On Thu, Nov 10, 2011 at 10:26 AM, Markus Joschko wrote: >

Re: Anonymous user

2011-11-10 Thread Markus Joschko
Hi Angela, seems fine to me. All my headaches are caused by request from the client where I can not pass credentials. If this is skipped, I am fine. Regards, Markus On Thu, Nov 10, 2011 at 9:03 AM, Angela Schreiber wrote: > hi markus  (and including jackrabbit-dev as this doesn't really belong

Re: Anonymous user

2011-11-09 Thread Markus Joschko
On Wed, Nov 9, 2011 at 5:53 PM, Justin Edelson wrote: > On Wed, Nov 9, 2011 at 7:56 AM, Felix Meschberger wrote: >> Hi, >> >> Am 09.11.2011 um 15:41 schrieb Markus Joschko: >> >>> On Wed, Nov 9, 2011 at 3:11 PM, Felix Meschberger >>> wrote: >

Re: Anonymous user

2011-11-09 Thread Markus Joschko
On Wed, Nov 9, 2011 at 4:56 PM, Felix Meschberger wrote: > Hi, > > Am 09.11.2011 um 15:41 schrieb Markus Joschko: > >> On Wed, Nov 9, 2011 at 3:11 PM, Felix Meschberger wrote: >>> Hi, >>> >>> Am 09.11.2011 um 12:56 schrieb Markus Joschko: >>>

Re: Anonymous user

2011-11-09 Thread Markus Joschko
On Wed, Nov 9, 2011 at 4:37 PM, Justin Edelson wrote: > On Wed, Nov 9, 2011 at 6:41 AM, Markus Joschko > wrote: >> On Wed, Nov 9, 2011 at 3:11 PM, Felix Meschberger wrote: >>> Hi, >>> >>> Am 09.11.2011 um 12:56 schrieb Markus Joschko: >>> >

Re: Anonymous user

2011-11-09 Thread Markus Joschko
On Wed, Nov 9, 2011 at 3:11 PM, Felix Meschberger wrote: > Hi, > > Am 09.11.2011 um 12:56 schrieb Markus Joschko: > >> With the most recent changes (SLING-2274) I can again use the CLI >> client over davex, >> but only when the anonymous user is enabled. As soon as

Anonymous user

2011-11-09 Thread Markus Joschko
With the most recent changes (SLING-2274) I can again use the CLI client over davex, but only when the anonymous user is enabled. As soon as I disable it, I again have the problem with the repository descriptor retrieval. However I have a customer requirement that is: Nobody should be able to logi

Re: Event handler ordering

2011-10-10 Thread Markus Joschko
On Mon, Oct 10, 2011 at 4:24 PM, Bertrand Delacretaz wrote: > On Mon, Oct 10, 2011 at 3:16 PM, Markus Joschko > wrote: >> ...Basically I need an anonymous user (not authenticate) to create data >> in the repository. However that is not public data. Other anonymous >> use

Re: Event handler ordering

2011-10-10 Thread Markus Joschko
Hi, > > On Fri, Oct 7, 2011 at 5:34 PM, Markus Joschko > wrote: >>... I have multiple event handlers executing on node creation. >> >> One of these handlers will move the node to a new location. Obviously >> that should happen after the others done their changes as

Re: Event handler ordering

2011-10-10 Thread Markus Joschko
alking of OSGi EventHandler, right ? > > I would assume that service ranking would  be respected but I couldn't find a > hint in the spec either. You might want to ask the question on the OSGi Dev > List ... > > Regards > Felix > > Am 07.10.2011 um 17:34 schrieb Markus Josc

Re: Event handler ordering

2011-10-08 Thread Markus Joschko
, James Stansell wrote: > Hi Markus, > > Just thinking out loud - can the other handlers do their work after the node > has been moved? The "move" handler could send an event once it is done.  I > once used a custom event for a similar purpose. > > -james. > > >

Event handler ordering

2011-10-07 Thread Markus Joschko
Is there a way to to order the event handlers? I have multiple event handlers executing on node creation. One of these handlers will move the node to a new location. Obviously that should happen after the others done their changes as otherwise they try to operate on an outdated path. Can I guarant

Re: Anonymous user

2011-10-07 Thread Markus Joschko
OK, forget about it. The fix https://issues.apache.org/jira/browse/JCR-3076 on trunk also works for this problem. On Fri, Oct 7, 2011 at 2:25 PM, Markus Joschko wrote: > I just stumbled upon the anonymous user and that is virtually > impossible to delete it, as it is recreated on

Anonymous user

2011-10-07 Thread Markus Joschko
I just stumbled upon the anonymous user and that is virtually impossible to delete it, as it is recreated on every repository start. It is also not possible to change the password for the anonymous user. So the only chance to get the site secured is to disable the anonymous user, so nobody can logi

Re: Evenhandlers, Session and Threadsafety

2011-09-29 Thread Markus Joschko
OK. That was helpful. Thanks guys. On Thu, Sep 29, 2011 at 3:10 PM, Bertrand Delacretaz wrote: > Hi, > > On Thu, Sep 29, 2011 at 2:09 PM, Markus Joschko > wrote: >> I want to get some assumptions of mine clarified regarding the usage >> of classes like Session and R

Evenhandlers, Session and Threadsafety

2011-09-29 Thread Markus Joschko
I want to get some assumptions of mine clarified regarding the usage of classes like Session and ResourceResolver in event handlers. 1. The jackrabbit session is not threadsafe 2. ResourceResolvers are not threadsafe 3. Event services (EventHandler, JobProcessor, javax.jcr.observation.Eventlistene

Re: Improvement ideas for sling

2011-09-20 Thread Markus Joschko
On Mon, Sep 19, 2011 at 7:13 PM, Carsten Ziegeler wrote: > Thanks for sharing your ideas Markus - this is really appreciated and > I encourage everyone else to do the same. > This is what makes up a real community, getting different input, > discussing ideas and finally implementing them :) > > I

Improvement ideas for sling

2011-09-19 Thread Markus Joschko
Hi, in the spirit of the "Future of Sling" talk given by Carsten on the adaptTo conference I want to add some ideas where we think sling can be improved. They are not meant as a critique but as a possible input for future development. And of course these points are highly subjective and centered ar

Re: Any change to get the postResponseCreator?

2011-09-16 Thread Markus Joschko
Hi Justin, thanks. That helps me a lot. I'll give it a try either today or latest next week. Regards, Markus On Thu, Sep 15, 2011 at 10:59 PM, Justin Edelson wrote: > Markus- > Sorry for the delay. This is committed now (r1171271). > > Justin > > On Fri, Sep 9, 2011 at

Any change to get the postResponseCreator?

2011-09-09 Thread Markus Joschko
Hi, Justin has proposed to introduce a postResponseCreator in https://issues.apache.org/jira/browse/SLING-2156 Is there any chance that this patch gets into trunk any time soon? I already commented with a use case and just stumbled into a second one: A custom operation needs to return the uuid of

Re: Where to set sling.bootdelegation?

2011-07-25 Thread Markus Joschko
> src/main/sling/additional.properties. > All these properties will be added to the sling.properties file inside > your launchpad webapp and app. > > Regards > Carsten > > 2011/7/25 Markus Joschko : >> Thanks Chetan, that's fine when building a war. >> I am also using the

Re: Where to set sling.bootdelegation?

2011-07-25 Thread Markus Joschko
n.org.apache >            com.sun.org.apache.* >         > >        100 >     > > Chetan Mehrotra > > > On Fri, Jul 22, 2011 at 9:19 PM, Markus Joschko > wrote: > >> On Fri, Jul 22, 2011 at 5:41 PM, Justin Edelson >> wrote: >> > That's correct.

Re: Where to set sling.bootdelegation?

2011-07-22 Thread Markus Joschko
s, Markus > > On Fri, Jul 22, 2011 at 11:24 AM, Markus Joschko > wrote: >> OK, so there is no way to "contribute" that information from the >> bundle that requires the information? >> Just to make sure I do not miss something: sling.properties I either &g

Re: Where to set sling.bootdelegation?

2011-07-22 Thread Markus Joschko
son wrote: > Also sling.properties > > On Jul 22, 2011, at 11:17 AM, Markus Joschko wrote: > >> Hi, >> I need to make the class com.sun.xml.internal.ws.api.message.Header >> available to a bundle. >> I can get this done by adding the package to the >> o

Where to set sling.bootdelegation?

2011-07-22 Thread Markus Joschko
Hi, I need to make the class com.sun.xml.internal.ws.api.message.Header available to a bundle. I can get this done by adding the package to the org.osgi.framework.bootdelegation in sling.properties After having read http://sling.apache.org/site/configuration.html I would rather set a sling.bootdel

Concurrent access to system session

2011-07-13 Thread Markus Joschko
Hi, one of my application users has reported login problems. To find out more about what's going on I enabled the debug logging and found an exception multiple times printed on debug level. I don't think that it is necessarily related to the login problem but wanted to post it and ask whether someb

Re: Number of open jobs

2011-07-12 Thread Markus Joschko
Perfect. Thanks On Tue, Jul 12, 2011 at 4:04 PM, Carsten Ziegeler wrote: > Hi, > > you can ask the JobManager via queryJobs with QueryType.ALL and the given > topic. > > Regards > Carsten > > 2011/7/12 Markus Joschko : >> Hi, >> is there a way to ret

Number of open jobs

2011-07-12 Thread Markus Joschko
Hi, is there a way to retrieve the number of the open jobs for a given topic? Triggered by a job we send data to external systems and the execution can fail so the job is rescheduled. It would be nice to know how many outstanding jobs we have at a given point. Regards, Markus

sling-initial-content

2011-06-22 Thread Markus Joschko
Hi, in the pom of our project we have the sling-initial-content tag configured to map a directory in the projectdir to a branch in the JCR: SLING-INF/apps/config;overwrite:=false;overwriteProperties:=false;path:=/apps/config Config is a directory which contains other directories which then contai

Re: Reset user pwd

2011-05-23 Thread Markus Joschko
t; Of course, patches are welcome to add this functionality.  If no one else >> gets to it, I can take a look when I get some free time. >> >> Regards, >> Eric >> >> On Sun, May 1, 2011 at 11:56 PM, Markus Joschko >> wrote: >> >>> Hi Eric, &g

Re: MoveOperation always deletes nodes in destination

2011-05-16 Thread Markus Joschko
On Sat, May 14, 2011 at 9:51 PM, Justin Edelson wrote: > On Sat, May 14, 2011 at 11:05 AM, Bertrand Delacretaz > wrote: >> Hi Markus, >> >> On Fri, May 13, 2011 at 4:14 AM, Markus Joschko >> wrote: >>> I want to move a node to a new destination where I

Re: MoveOperation always deletes nodes in destination

2011-05-16 Thread Markus Joschko
Hi Bertrand, > Same-name siblings are a bad idea in general [1], mostly because their > paths are unstable. In our application we allow people to reorder the information within the tree. And they do frequently. So our paths are unstable in general. We break with Davids model here and fallback to

MoveOperation always deletes nodes in destination

2011-05-13 Thread Markus Joschko
Hi, I want to move a node to a new destination where I can have same-name siblings. I can't use the current MoveOperation as it always deletes the destination node. if (session.itemExists(destPath)) { session.getItem(destPath).remove(); } Is it worthwile to create a patch which checks whethe

users@sling.apache.org

2011-05-02 Thread Markus Joschko
o me. Please file a new issue in jira. > > I can try to take a look at it later today or tomorrow. > > Regards, > Eric > > On Mon, May 2, 2011 at 2:38 AM, Markus Joschko > wrote: > >> I have to correct myself: >> It works fine for GroupAdmin. Users in this group

users@sling.apache.org

2011-05-02 Thread Markus Joschko
I have to correct myself: It works fine for GroupAdmin. Users in this group can create/modify groups. However users being in the group UserAdmin can't create new users. Is this by purpose? Regards, MArkus On Mon, May 2, 2011 at 11:27 AM, Markus Joschko wrote: > As I am currently impl

users@sling.apache.org

2011-05-02 Thread Markus Joschko
As I am currently implementing an UI for usermgmt I stumbled upon the fact, that only THE admin user can create users and groups. Is that true? As there are UserAdmin and GroupAdmin groups I always assumed, that all users belonging to one of these groups can administer them. However that doesn't se

Re: Reset user pwd

2011-05-01 Thread Markus Joschko
new password >   and removes the reset pwd token so it can not be used again. > > Does that look ok? > > Regards, > Eric > > On Sat, Apr 30, 2011 at 6:46 AM, Markus Joschko > wrote: > >> Hi, >> I am currently developing an UI for the sling usermgmt and fo

Re: Reset user pwd

2011-05-01 Thread Markus Joschko
hen assigns the new password >>    and removes the reset pwd token so it can not be used again. >> >> Does that look ok? >> >> Regards, >> Eric >> >> On Sat, Apr 30, 2011 at 6:46 AM, Markus Joschko >> wrote: >> >>> Hi, >>> I

Reset user pwd

2011-04-30 Thread Markus Joschko
Hi, I am currently developing an UI for the sling usermgmt and found that I can't realize a common use case: - PW reset (manually by admin or automatically by user) The old PW is always required but in the given use case it is most likely that the PW is no longer available. I would implement this

Admin PW change

2011-04-27 Thread Markus Joschko
Hi, I followed the FAQ to change the admin PW and found the following sentence: "Note: Only after restarting the framework the old password will become invalid (as of 09-11-10)." What exactly is "the framework"? The Sling Engine bundle? The embedded Repository? Thanks, Markus

Re: Temporarily switching jackrabbit versions

2011-04-11 Thread Markus Joschko
f jackrabbit was added to > sling a little over a week ago. > > http://svn.apache.org/viewvc?view=revision&revision=1088070 > > Regards, > > -james. > > On Mon, Apr 11, 2011 at 3:14 AM, Markus Joschko wrote: > >> I currently face the problem that the jackra

Temporarily switching jackrabbit versions

2011-04-11 Thread Markus Joschko
I currently face the problem that the jackrabbit version delivered with sling is not properly importing properties that have the sv:multiple atttribute set. If there is only one value, it is always imported as a single value property. To circumvent that behavior I connected to the existing sling r

Best practice validation

2011-04-04 Thread Markus Joschko
Hi, what is the best practice for performing serverside validation with sling? We post our form via XHR to the server and I would like to give back a json object with validatiion messages in case of errors. I remember being told that postprocessors are the way to go. How do I return the error mes

Re: Charset trouble

2011-03-10 Thread Markus Joschko
ar 10, 2011 at 12:42 PM, Markus Joschko > wrote: > >> I have some trouble doing some "custom parameter extension" in a filter. >> The filter is executed before the sling servlet. It wraps the current >> request and copies the original request parameters to a new map w

Charset trouble

2011-03-10 Thread Markus Joschko
I have some trouble doing some "custom parameter extension" in a filter. The filter is executed before the sling servlet. It wraps the current request and copies the original request parameters to a new map where additional/computed parameters are added as well. The modified request (+ parameters)

Re: request.getCharacterEncoding() always returns ISO-8859-1

2011-02-25 Thread Markus Joschko
On Fri, Feb 25, 2011 at 5:12 PM, Felix Meschberger wrote: > Hi, > > The problem is that browsers tend to not tell the character encoding > used when posting data ... Don't ask me why ;-) > > So we have to do guessing, something I really do not like. > > But it looks like browsers send POST data in

Re: request.getCharacterEncoding() always returns ISO-8859-1

2011-02-25 Thread Markus Joschko
On Fri, Feb 25, 2011 at 3:37 PM, Alexander Klimetschek wrote: > On 25.02.11 11:43, "Markus Joschko" wrote: >>Nevertheless I wonder why it is necessary to include a mandatory >>parameter with always the same value. >>Can't this be done by sling? > &g

Re: request.getCharacterEncoding() always returns ISO-8859-1

2011-02-25 Thread Markus Joschko
HttpService, you may have >> more success registering a filter there. I don't know where in the >> stack ParameterSupport is added, so YMMV. Let us know whether this >> does the trick. >> >> Regards >> Julian >> >> [0] >> http://felix.apa

Re: request.getCharacterEncoding() always returns ISO-8859-1

2011-02-25 Thread Markus Joschko
s the same value. Can't this be done by sling? Regards, Markus > [0] > http://felix.apache.org/site/apache-felix-http-service.html#ApacheFelixHTTPService-UsingtheWhiteboard > > > > On Thu, Feb 24, 2011 at 4:29 PM, Markus Joschko > wrote: >> Hi Vidar and all, >

Re: Reuse of JcrNodeResource possible?

2011-02-24 Thread Markus Joschko
On Thu, Feb 24, 2011 at 5:23 PM, Bertrand Delacretaz wrote: > On Thu, Feb 24, 2011 at 5:15 PM, Markus Joschko > wrote: >> ...That brings us back to the original question whether it is possible to >> handle the JCRNodeResource less restrictive as >> it could be used by

Re: Reuse of JcrNodeResource possible?

2011-02-24 Thread Markus Joschko
On Thu, Feb 24, 2011 at 5:08 PM, Bertrand Delacretaz wrote: > On Thu, Feb 24, 2011 at 5:00 PM, Markus Joschko > wrote: >> Bertrand: >>> I think redirects in POST are no problem with non-browser clients, as >>> per http://www.w3.org/Protocols/rfc2616/rfc2616-s

Re: Reuse of JcrNodeResource possible?

2011-02-24 Thread Markus Joschko
>>> Can't you do that using HTTP redirects? >>> >>> Client requests /permalink/FOO, and a servlet mounted at /permalink >>> does an HTTP redirects to the actual resource, using whatever >>> mechanism is appropriate based on the semantics of FOO. >> >> Do redirects also work when doing a POST? We wo

Re: request.getCharacterEncoding() always returns ISO-8859-1

2011-02-24 Thread Markus Joschko
Hi Vidar and all, I think that this approach is not working. I have the exact same use case. We don't want to put the _charset_ parameter into every form. Therefore I tried to automatically add a _charset_ request parameter to the request in a filter. However that parameter never gets picked up as

Re: Reuse of JcrNodeResource possible?

2011-02-24 Thread Markus Joschko
> Can't you do that using HTTP redirects? > > Client requests /permalink/FOO, and a servlet mounted at /permalink > does an HTTP redirects to the actual resource, using whatever > mechanism is appropriate based on the semantics of FOO. Do redirects also work when doing a POST? We would like to pos

Re: Reuse of JcrNodeResource possible?

2011-02-24 Thread Markus Joschko
Resource bundle? I believe > there's already a JIRA issue for adding something similar. > > That would be preferable IMHO to exporting the package. > > Justin > > On Feb 24, 2011, at 8:50 AM, Markus Joschko wrote: > >> Hi, >> >> we have to impleme

Reuse of JcrNodeResource possible?

2011-02-24 Thread Markus Joschko
Hi, we have to implement two slightly opposing sets of requirements: 1a) Create notification e-mails with links to resources 1b) Allow external systems to store references to resources and to retrieve resource data through that reference at a later date and 2) Moving resources within the tree b

Re: Build error

2011-02-15 Thread Markus Joschko
; > Justin > > On Feb 15, 2011, at 5:56 AM, Markus Joschko wrote: > >> The api version has been changed to 1.0.0 which gives me the following >> build error when trying to do a clean compile of trunk: >> >> >> [INFO] >> --

Build error

2011-02-15 Thread Markus Joschko
The api version has been changed to 1.0.0 which gives me the following build error when trying to do a clean compile of trunk: [INFO] [ERROR] BUILD ERROR [INFO] ---

Customize repository.xml

2011-02-14 Thread Markus Joschko
Is there a way to package a modified repository xml file in a custom launchpad? We use mysql as database. That requires that we always change the persistancemanager when we setup a new installation. It would be perfect if a properly configured repository.xml is placed inside a newly created sling w

Re: Concurrency issues in performance test!

2011-02-09 Thread Markus Joschko
> Cool. Beware there is currently a test failure which I am trying to fix. > But for your use case, it should be ok. I skipped the test and so far I couldn't reproduce the error. Thanks, Markus >> >> On Wed, Feb 9, 2011 at 10:38 AM, Markus Joschko >> wrote: >

Re: Concurrency issues in performance test!

2011-02-09 Thread Markus Joschko
On Wed, Feb 9, 2011 at 11:11 AM, Felix Meschberger wrote: > Hi, > > Am Mittwoch, den 09.02.2011, 09:38 + schrieb Markus Joschko: >> >> Obviously nobody has used esps in production until now? That should be >> >> mentioned on the webpage clearly. So far I had

Re: Concurrency issues in performance test!

2011-02-09 Thread Markus Joschko
Nevermind. Saw the e-mail with the checkin. I'll give it a try. On Wed, Feb 9, 2011 at 10:38 AM, Markus Joschko wrote: >>> Obviously nobody has used esps in production until now? That should be >>> mentioned on the webpage clearly. So far I had the impression that e

Re: Concurrency issues in performance test!

2011-02-09 Thread Markus Joschko
>> Obviously nobody has used esps in production until now? That should be >> mentioned on the webpage clearly. So far I had the impression that esp >> are somewhat the preferred template language. > > Well, depends ;-) I would say everyone has his/her own preference, Sling > does not have a prefere

Re: Concurrency issues in performance test!

2011-02-09 Thread Markus Joschko
aybe the script > engine implementation. Felix recently found a concurrency problem in the > javascript scripting . The esp script engine could be affected as well. > > Please try a different test where a jsp is targeted to rule out the > above scenarios. > > Regards > Carsten &

Concurrency issues in performance test!

2011-02-08 Thread Markus Joschko
Hi, we run a simple performance test on our sling prototype and face severe problems: About 50% of the requests failed with a status message 500. The exceptions differ a lot but it seems that the "sling include" somehow fails when accessed concurrently. Our tests were run with JMeter (and failed).

Re: No JCR event when using the usermanager

2011-01-31 Thread Markus Joschko
I finally found the answer: The users are indeed stored in the security workspace below /rep:security/rep:authorizables/ I still can't find where the usermanager is writing anything to a workspace other then the default one (I am currently checking out jackrabbit to make sure I look at the version

Re: No JCR event when using the usermanager

2011-01-28 Thread Markus Joschko
On Fri, Jan 28, 2011 at 11:58 AM, Vidar Ramdal wrote: > On Fri, Jan 28, 2011 at 11:08 AM, Markus Joschko > wrote: >>> Maybe you could post the code of your EventListener, and of >>> ObservationManager.addEventListener call? >> >> It's pretty similar to th

Re: No JCR event when using the usermanager

2011-01-28 Thread Markus Joschko
> Maybe you could post the code of your EventListener, and of > ObservationManager.addEventListener call? It's pretty similar to the event listener in the slingbucks examle. As I constantly try different paths and workspaces there isn't the ONE configuration. But registering looks like: final

Re: No JCR event when using the usermanager

2011-01-28 Thread Markus Joschko
lly fire events... Isn't the userManager part of Jackrabbit? Which kind of events will it then fire? Regards, Markus >> > Am Donnerstag, den 27.01.2011, 19:05 + schrieb Vidar Ramdal: >> >> >> On Thu, Jan 27, 2011 at 9:56 AM, Markus Joschko >> >> >> w

Re: No JCR event when using the usermanager

2011-01-27 Thread Markus Joschko
Hi Vidar, that also doesn't work. Checking the CreateUserServlet I see that it is using the default workspace. Any other ideas? Thanks, Markus On Thu, Jan 27, 2011 at 10:06 AM, Vidar Ramdal wrote: > On Thu, Jan 27, 2011 at 9:56 AM, Markus Joschko > wrote: >> I try to i

No JCR event when using the usermanager

2011-01-27 Thread Markus Joschko
I try to implement an audit mechanism and part of it is to track the changes that happen in the user and group sections. However when I use the REST interface of the usermanager, I don't receive any events when a user is added below /system/userManager/user When I add a node there "by hand" I get

Re: Create a node in a different path and redirect to that

2011-01-24 Thread Markus Joschko
> Ok, I was thinking that you'd have a custom operation that will first > create your intermediary path and then call the existing modify operation > as service. Haven't thought about that one. But indeed that'll work. What about the servletcontext that is passed to the Modify operation. Is this s

Re: Create a node in a different path and redirect to that

2011-01-24 Thread Markus Joschko
> On 24.01.11 10:10, "Markus Joschko" wrote: >>The default operations are hard/impossible to inherit and change. > > I think this is what should be improved. See > https://issues.apache.org/jira/browse/SLING-1725 which is still open. > It seems to cover a lot of th

Re: Create a node in a different path and redirect to that

2011-01-24 Thread Markus Joschko
rkus On Fri, Jan 21, 2011 at 5:11 PM, Justin Edelson wrote: > On 1/21/11 11:06 AM, Markus Joschko wrote: >>> You could create the folder node inside your NodeNameGenerator. This is >>> a bit more code, but would allow you full control over how the folder is >>> crea

Re: Create a node in a different path and redirect to that

2011-01-21 Thread Markus Joschko
> You could create the folder node inside your NodeNameGenerator. This is > a bit more code, but would allow you full control over how the folder is > created (which it sounds like what you want). Ok, this is perfect then. Maybe I am a bit pedantic but is NodeNameGenerator the right place to do su

Re: Create a node in a different path and redirect to that

2011-01-21 Thread Markus Joschko
NNG.getNodeName(request, parentPath, > requirePrefix, defaultNNG); >      } else { > >         return null; >      } >   } > } Sounds interesting. Is the folder autogenerated if not existant (which can be the case)? If yes, there is one caveat: The folder needs a special no

Re: Create a node in a different path and redirect to that

2011-01-21 Thread Markus Joschko
> On Fri, Jan 21, 2011 at 3:00 PM, Markus Joschko > wrote: >> I see. That might work fine with XMLHTTPRequests, but not when I use >> plain old direct >> HTTP calls. And I find it highly inelegant. > > You may of course also use a regular servlet filter to set the L

Re: Create a node in a different path and redirect to that

2011-01-21 Thread Markus Joschko
> - In your SlingPostProcessor, be sure that you register the nodes you > are adding in the modifications list (which is a parameter to > SlingPostProcessor.process(). This list is returned in the > HtmlResponse of SlingPostServlet. > - The client examines the returned HTML (or JSON) to find the pa

Re: Create a node in a different path and redirect to that

2011-01-21 Thread Markus Joschko
12:58 PM, Markus Joschko > wrote: >> Hi, >> I face some difficulties in realizing the following case: >> >> I have a node to which I want to add children. The problem is, that >> (depending on the content of the to be created node) it is not added >> to the nod

Create a node in a different path and redirect to that

2011-01-21 Thread Markus Joschko
Hi, I face some difficulties in realizing the following case: I have a node to which I want to add children. The problem is, that (depending on the content of the to be created node) it is not added to the node directly but a folder is created to which the node is added. Like that + parent +

Re: [Off-Topic] Property level security

2011-01-17 Thread Markus Joschko
> Finally, as noted before, if you do have use cases which fetch a lot of > different nodes (or better say: in all cases) your repository will be much > faster if you use a "local" persistence manager with no network connection > and no roundtrips. Yep, fine for the dev environment but in the prod

Re: [Off-Topic] Property level security

2011-01-17 Thread Markus Joschko
> Also, the nodes are cached in Jackrabbit in-memory, so if you have > repeated read-only access to those nodes, there will be no need to fetch > them from the persistence manager again. Does jackrabbit really make a request per next() call on the children iterator or does it optimize and fetches

Re: [Off-Topic] Property level security

2011-01-13 Thread Markus Joschko
> > I think this approach with a protected subnode should be fine - and no > performance issue. ACL checks are done for every node anyway. > I thought more in the direction of node traversal. Instead of loading just one node and checking ACLs I have to load the parent node and three childnodes to

Re: [Off-Topic] Property level security

2011-01-12 Thread Markus Joschko
10, 2011 at 10:46 PM, Justin Edelson wrote: > Well, this is really a question for the JCR EG, but... no, this isn't part > of the JCR specification. > > On Mon, Jan 10, 2011 at 4:39 PM, Markus Joschko > wrote: > >> Hi, >> I know this question is more appropriate on th

[Off-Topic] Property level security

2011-01-10 Thread Markus Joschko
Hi, I know this question is more appropriate on the jackrabbit mailinglist but maybe somebody here can help me: Is it possible to define ACLs for individual property actions on a node. So that only some selected properties can be modified by a specific group of users? If yes, what are the implicat

Re: Protect esp/jsp files

2011-01-07 Thread Markus Joschko
course restrict this user as well but wonder if there is a smarter way. What's the best way to remove the rights for all users except the admin user? Regards, Markus On Thu, Jan 6, 2011 at 10:38 PM, Justin Edelson wrote: > On 1/6/11 4:30 PM, Markus Joschko wrote: >> Hi, >> I notic

Re: Delay when modifying esp script using webdav

2011-01-07 Thread Markus Joschko
Thanks Vidar, that works great. When mapping the filesystem I don't have the delay issue (tested with esp) any longer. Any other tip for the dev environment? ;-) Regards, Markus On Fri, Jan 7, 2011 at 10:08 AM, Vidar Ramdal wrote: > On Thu, Jan 6, 2011 at 10:12 PM, Markus Joschko

Protect esp/jsp files

2011-01-06 Thread Markus Joschko
Hi, I noticed that I can easily GET the esp/jsp files below my apps directory. How can they be secured so that nobody can easily fetch them? Thanks, Markus

Delay when modifying esp script using webdav

2011-01-06 Thread Markus Joschko
Hi, I decided to build a prototype using sling. Currently I wonder about the best practice to edit the esp/jsp files. As I don't want to create a bundle and upload it everytime I make a small change in the scripts, I have mapped the repository via webdav and modify the scripts directly. But I no

Re: Evaluating sling

2011-01-05 Thread Markus Joschko
> On 05.01.11 13:02, "Markus Joschko" wrote: >>That's for the input side. I am also interested in the output >>verification. >>If I can't rely on my data having a certain format, I need to check >>every property before accessing it. > > I don

Re: Evaluating sling

2011-01-05 Thread Markus Joschko
>> That makes me want to have a controller to validate my data against my >> model and only pass the verified data to the view to render it ;-) >> Can filters be used for that task? > > You could use filters or you could also use the SlingPostProcessor > concept. Handling this in a filter is more g

  1   2   >