Re: Automatic creation of user nodes in slide

2004-04-01 Thread Ryan Rhodes
Hi Martin,

I tried to request the page with Curl using a PUT.  It works for an already 
created user.  I just get access denied when I try a new user.

From: Martin Holz [EMAIL PROTECTED]
Reply-To: Slide Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide
Date: 31 Mar 2004 23:23:54 +0200
Ryan Rhodes [EMAIL PROTECTED] writes:

 I'm using a version I checked out from the head about a week ago.

 When I set logger-level to 7 I saw some Exceptions related to this,
 and I also saw a number of Exceptions when slide loaded that I didn't
 see before.  Everything else seems to be working... so I'm not sure if
 these are normal and/or unrelated.  I'm going to put some info about
 these new exceptions at the bottom of the email.
You can completely ignore all ObjectNotFound and 
ObjectAlreadyExistExceptions.
However the null pointer exception is serious.

[Changed order of cited stuff]
 Getting current connection for thread 
Thread[http8080-Processor25,5,main]
 31 Mar 2004 12:11:10 - org.apache.slide.store.impl.rdbms.JDBCStore -
 DEBUG -

 No id for current thread - called outside transaction?
 31 Mar 2004 12:11:10 - org.apache.slide.common.SlideException - DEBUG
 -

 org.apache.slide.common.ServiceAccessException: Service
 [EMAIL PROTECTED] access error :
 java.lang.NullPointerException

 	at
 
	org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.assureUriId(StandardRDBMSAdapter.java:1216)

 	at
 
	org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeObject(StandardRDBMSAdapter.java:107)

 	at
 
	org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createObject(StandardRDBMSAdapter.java:89)
[...]
   at
	org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:143)
	at
	org.apache.slide.webdav.util.DirectoryIndexGenerator.generate(DirectoryIndexGenerator.java:162)

	at org.apache.slide.webdav.WebdavServlet.doGet(WebdavServlet.java:346)

Could you verify that this means the connection is NULL.

There seems to be a bug in the way DirectoryIndexGenerator/J2EE 
store/SecurityImpl
work together.
doGet() assumes, that is does not need a transaction since it does not do
any write operation. Thats correct unless a user is autocreated, which 
results
in a write operation.  You may try to do a PUT request as the first action 
of the new user.
This should autocreate the user inside the transaction. Please tell
me if this works. I  will try to fix  the bug tomorrow, its almost midnight 
in
here.

Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! 
(Limited-time offer) 
http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/onm00200361ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Automatic creation of user nodes in slide

2004-03-31 Thread Martin Holz
Ryan Rhodes [EMAIL PROTECTED] writes:

 I read somewhere that slide would automatically create a new user node
 when a new user is authenticated by Tomcat.  We are trying to setup
 Tomcat/Slide to authenticate users against an LDAP directory, but we
 do not want to have to run any batch processes to add user nodes.  We
 just want the node to be created whenever a new user is authenticated.
 We DO NOT necessarily need ACL to be mapped from the directory.  We
 can manage ACL in slide.
 

Add 
   auto-create-userstrue/auto-create-users 
to your Domain.xml below the   filespath /
element. 

This works fine as long as you do not need roles.

Martin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Automatic creation of user nodes in slide

2004-03-31 Thread Ryan Rhodes
Thanks for the response Martin.

I set auto-create-users to true.  When I log in with a user that is already 
in slide it still works, but when I try to log in with a new user (admin) I 
get:

HTTP Status 500
The server encountered an internal error () that prevented it from 
fulfilling this request.

The only thing I get from the logs is this:

31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction
http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 Internal Server 
Error, 20 ms, /

Any idea why this might be failing?

Does this require SlideRealm or the JAAS module to work?

From: Martin Holz [EMAIL PROTECTED]
Reply-To: Slide Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide
Date: 31 Mar 2004 17:36:12 +0200
Ryan Rhodes [EMAIL PROTECTED] writes:

 I read somewhere that slide would automatically create a new user node
 when a new user is authenticated by Tomcat.  We are trying to setup
 Tomcat/Slide to authenticate users against an LDAP directory, but we
 do not want to have to run any batch processes to add user nodes.  We
 just want the node to be created whenever a new user is authenticated.
 We DO NOT necessarily need ACL to be mapped from the directory.  We
 can manage ACL in slide.

Add
   auto-create-userstrue/auto-create-users
to your Domain.xml below the   filespath /
element.
This works fine as long as you do not need roles.

Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Automatic creation of user nodes in slide

2004-03-31 Thread Michael Oliver
Use the command line client or web folder client to create a collection
under /slide/users/ for each new user you add to Tomcat.  From what I
can tell that automatically creates the user principal property that the
Stores are looking for.  In my testing that does NOT depend on having
the Slide Realm, at least I don't have the SlideRealm configured and I
have created a tomcat user assigned a tomcat role = user and created the
collection as described above and that user can access without that
error.

__
Michael Oliver
CTO
Matrix Intermedia Inc
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone +1 (520) 574-1150
Fax +1 (520) 844-1036
ICQ#: 318986322

Current ICQ status: 
*  More ways to contact me 
__


-Original Message-
From: Ryan Rhodes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 31, 2004 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide

Thanks for the response Martin.

I set auto-create-users to true.  When I log in with a user that is
already 
in slide it still works, but when I try to log in with a new user
(admin) I 
get:

HTTP Status 500
The server encountered an internal error () that prevented it from 
fulfilling this request.

The only thing I get from the logs is this:

31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction
http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 Internal
Server 
Error, 20 ms, /

Any idea why this might be failing?

Does this require SlideRealm or the JAAS module to work?

From: Martin Holz [EMAIL PROTECTED]
Reply-To: Slide Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide
Date: 31 Mar 2004 17:36:12 +0200

Ryan Rhodes [EMAIL PROTECTED] writes:

  I read somewhere that slide would automatically create a new user
node
  when a new user is authenticated by Tomcat.  We are trying to setup
  Tomcat/Slide to authenticate users against an LDAP directory, but we
  do not want to have to run any batch processes to add user nodes.
We
  just want the node to be created whenever a new user is
authenticated.
  We DO NOT necessarily need ACL to be mapped from the directory.  We
  can manage ACL in slide.
 

Add
auto-create-userstrue/auto-create-users
to your Domain.xml below the   filespath /
element.

This works fine as long as you do not need roles.

Martin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN Toolbar provides one-click access to Hotmail from any Web page -
FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Automatic creation of user nodes in slide

2004-03-31 Thread Martin Holz
Ryan Rhodes [EMAIL PROTECTED] writes:

 Thanks for the response Martin.
 
 I set auto-create-users to true.  When I log in with a user that is
 already in slide it still works, but when I try to log in with a new
 user (admin) I get:
 
 
 HTTP Status 500
 The server encountered an internal error () that prevented it from
 fulfilling this request.
 
 
 The only thing I get from the logs is this:
 
 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction
 http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 Internal
 Server Error, 20 ms, /
 
This looks like a bug. The warning may or may not be related to the problem.
Which version of slide are you using? Could you set the logger-level at the
top of Domain.xml to 7 and look if you get more information about the 
problem? 

Martin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Automatic creation of user nodes in slide

2004-03-31 Thread Ryan Rhodes
)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
	at org.apache.catalina.core.StandardService.start(StandardService.java:519)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



From: Martin Holz [EMAIL PROTECTED]
Reply-To: Slide Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Automatic creation of user nodes in slide
Date: 31 Mar 2004 18:56:15 +0200
Ryan Rhodes [EMAIL PROTECTED] writes:

 Thanks for the response Martin.

 I set auto-create-users to true.  When I log in with a user that is
 already in slide it still works, but when I try to log in with a new
 user (admin) I get:


 HTTP Status 500
 The server encountered an internal error () that prevented it from
 fulfilling this request.


 The only thing I get from the logs is this:

 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction
 http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 Internal
 Server Error, 20 ms, /
This looks like a bug. The warning may or may not be related to the 
problem.
Which version of slide are you using? Could you set the logger-level at the
top of Domain.xml to 7 and look if you get more information about the
problem?

Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Free up your inbox with MSN Hotmail Extra Storage. Multiple plans available. 
http://join.msn.com/?pgmarket=en-uspage=hotmail/es2ST=1/go/onm00200362ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Automatic creation of user nodes in slide

2004-03-31 Thread Martin Holz
Ryan Rhodes [EMAIL PROTECTED] writes:

 I'm using a version I checked out from the head about a week ago.
 
 When I set logger-level to 7 I saw some Exceptions related to this,
 and I also saw a number of Exceptions when slide loaded that I didn't
 see before.  Everything else seems to be working... so I'm not sure if
 these are normal and/or unrelated.  I'm going to put some info about
 these new exceptions at the bottom of the email.

You can completely ignore all ObjectNotFound and ObjectAlreadyExistExceptions.
However the null pointer exception is serious.

[Changed order of cited stuff]
 Getting current connection for thread Thread[http8080-Processor25,5,main]
 31 Mar 2004 12:11:10 - org.apache.slide.store.impl.rdbms.JDBCStore -
 DEBUG -
 
 No id for current thread - called outside transaction?
 31 Mar 2004 12:11:10 - org.apache.slide.common.SlideException - DEBUG
 -
 
 org.apache.slide.common.ServiceAccessException: Service
 [EMAIL PROTECTED] access error :
 java.lang.NullPointerException
 
   at
   
 org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.assureUriId(StandardRDBMSAdapter.java:1216)
 
   at
   
 org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeObject(StandardRDBMSAdapter.java:107)
 
   at
   
 org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createObject(StandardRDBMSAdapter.java:89)
[...]   
   at
   org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:143)
   at
   
 org.apache.slide.webdav.util.DirectoryIndexGenerator.generate(DirectoryIndexGenerator.java:162)

   at org.apache.slide.webdav.WebdavServlet.doGet(WebdavServlet.java:346)

Could you verify that this means the connection is NULL. 

There seems to be a bug in the way DirectoryIndexGenerator/J2EE store/SecurityImpl
work together. 
doGet() assumes, that is does not need a transaction since it does not do
any write operation. Thats correct unless a user is autocreated, which results
in a write operation.  You may try to do a PUT request as the first action of the new 
user.
This should autocreate the user inside the transaction. Please tell
me if this works. I  will try to fix  the bug tomorrow, its almost midnight in
here.

Martin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]