RE: Problem disabling slide authorization

2004-09-15 Thread Ritu Kedia
Alon,

Your problem could be solved by turning auto-create-user on in domain.xml
(auto-create-userstrue/auto-create-users)
This would ensure that if the principal is not already there in slide db
then one would be created prior to executing the requested method.

Hope this helps.

Regards,
Ritu

-Original Message-
From: alon salant [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 10:06 PM
To: Slide Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Problem disabling slide authorization


So after letting this sit for just a little bit, it strikes me that
this may be considered a bug in SecurityImpl (or the calling Method
implementations). The Methods are calling getPrincipal() so that they
can set the owner metadata in the node being created. When security is
off but webapp security is on, there is a Principal in the
CredentialsToken but it does not exist in the store. So you get an
ObjectNotFoundException.

If SecurityImpl finds a Principal in the CredentialsToken but not in
the NodeStore, why not return a SubjectNode with the principal name as
the path? Or do this if slide security is disabled?

Alon


On Tue, 14 Sep 2004 00:24:16 -0700, alon salant [EMAIL PROTECTED] wrote:
 With a little digging, I appear to have a solution.
 
 It looks like you can set your own implementation of Security in
 Domain.xml with parameter name=acl_semantics/parameter.
 
 I created an AllowAllSecurityImpl that does its best to be okay with
 everything. The only method I really implemented is
 getPrincipal(SlideToken token) which returns SubjectNode.UNAUTHORIZED
 if there is no user principal in the SlideToken, or a SubjectNode with
 the principal name as the path if there is a principal.
 
 So I configure my domain to load it with:
 
 configuration
 parameter
name=acl_semanticsorg.apache.slide.store.file.AllowAllSecurityImpl/param
eter
 /configuration
 

http://cvs.sourceforge.net/viewcvs.py/photospace/slidespace/WEB-INF/src/org/
apache/slide/store/file/
 
 Seems to work for me. Any comments or gotchas I may have missed?
 
 Alon
 
 
 
 
 On Mon, 13 Sep 2004 23:41:17 -0700, alon salant [EMAIL PROTECTED] wrote:
  When working on SimpleFileStore, it was easy to disable Slide security
  by setting
 
org.apache.slide.security=false
 
  in slide.properties.
 
  However, I do want to be able configure basic webapp security using
  security constraints on paths and HTTP methods. But I do not want to
  manage users and roles within slide.
 
  So I have slide configured with security=false, SimpleFileStore,
  TransientSecurityStore, and TransientLockStore for my store
  implementations, all user and role definitions removed from Domain.xml
  and basic auth configured in my web.xml for the path to the webdav
  servlet.
 
  With this config, I can connect via webdav, log in and browse.
 
  However, I cannot create files or folders, copy, move, delete
 
  The problem that I am running in to is that Methods (MkcolMethod for
  example), still try to authorize the current principal. If the
  principal is null, things work fine b/c SecurityImpl returns
  SubjectNode.UNAUTHENTICATED and slide lets this continue. However, if
  the principal is not null (it is not when the webapp makes the user
  log in), SecurityImpl.getPrincipal( ) tries to retrieve an object for
  that user resulting in an ObjectNotFoundException.
 
  This looks like hard behavior to change (unfortunately).
  AbstractWebDavMethod creates the SlideToken with the user principal in
  run( ) using req.getUserPrincipal().
 
  I haven't traced through the other methods to see if/how the user
  principal is used. It looks like copy/delete/put/move/mkcol (at least)
  all have issues related to this.
 
  Any thoughts? What I am trying to do seems like a pretty common use
  case. Is there a good way to address this need? I'm hoping I've missed
  something simple.
 
  Alon
 


-
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: Has anyone seen connection warnings when deploying slide in a n App Server(JBoss)

2004-09-15 Thread Ritu Kedia
Hi Oliver,

I think you may have some idea about these warnings:
WARN  [WrappedConnection] Closing a statement you left open, please do your
own housekeeping

They appear when deploying slide in JBoss. Seems like some Slide db
statements are not being closed. Could you suggest something that I should
try to suppress these warnings? 

Thanks,
Ritu


-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 5:04 PM
To: 'Slide Users Mailing List'
Subject: RE: Has anyone seen connection warnings when deploying slide in
a n Ap p Server(JBoss)


Not sure I understood what you imply by the static block. But anyways are
you referring to suppressing the client side warning messages or server
side? I was referring to the deployment time warnings thrown by the App
server, which I don't think have any relation with slide logging. Since I am
using J2EE store, the App Server's Wrapped Connection is throwing these
warnings. May be some slide DB methods are not closing the statements before
returning.

Have you faced a similar problem? If yes, what is the error message you see?


Thanks,
Ritu


-Original Message-
From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 4:34 PM
To: Slide Users Mailing List
Subject: RE: Has anyone seen connection warnings when deploying slide in
a n Ap p Server(JBoss)


Ok,

I think slide uses common-logging API to print the warning messages.

Just supress them. 

May be something like this

 static Log log;
static
{
log =
LogFactory.getLog(org.apache.commons.httpclient.HttpClient.class);
}

public void init()
{
lOG.setLevel(lOG.LOG_LEVEL_OFF);

}


But not sure. You should see the API referces for this

Regards
Sudhakar
--- Ritu Kedia [EMAIL PROTECTED] wrote:

 For now the intention is to only suppress the messages. But if the same
 warnings are being issued in WebSphere as well,then it may become a
 potential problem with log file increasing in size with every server
 operation.
 Secondly, I just thought it better to address the warnings now before they
 result in some erroneous behavior.
 
 Thanks,
 Ritu
 
 -Original Message-
 From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 3:59 PM
 To: Slide Users Mailing List
 Subject: Re: Has anyone seen connection warnings when deploying slide in
 an Ap p Server(JBoss)
 
 
 Is this is becoming a problem for you?? Or You just want to supress those
 messages??
 
 Regards
 Sudhakar
 
 
 --- Ritu Kedia [EMAIL PROTECTED] wrote:
 
  I see a lot of warnings when deploying Slide in JBoss App Server. 
  WARN  [WrappedConnection] Closing a statement you left open, please do
 your
  own housekeeping
  
  The same warnings also come when performing any server side operations.
I
  saw the DB Adapter classes.. they do close the statements in the final
  clause. Then why do the warnings come?
  Has anyone faced a similar problem? Or could someone suggest a way of
  avoiding these warnings.
  
  Thanks,
  Ritu
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 =
 No one can earn a million dollars honestly.- William Jennings Bryan
 (1860-1925) 
 
 Make everything as simple as possible, but not simpler.- Albert Einstein
 (1879-1955)
 
 It is dangerous to be sincere unless you are also stupid.- George
Bernard
 Shaw (1856-1950)
 
 
   
 __
 Do you Yahoo!?
 Yahoo! Mail is new and improved - Check it out!
 http://promotions.yahoo.com/new_mail
 
 -
 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]
 
 


=
No one can earn a million dollars honestly.- William Jennings Bryan
(1860-1925) 

Make everything as simple as possible, but not simpler.- Albert Einstein
(1879-1955)

It is dangerous to be sincere unless you are also stupid.- George Bernard
Shaw (1856-1950)



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-
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]


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



AW: New user needing some help

2004-09-15 Thread Florey, Daniel
Hi,
I very sorry, but there is currently no documentation on Projector. I'll try to post 
some kind of tutorial as soon as I get it done.
Projector is more a WebDAV based development framework rather than a full featured 
content management solution.
I've bundled a little admin-application for user management with the Slide 2.1b, you 
can start it by calling the URL that you find on the web page.
Have a look at the files that are stored in Slide under /prjector so you'll get an 
impression in what it does and how it works.
I hope to get documentation done until Slide 2.1 is final.
Regards,
Daniel



Von: Nick Longinow [mailto:[EMAIL PROTECTED]
Gesendet: Di 14.09.2004 22:56
An: 'Slide Users Mailing List'
Betreff: RE: New user needing some help



Hmm, couldn't find it myself.  I looked in the src distribution for Slide
version 21M1, and online.  Maybe someone else knows ?

-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 3:36 PM
To: 'Slide Users Mailing List'
Subject: RE: New user needing some help


Nick, where is there some documentation on what projector is and how to
configure and use it with the Slide beta distribution?

Thanks,
Warwick



 -Original Message-
 From: Nick Longinow [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 14, 2004 3:31 PM
 To: 'Slide Users Mailing List'
 Subject: RE: New user needing some help


 Isabel

 

 You can look at Projector, it is an app that sits on top of Slide.

 It should be bundled with the 2.1 release.

 

 Nick

 

   _ 

 From: Isabel Wanderley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 14, 2004 2:49 PM
 To: [EMAIL PROTECTED]
 Subject: New user needing some help

 

 Hello all Slide users,

 

 I´m looking for a some kind of framework to make a content
 management system... I´m newby in Slide and I´d like to know
 if any of you knows some application that users Slide. I
 looked for it, but I haven´t found :(

 If someone could help me I´d be very glad :)

 

 Thanks,


 





 TCI


 Isabel Wanderley





 Engenheira de Software
 Tecnologia do Conhecimento e da Informação
 +55 81 3222.2166 / +55 81 9913.6894


 mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED]
 http://www.tcisolutions.com.br/ www.tcisolutions.com.br







-
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]




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

Getting error when giving write permission to a user

2004-09-15 Thread Dharmesh Rana
Hi,

I am using tomcat bundle 4.1.30 with slide 2.1b.
I created a user test as per the instructions.
Using this command line arguments, I have given:

grant DAV::write on /files/test to /users/test

I am getting following error:

Error: PropFind didn't return an AclProperty!

How can I give write access on /files/test folder for user test?

The commandline arguments' syntaxt seemed to be ok. 


Regards  Thanks,


Dharmesh


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



RE: ldap configuration

2004-09-15 Thread Miguel Figueiredo


 Hello Stefan,

 Using the JBDC store did not solve the problem. Instead of a null pointer
exception, I get the following errors:

org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,self,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,/roles/projector,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,unauthenticated,all)

 I've re-examined the null pointer exception stack of the txfile store, and
found out that the error also occurs when setting some kind of permissions.
 Removing the data tag from the domain.xml prevents the error. I've
concluded that the error occurs only on the security and lock stores
configured inside the JNDIPrincipalStore, for roles and users alike (I get a
similar error but for the /users path), and when slide is trying to execute
the following directives of the domain.xml file:

objectnode classname=org.apache.slide.structure.SubjectNode uri=/roles
permission action=all subject=self inheritable=true/
permission action=all subject=/roles/projector
inheritable=true/
permission action=all subject=unauthenticated
inheritable=true negative=true/

...
/objectnode


  Anyway, the good news is that, when examining the ACL permissions with a
IExplorer (with directory-browsing-hide-acl = false), those same paths are
correctly configured with the presented domain.xml directives... weird...
  Everything else seems to be working well.

Best regards,
Miguel

_

 Thank you Stefan!

 I'll configure a JDBC store has the security  lock store (anyway, I wanted
to play with JDBC in my next experience set ;))

 Best regards,
 Miguel
__

Hello Miguel,

I'm also working with the JNDIPrincipalStore. I think the problem is the way
the file based stores are implemented. You have set the security and lock
store to be a file based store. Earlier I've tried to separate data of an
ExtendedStore by spreading it over 6 file based stores each using different
directories. It didn't work.

The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you
don't use an old version of Slide):

Element aElementObjectNode = new Element(objectnode);
if (object != null) {
 aElementObjectNode.setAttribute(classname,
object.getClass().getName());
 aElementObjectNode.setAttribute(uri, object.getUri());
 if (object instanceof LinkNode) {
 aElementObjectNode.setAttribute(linkTo, ((LinkNode)
object).getLinkedUri());
 }
} else {
 // for null locks
 aElementObjectNode.setAttribute(classname, null);
 aElementObjectNode.setAttribute(uri, uri.toString());
}
aElementObjectNode.addContent(createBindings(children, child,
object.enumerateBindings()));
aElementObjectNode.addContent(createBindings(parents, parent,
object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements(links, link,
object.enumerateLinks()));
return aElementObjectNode;

First there is distinguished between an object being null or not. After that
there is always tried to access the child bindings of object - even if it's
null.



Try replacing your security and lock store by a JDBCStore. For me it works
that way.

Stefan



Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo
[EMAIL PROTECTED]:


 Hello folks,

 I've been trying to configure slide to use an ldap server for
authentication
 purposes.
 I've been successful at that, but with a cost of an annoying null pointer
 exception when tomcat is starting up:

   org.apache.slide.common.ServiceAccessException: Service
 TxXMLFileDescriptorsStore at users/store/metadata  working on us
   ers/work/metadata access error : java.lang.NullPointerException
 at
 org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
 ct(AbstractXMLResourceDescriptor.java:662)

 My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
 domain.xml file.

 I suspect that it works well because JNDIPrincipalStore is read-only, so,
 maybe it wouldn't need it's corresponding working directory, to witch this
 exception relates to. Or perhaps I still didn't found any problem witch
 shall occur more soon than later...

 Does slide use the 'users working directory' in any of its use-cases? Am I
 doing something wrong in the Domain.xml file?


  Thanks in advance,
  Miguel Figueiredo






-
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]


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



Webdav spec question - lock-null and collection

2004-09-15 Thread kranga
Hi,
What does the spec say in relation to the following scenario:

- You have a collection A that is locked. You create a lock-null resouce
under A called foo.bar. Now, this has to be created using a LOCK method
execution and you are likely to get a different token or the same token as
the parent collection.

The webdav specs say that any child of a collection that is locked (by
default with depth infinity) should also be automatically added to that
lock. However, if you create it with the same locktoken as the parent, then
an unlock on the parent collection will make the lock-null resource vanish,
which may not be desirable. However, if you create it with a different
lock-token, then it is against the spec that children of a locked collection
should be part of that lock. So do you create multiple locks? One for the
lock-token and one for the collection? In that case how do you honor a PUT
or MKCOL on it? I think you can only specify one lock in the lock-token
header??? What if you only support exclusive locks?

Thanks
K


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



Version of commons-httpclient.jar

2004-09-15 Thread Ritu Kedia
Revisiting this old mail... I really really need this information as part of
our company policy. I went through the old httpclient archives
http://archive.apache.org/dist/jakarta/commons/httpclient/binary/ and
downloaded all the files from 
Jan-16-2004, Feb-15-2004, Feb-17-2004 and May-17-2204. There is no binary
available between Feb-17 and May-17. And the ones from these 2 dates don't
match in size with the one used by slide-2.1.M1 (whose date is 02-24-2004).
Has it been compiled from source code dated 02-24?

I really request the one who knows anything about this jar version, to
please respond. 

Thanks,
Ritu


-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 7:57 PM
To: 'Slide Users Mailing List'
Subject: RE: httpclient code


I'd be interested too.
The CVS log shows that the last checkin was done on 02-24-04 by Daniel. 
Daniel Could you please let me know which version this is.
Is this going to be version used by 2.1 Beta as well?

Thanks,
Ritu

-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 8:26 PM
To: 'Slide Users Mailing List'
Subject: RE: httpclient code



I'd be interested to know what version the client uses too.



-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 30, 2004 9:44 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: httpclient code


It's more recent than the 2.0 release, since there were some important
bugfixes. For the exact date see the CVS log.

Ingo

 What version of the commons-httpclient code is being used with Slide 
 in HEA= D? I have downloaded the 2.0 version of httpclient but the 
 source doesn't s= eem to line up with the binaries supplied with Slide 
 in the debugger.
 
 Karl Koster
 [EMAIL PROTECTED]
 
 
 
 
 **
 This e-mail contains privileged attorney-client communications and/or 
 confi= dential information, and is only for the use by the intended 
 recipient. Rec= eipt by an unintended recipient does not constitute a 
 waiver of any applica= ble privilege.
 
 Reading, disclosure, discussion, dissemination, distribution or 
 copying of = this information by anyone other than the intended 
 recipient or his or her = employees or agents is strictly prohibited.  
 If you have received this comm= unication in error, please immediately 
 notify us and delete the original ma= terial from your computer.
 
 Sempra Energy Trading Corp. (SET) is not the same company as SDGE or 
 SoCal= Gas, the utilities owned by SET's parent company.  SET is not 
 regulated by = the California Public Utilities Commission and you do 
 not have to buy SET's=  products and services to continue to receive 
 quality regulated service fro= m the utilities.
 **


-
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]


-
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]



[newbie] Problem running Jakarta Slide

2004-09-15 Thread Nicolas Laurent
Hi all,
I'm newbie in Jakarta, Slide and Tomcat, and I can't get Slide to run on
Windows at all. 

I downloaded the last version (jakarta-slide-2.0-tomcat-5.0.19.zip) and
unzipped it (in c:\nico\webdav\slide) . When I type \bin\startup.bat from
c:\nico\webdav\slide, another cmd pops up but it closes straight away, and I
can't read the exception that's been thrown. And no log file is created.

Did anybody already encounter the problem ? If yes, do you have any idea where
the problem might come from ? I've got jdk 1.4.2 installed on my machine (i
removed it and reinstalled it) and the environment variable CATALINA_HOME is
correclty set up (i think)

Any help would be greatly appreciated. Otherwise, if you know of a website that
describes how to install or troubleshoot Slide, that'd be nice too.

Thanks in advance
Nico






Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour 
dialoguer instantanément avec vos amis. A télécharger gratuitement sur 
http://fr.messenger.yahoo.com

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



RE: ldap configuration

2004-09-15 Thread Miguel Figueiredo


 Hello Stefan,

 Using the JBDC store did not solve the problem. Instead of a null pointer
exception, I get the following errors:

org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,self,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,/roles/projector,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,unauthenticated,all)

 I've re-examined the null pointer exception stack of the txfile store, and
found out that the error also occurs when setting some kind of permissions.
 Removing the data tag from the domain.xml prevents the error. I've
concluded that the error occurs only on the security and lock stores
configured inside the JNDIPrincipalStore, for roles and users alike (I get a
similar error but for the /users path), and when slide is trying to execute
the following directives of the domain.xml file, inside the data element:

objectnode classname=org.apache.slide.structure.SubjectNode uri=/roles
permission action=all subject=self inheritable=true/
permission action=all subject=/roles/projector
inheritable=true/
permission action=all subject=unauthenticated
inheritable=true negative=true/

...
/objectnode


  Anyway, the good news is that, when examining the ACL permissions with a
IExplorer (with directory-browsing-hide-acl = false), those same paths are
correctly configured with the presented domain.xml directives... weird...
  Everything else seems to be working well.


Best regards,
Miguel


_

 Thank you Stefan!

 I'll configure a JDBC store has the security  lock store (anyway, I wanted
to play with JDBC in my next experience set ;))

 Best regards,
 Miguel
__

Hello Miguel,

I'm also working with the JNDIPrincipalStore. I think the problem is the way
the file based stores are implemented. You have set the security and lock
store to be a file based store. Earlier I've tried to separate data of an
ExtendedStore by spreading it over 6 file based stores each using different
directories. It didn't work.

The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you
don't use an old version of Slide):

Element aElementObjectNode = new Element(objectnode);
if (object != null) {
 aElementObjectNode.setAttribute(classname,
object.getClass().getName());
 aElementObjectNode.setAttribute(uri, object.getUri());
 if (object instanceof LinkNode) {
 aElementObjectNode.setAttribute(linkTo, ((LinkNode)
object).getLinkedUri());
 }
} else {
 // for null locks
 aElementObjectNode.setAttribute(classname, null);
 aElementObjectNode.setAttribute(uri, uri.toString());
}
aElementObjectNode.addContent(createBindings(children, child,
object.enumerateBindings()));
aElementObjectNode.addContent(createBindings(parents, parent,
object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements(links, link,
object.enumerateLinks()));
return aElementObjectNode;

First there is distinguished between an object being null or not. After that
there is always tried to access the child bindings of object - even if it's
null.



Try replacing your security and lock store by a JDBCStore. For me it works
that way.

Stefan



Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo
[EMAIL PROTECTED]:


 Hello folks,

 I've been trying to configure slide to use an ldap server for
authentication
 purposes.
 I've been successful at that, but with a cost of an annoying null pointer
 exception when tomcat is starting up:

   org.apache.slide.common.ServiceAccessException: Service
 TxXMLFileDescriptorsStore at users/store/metadata  working on us
   ers/work/metadata access error : java.lang.NullPointerException
 at
 org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
 ct(AbstractXMLResourceDescriptor.java:662)

 My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
 domain.xml file.

 I suspect that it works well because JNDIPrincipalStore is read-only, so,
 maybe it wouldn't need it's corresponding working directory, to witch this
 exception relates to. Or perhaps I still didn't found any problem witch
 shall occur more soon than later...

 Does slide use the 'users working directory' in any of its use-cases? Am I
 doing something wrong in the Domain.xml file?


  Thanks in advance,
  Miguel Figueiredo






-
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]


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



RE: ldap configuration

2004-09-15 Thread Miguel Figueiredo

Sorry for the spam, my mail client was unsynchronized.




-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 15 de Setembro de 2004 17:32
To: 'Slide Users Mailing List'
Subject: RE: ldap configuration



 Hello Stefan,

 Using the JBDC store did not solve the problem. Instead of a null pointer
exception, I get the following errors:

org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,self,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,/roles/projector,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,unauthenticated,all)

 I've re-examined the null pointer exception stack of the txfile store, and
found out that the error also occurs when setting some kind of permissions.
 Removing the data tag from the domain.xml prevents the error. I've
concluded that the error occurs only on the security and lock stores
configured inside the JNDIPrincipalStore, for roles and users alike (I get a
similar error but for the /users path), and when slide is trying to execute
the following directives of the domain.xml file, inside the data element:

objectnode classname=org.apache.slide.structure.SubjectNode uri=/roles
permission action=all subject=self inheritable=true/
permission action=all subject=/roles/projector
inheritable=true/
permission action=all subject=unauthenticated
inheritable=true negative=true/

...
/objectnode


  Anyway, the good news is that, when examining the ACL permissions with a
IExplorer (with directory-browsing-hide-acl = false), those same paths are
correctly configured with the presented domain.xml directives... weird...
  Everything else seems to be working well.


Best regards,
Miguel


_

 Thank you Stefan!

 I'll configure a JDBC store has the security  lock store (anyway, I wanted
to play with JDBC in my next experience set ;))

 Best regards,
 Miguel
__

Hello Miguel,

I'm also working with the JNDIPrincipalStore. I think the problem is the way
the file based stores are implemented. You have set the security and lock
store to be a file based store. Earlier I've tried to separate data of an
ExtendedStore by spreading it over 6 file based stores each using different
directories. It didn't work.

The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you
don't use an old version of Slide):

Element aElementObjectNode = new Element(objectnode);
if (object != null) {
 aElementObjectNode.setAttribute(classname,
object.getClass().getName());
 aElementObjectNode.setAttribute(uri, object.getUri());
 if (object instanceof LinkNode) {
 aElementObjectNode.setAttribute(linkTo, ((LinkNode)
object).getLinkedUri());
 }
} else {
 // for null locks
 aElementObjectNode.setAttribute(classname, null);
 aElementObjectNode.setAttribute(uri, uri.toString());
}
aElementObjectNode.addContent(createBindings(children, child,
object.enumerateBindings()));
aElementObjectNode.addContent(createBindings(parents, parent,
object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements(links, link,
object.enumerateLinks()));
return aElementObjectNode;

First there is distinguished between an object being null or not. After that
there is always tried to access the child bindings of object - even if it's
null.



Try replacing your security and lock store by a JDBCStore. For me it works
that way.

Stefan



Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo
[EMAIL PROTECTED]:


 Hello folks,

 I've been trying to configure slide to use an ldap server for
authentication
 purposes.
 I've been successful at that, but with a cost of an annoying null pointer
 exception when tomcat is starting up:

   org.apache.slide.common.ServiceAccessException: Service
 TxXMLFileDescriptorsStore at users/store/metadata  working on us
   ers/work/metadata access error : java.lang.NullPointerException
 at
 org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
 ct(AbstractXMLResourceDescriptor.java:662)

 My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
 domain.xml file.

 I suspect that it works well because JNDIPrincipalStore is read-only, so,
 maybe it wouldn't need it's corresponding working directory, to witch this
 exception relates to. Or perhaps I still didn't found any problem witch
 shall occur more soon than later...

 Does slide use the 'users working directory' in any of its use-cases? Am I
 doing something wrong in the Domain.xml file?


  Thanks in advance,
  Miguel Figueiredo






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


-
To unsubscribe, e-mail: 

RE: [newbie] Problem running Jakarta Slide

2004-09-15 Thread Miguel Figueiredo

Hello nico,

 I had a similar problem but don't remember the solution. It should be
obvious if you see what's going wrong: open a command line window, and
navigate to the bin directory so you can execute Catalina.bat run. That
way you can see what's the error before the window disappears.

Best Regards,
Miguel Figueiredo

HINT: do you have other web server installed on port 8080 ?

__

Hi all,
I'm newbie in Jakarta, Slide and Tomcat, and I can't get Slide to run on
Windows at all. 

I downloaded the last version (jakarta-slide-2.0-tomcat-5.0.19.zip) and
unzipped it (in c:\nico\webdav\slide) . When I type \bin\startup.bat from
c:\nico\webdav\slide, another cmd pops up but it closes straight away, and I
can't read the exception that's been thrown. And no log file is created.

Did anybody already encounter the problem ? If yes, do you have any idea
where
the problem might come from ? I've got jdk 1.4.2 installed on my machine (i
removed it and reinstalled it) and the environment variable CATALINA_HOME is
correclty set up (i think)

Any help would be greatly appreciated. Otherwise, if you know of a website
that
describes how to install or troubleshoot Slide, that'd be nice too.

Thanks in advance
Nico






Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés
pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur
http://fr.messenger.yahoo.com

-
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: Problem disabling slide authorization

2004-09-15 Thread alon salant
I saw the Security implementation that does this when looking through
the source code. Won't this create nodes for my users and roles in my
NodeStore? Since I am using an existing file system to back my
NodeStore this would not be an option for me.

Thanks,

Alon


On Wed, 15 Sep 2004 13:29:44 +0530, Ritu Kedia [EMAIL PROTECTED] wrote:
 Alon,
 
 Your problem could be solved by turning auto-create-user on in domain.xml
 (auto-create-userstrue/auto-create-users)
 This would ensure that if the principal is not already there in slide db
 then one would be created prior to executing the requested method.
 
 Hope this helps.
 
 Regards,
 Ritu
 
 
 
 -Original Message-
 From: alon salant [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 14, 2004 10:06 PM
 To: Slide Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Problem disabling slide authorization
 
 So after letting this sit for just a little bit, it strikes me that
 this may be considered a bug in SecurityImpl (or the calling Method
 implementations). The Methods are calling getPrincipal() so that they
 can set the owner metadata in the node being created. When security is
 off but webapp security is on, there is a Principal in the
 CredentialsToken but it does not exist in the store. So you get an
 ObjectNotFoundException.
 
 If SecurityImpl finds a Principal in the CredentialsToken but not in
 the NodeStore, why not return a SubjectNode with the principal name as
 the path? Or do this if slide security is disabled?
 
 Alon
 
 On Tue, 14 Sep 2004 00:24:16 -0700, alon salant [EMAIL PROTECTED] wrote:
  With a little digging, I appear to have a solution.
 
  It looks like you can set your own implementation of Security in
  Domain.xml with parameter name=acl_semantics/parameter.
 
  I created an AllowAllSecurityImpl that does its best to be okay with
  everything. The only method I really implemented is
  getPrincipal(SlideToken token) which returns SubjectNode.UNAUTHORIZED
  if there is no user principal in the SlideToken, or a SubjectNode with
  the principal name as the path if there is a principal.
 
  So I configure my domain to load it with:
 
  configuration
  parameter
 name=acl_semanticsorg.apache.slide.store.file.AllowAllSecurityImpl/param
 eter
  /configuration
 
 
 http://cvs.sourceforge.net/viewcvs.py/photospace/slidespace/WEB-INF/src/org/
 apache/slide/store/file/
 
  Seems to work for me. Any comments or gotchas I may have missed?
 
  Alon
 
 
 
 
  On Mon, 13 Sep 2004 23:41:17 -0700, alon salant [EMAIL PROTECTED] wrote:
   When working on SimpleFileStore, it was easy to disable Slide security
   by setting
  
 org.apache.slide.security=false
  
   in slide.properties.
  
   However, I do want to be able configure basic webapp security using
   security constraints on paths and HTTP methods. But I do not want to
   manage users and roles within slide.
  
   So I have slide configured with security=false, SimpleFileStore,
   TransientSecurityStore, and TransientLockStore for my store
   implementations, all user and role definitions removed from Domain.xml
   and basic auth configured in my web.xml for the path to the webdav
   servlet.
  
   With this config, I can connect via webdav, log in and browse.
  
   However, I cannot create files or folders, copy, move, delete
  
   The problem that I am running in to is that Methods (MkcolMethod for
   example), still try to authorize the current principal. If the
   principal is null, things work fine b/c SecurityImpl returns
   SubjectNode.UNAUTHENTICATED and slide lets this continue. However, if
   the principal is not null (it is not when the webapp makes the user
   log in), SecurityImpl.getPrincipal( ) tries to retrieve an object for
   that user resulting in an ObjectNotFoundException.
  
   This looks like hard behavior to change (unfortunately).
   AbstractWebDavMethod creates the SlideToken with the user principal in
   run( ) using req.getUserPrincipal().
  
   I haven't traced through the other methods to see if/how the user
   principal is used. It looks like copy/delete/put/move/mkcol (at least)
   all have issues related to this.
  
   Any thoughts? What I am trying to do seems like a pretty common use
   case. Is there a good way to address this need? I'm hoping I've missed
   something simple.
  
   Alon
  
 
 
 -
 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]
 


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



Help on setting up a basic Oracle J2ee store...

2004-09-15 Thread Nick Longinow
Hi

 

It should be simple to do this (got the schema tables loaded ok), but 2 days
of

hacking seem to tell me that it may not be simple for me :-(

 

Can anyone check out my domain.xml ?

I am getting an error on loadup of:

 

org.apache.slide.common.Namespace - INFO - Loading namespace slide base data

org.apache.slide.common.Domain - WARNING - Service is missing on root node

org.apache.slide.common.Namespace - ERROR - Unable to read Namespace base
configuration file : 

og.apache.slide.common.Namespace - ERROR -
org.apache.slide.common.ServiceMissingOnRootNodeException: Service is
missing on root node

domain snippet.

 

namespace name=slide

 

definition

store name=OracleStore

   nodestore
classname=org.apache.slide.store.impl.rdbms.JDBCStore

  parameter
name=adapterorg.apache.slide.store.impl.rdbms.CommonRDBMSAdapter/paramet
er

  parameter
name=driveroracle.jdbc.driver.OracleDriver/parameter

  parameter
name=urljdbc:oracle:thin:@172.27.2.15:1524:LLDEV/parameter

  parameter name=usersystem/parameter

  parameter name=passwordmanager/parameter

  parameter name=dbcpPoolingtrue/parameter

  parameter name=maxPooledConnections10/parameter

  parameter name=isolationREAD_COMMITTED/parameter

  parameter name=compressfalse/parameter

   /nodestore

   contentstore

  reference store=nodestore /

   /contentstore

   securitystore

  reference store=nodestore /

   /securitystore

   lockstore

  reference store=nodestore /

   /lockstore

   revisiondescriptorsstore

  reference store=nodestore /

   /revisiondescriptorsstore

   revisiondescriptorstore

  reference store=nodestore /

   /revisiondescriptorstore

/store

/definition



RE: Help on setting up a basic Oracle J2ee store...

2004-09-15 Thread Nick Longinow
ugg!!  That was it.  Thanks so much!!!

-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 1:04 PM
To: 'Slide Users Mailing List'
Subject: RE: Help on setting up a basic Oracle J2ee store...


I don't see a scope definition for your root (OracleStore) store. Eg.

scope match=/ store=OracleStore/
 
This would go after the closing /store and before the closing
/definition.

Warwick



 -Original Message-
 From: Nick Longinow [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 12:26 PM
 To: 'Slide Users Mailing List'
 Subject: Help on setting up a basic Oracle J2ee store...
 
 
 Hi
 
  
 
 It should be simple to do this (got the schema tables loaded 
 ok), but 2 days of
 
 hacking seem to tell me that it may not be simple for me :-(
 
  
 
 Can anyone check out my domain.xml ?
 
 I am getting an error on loadup of:
 
  
 
 org.apache.slide.common.Namespace - INFO - Loading namespace 
 slide base data
 
 org.apache.slide.common.Domain - WARNING - Service is missing 
 on root node
 
 org.apache.slide.common.Namespace - ERROR - Unable to read 
 Namespace base configuration file : 
 
 og.apache.slide.common.Namespace - ERROR -
 org.apache.slide.common.ServiceMissingOnRootNodeException: 
 Service is missing on root node
 
 domain snippet.
 
  
 
 namespace name=slide
 
  
 
 definition
 
 store name=OracleStore
 
nodestore 
 classname=org.apache.slide.store.impl.rdbms.JDBCStore
 
   parameter 
 name=adapterorg.apache.slide.store.impl.rdbms.CommonRDBMSAd
 apter/paramet
 er
 
   parameter 
 name=driveroracle.jdbc.driver.OracleDriver/parameter
 
   parameter 
 name=urljdbc:oracle:thin:@172.27.2.15:1524:LLDEV/parameter
 
   parameter name=usersystem/parameter
 
   parameter name=passwordmanager/parameter
 
   parameter name=dbcpPoolingtrue/parameter
 
   parameter 
 name=maxPooledConnections10/parameter
 
   parameter 
 name=isolationREAD_COMMITTED/parameter
 
   parameter name=compressfalse/parameter
 
/nodestore
 
contentstore
 
   reference store=nodestore /
 
/contentstore
 
securitystore
 
   reference store=nodestore /
 
/securitystore
 
lockstore
 
   reference store=nodestore /
 
/lockstore
 
revisiondescriptorsstore
 
   reference store=nodestore /
 
/revisiondescriptorsstore
 
revisiondescriptorstore
 
   reference store=nodestore /
 
/revisiondescriptorstore
 
 /store
 
 /definition
 
 

-
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]



Finding the history uri of latest rev?

2004-09-15 Thread Warwick Burrows
Hi,
 
Is there a way to fetch the history URI of the latest rev?  Is the latest
rev stored in a property somewhere? I was using the reportMethod() and
taking the first entry in the Enumeration but when I added an 8th version
the enumeration was no longer in order eg. the list now comes back as:
 
/slide/history/1/h5/1.7
/slide/history/1/h5/1.6
/slide/history/1/h5/1.5
/slide/history/1/h5/1.4
/slide/history/1/h5/1.3
/slide/history/1/h5/1.2
/slide/history/1/h5/1.1
/slide/history/1/h5/1.0
/slide/history/1/h5/1.8
 
With the latest in the last position - not first. I thought about sorting
the uris but this doesn't work when you consider version 1.2 and version
1.10 which don't sort in the right order with a string comparison.
 
Thanks,
Warwick
 


RE: Finding the history uri of latest rev?

2004-09-15 Thread Kiran Patchigolla
The checked-in property will have the latest revision uri.

-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 11:25 AM
To: '[EMAIL PROTECTED]'
Subject: Finding the history uri of latest rev?

Hi,
 
Is there a way to fetch the history URI of the latest rev?  Is the latest
rev stored in a property somewhere? I was using the reportMethod() and
taking the first entry in the Enumeration but when I added an 8th version
the enumeration was no longer in order eg. the list now comes back as:
 
/slide/history/1/h5/1.7
/slide/history/1/h5/1.6
/slide/history/1/h5/1.5
/slide/history/1/h5/1.4
/slide/history/1/h5/1.3
/slide/history/1/h5/1.2
/slide/history/1/h5/1.1
/slide/history/1/h5/1.0
/slide/history/1/h5/1.8
 
With the latest in the last position - not first. I thought about sorting
the uris but this doesn't work when you consider version 1.2 and version
1.10 which don't sort in the right order with a string comparison.
 
Thanks,
Warwick
 




If you have received this e-mail in error, please delete it and notify the sender as 
soon as possible. The contents of this e-mail may be confidential and the unauthorized 
use, copying, or dissemination of it and any attachments to it, is prohibited. 

Internet communications are not secure and Hyperion does not, therefore, accept legal 
responsibility for the contents of this message nor for any damage caused by viruses.  
The views expressed here do not necessarily represent those of Hyperion.

For more information about Hyperion, please visit our Web site at www.hyperion.com

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



RE: Finding the history uri of latest rev?

2004-09-15 Thread Warwick Burrows
Hi Kiran,

Thanks. I didn't see that property when I ran propgetall on the file from
the CLI client. Is this property just not listed by propgetall?

Thanks,
Warwick


 -Original Message-
 From: Kiran Patchigolla [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 1:37 PM
 To: 'Slide Users Mailing List'
 Subject: RE: Finding the history uri of latest rev?
 
 
 The checked-in property will have the latest revision uri.
 
 -Original Message-
 From: Warwick Burrows [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 11:25 AM
 To: '[EMAIL PROTECTED]'
 Subject: Finding the history uri of latest rev?
 
 Hi,
  
 Is there a way to fetch the history URI of the latest rev?  
 Is the latest rev stored in a property somewhere? I was using 
 the reportMethod() and taking the first entry in the 
 Enumeration but when I added an 8th version the enumeration 
 was no longer in order eg. the list now comes back as:
  
 /slide/history/1/h5/1.7
 /slide/history/1/h5/1.6
 /slide/history/1/h5/1.5
 /slide/history/1/h5/1.4
 /slide/history/1/h5/1.3
 /slide/history/1/h5/1.2
 /slide/history/1/h5/1.1
 /slide/history/1/h5/1.0
 /slide/history/1/h5/1.8
  
 With the latest in the last position - not first. I thought 
 about sorting the uris but this doesn't work when you 
 consider version 1.2 and version 1.10 which don't sort in the 
 right order with a string comparison.
  
 Thanks,
 Warwick
  
 
 
 **
 **
 
 If you have received this e-mail in error, please delete it 
 and notify the sender as soon as possible. The contents of 
 this e-mail may be confidential and the unauthorized use, 
 copying, or dissemination of it and any attachments to it, is 
 prohibited. 
 
 Internet communications are not secure and Hyperion does not, 
 therefore, accept legal responsibility for the contents of 
 this message nor for any damage caused by viruses.  The views 
 expressed here do not necessarily represent those of Hyperion.
 
 For more information about Hyperion, please visit our Web 
 site at www.hyperion.com
 
 -
 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: Finding the history uri of latest rev?

2004-09-15 Thread Miguel Figueiredo

 Hia,

 The checked-in property is 'protected'.
 I believe that the versioning spec mandates that protected properties must
be fetched explicitly. That means, for example, that these properties
shouldn't be sent on wildcard reports like the 'allprop report'.

 Best regards,
 Miguel

___

Hi Kiran,

Thanks. I didn't see that property when I ran propgetall on the file from
the CLI client. Is this property just not listed by propgetall?

Thanks,
Warwick


 -Original Message-
 From: Kiran Patchigolla [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 1:37 PM
 To: 'Slide Users Mailing List'
 Subject: RE: Finding the history uri of latest rev?
 
 
 The checked-in property will have the latest revision uri.
 
 -Original Message-
 From: Warwick Burrows [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 11:25 AM
 To: '[EMAIL PROTECTED]'
 Subject: Finding the history uri of latest rev?
 
 Hi,
  
 Is there a way to fetch the history URI of the latest rev?  
 Is the latest rev stored in a property somewhere? I was using 
 the reportMethod() and taking the first entry in the 
 Enumeration but when I added an 8th version the enumeration 
 was no longer in order eg. the list now comes back as:
  
 /slide/history/1/h5/1.7
 /slide/history/1/h5/1.6
 /slide/history/1/h5/1.5
 /slide/history/1/h5/1.4
 /slide/history/1/h5/1.3
 /slide/history/1/h5/1.2
 /slide/history/1/h5/1.1
 /slide/history/1/h5/1.0
 /slide/history/1/h5/1.8
  
 With the latest in the last position - not first. I thought 
 about sorting the uris but this doesn't work when you 
 consider version 1.2 and version 1.10 which don't sort in the 
 right order with a string comparison.
  
 Thanks,
 Warwick
  
 
 
 **
 **
 
 If you have received this e-mail in error, please delete it 
 and notify the sender as soon as possible. The contents of 
 this e-mail may be confidential and the unauthorized use, 
 copying, or dissemination of it and any attachments to it, is 
 prohibited. 
 
 Internet communications are not secure and Hyperion does not, 
 therefore, accept legal responsibility for the contents of 
 this message nor for any damage caused by viruses.  The views 
 expressed here do not necessarily represent those of Hyperion.
 
 For more information about Hyperion, please visit our Web 
 site at www.hyperion.com
 
 -
 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]


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



Not Getting Started

2004-09-15 Thread Dan
Hello,

I'm new.  

Here is my situation...
Windows XP Home Edition, Tomcat 5.0.12, Slide 2.0. 
I'm trying to get WebDav working with a filestore.

Here are my problems...

1) I can't figure out how users/passwords are setup. 
I see potentially 3 files that may be involved...
tomcat-users.xml, web.xml, and Domain.xml.  When I try
to add a Network Place, or browse to
http://localhost:8080/slide, I get a login prompt, but
I don't know where to look for the answers to the
prompt.

2) Files are downloaded empty.  Before I activated
security, I could upload files by creating a Network
Place and then dragging them to it. The files arrived
just fine at
K:\usr\share\tomcat\bin\store\content\files and the
file sizes were even displayed properly in the Network
Place view of them in Windows Explorer, but when I
dragged them from there to my desktop, they were
empty, i.e. 0 bytes.

Thanks
Dan


P.S.  The documentation says authentication is on by
default, but I had to uncomment stuff in web.xml to
turn it on.




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



JDBC stores

2004-09-15 Thread Miguel Figueiredo

Hello folks,

 I got another weird problem...
 I was experimenting with JDBC stores, more explicitly with the mySql one.
In attach I'm sending my domain.xml file. It is also getting the
authentication info from a ldap server, to witch I configured two
JNDIPrincipalStore, each of witch with a corresponding mySql store for
locking and security purposes: the mySql databases are called slideustore
for users and sliderstore for roles.
 For content store I've also created a mySql store, being the mySql database
named slidecstore.

 When I start up slide, all goes well, and it also operates correctly but,
and that's the weird problem, all data is saved in only one store, the
sliderstore...
 slideustore and slidecstore are empty, when data should be saved in
slidecstore, not sliderstore. Are there any comments?

 Thanks in advance,
 Miguel Figueiredo

 
?xml version=1.0?
slide
namespace name=slide
definition
store name=tx
parameter name=tlock-timeout120/parameter
nodestore classname=org.apache.slide.store.impl.rdbms.JDBCStore
			parameter name=adapterorg.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter/parameter
			parameter name=drivercom.mysql.jdbc.Driver/parameter
			parameter name=urljdbc:mysql://localhost/slidecstore/parameter
			parameter name=userslidecstore/parameter
			parameter name=passwordslide/parameter
			parameter name=dbcpPoolingtrue/parameter
			parameter name=maxPooledConnections10/parameter
			parameter name=isolationREAD_COMMITTED/parameter
			parameter name=compressfalse/parameter
/nodestore
sequencestore classname=org.apache.slide.store.txfile.FileSequenceStore
parameter name=rootpathstore/sequence/parameter
/sequencestore
securitystore
reference store=nodestore/
/securitystore
lockstore
reference store=nodestore/
/lockstore
revisiondescriptorsstore
reference store=nodestore/
/revisiondescriptorsstore
revisiondescriptorstore
reference store=nodestore/
/revisiondescriptorstore
contentstore
	reference store=nodestore/
/contentstore
!-- uncomment if you want to use the sample Indexer --
!-- be sure to have Lucene in your classpath --
	!--
contentindexer classname=org.apache.slide.index.SampleTxtContainsIndexer
parameter name=indexpath./index/parameter
/contentindexer
	--
/store 



		store name=users
			nodestore classname=org.apache.slide.store.txjndi.JNDIPrincipalStore
parameter name=jndi.containerou=people,dc=dominio,dc=pt/parameter
parameter name=jndi.attributes.rdnuid/parameter
parameter name=jndi.search.filter(objectClass=inetOrgPerson)/parameter
parameter name=jndi.search.scopeONELEVEL_SCOPE/parameter
parameter name=jndi.search.attributespostalCode,initials,givenName,uid,mail,fullName,telephoneNumber,title,facsimileTelephoneNumber,groupMembership,l,sn,cn/parameter
parameter name=java.naming.provider.urlldap://miguel-desktop:389/parameter
parameter name=java.naming.factory.initialcom.sun.jndi.ldap.LdapCtxFactory/parameter
parameter name=java.naming.security.principalcn=Manager,dc=dominio,dc=pt/parameter
parameter name=java.naming.security.authenticationsimple/parameter
parameter name=java.naming.security.credentialssegredo/parameter


parameter name=cache.refresh.checkrate15/parameter
parameter name=cache.refresh.rate800/parameter
parameter name=cache.refresh.threshold15000/parameter




			/nodestore
			!-- Use a Tx Store to store security and lock information --
			!-- securitystore classname=org.apache.slide.store.txfile.TxXMLFileDescriptorsStore
parameter name=rootpathusers/store/metadata/parameter
parameter name=workpathusers/work/metadata/parameter
			/securitystore --
			securitystore classname=org.apache.slide.store.impl.rdbms.JDBCStore
parameter name=adapterorg.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter/parameter
parameter name=drivercom.mysql.jdbc.Driver/parameter
parameter name=urljdbc:mysql://localhost/slideustore/parameter
parameter name=userslideustore/parameter
parameter name=passwordslide/parameter
parameter name=dbcpPoolingtrue/parameter
parameter name=maxPooledConnections10/parameter
parameter name=isolationREAD_COMMITTED/parameter
parameter name=compressfalse/parameter
			/securitystore
			lockstore
reference store=securitystore/
			/lockstore
			revisiondescriptorsstore
reference store=nodestore/
			/revisiondescriptorsstore
revisiondescriptorstore
reference store=nodestore/
			/revisiondescriptorstore
			contentstore
			

RE: Not Getting Started

2004-09-15 Thread Nick Longinow
Dan

Users are defined in web.xml. Short answer is that root/root should work.
Long answer is that you may have to configure authentication within Tomcat
so as to use the Slide realm.  Its all in the Config section of the main
Slide page at http://jakarta.apache.org/slide

Nick
-Original Message-
From: Dan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 2:23 PM
To: [EMAIL PROTECTED]
Subject: Not Getting Started

Hello,

I'm new.  

Here is my situation...
Windows XP Home Edition, Tomcat 5.0.12, Slide 2.0. 
I'm trying to get WebDav working with a filestore.

Here are my problems...

1) I can't figure out how users/passwords are setup. 
I see potentially 3 files that may be involved...
tomcat-users.xml, web.xml, and Domain.xml.  When I try
to add a Network Place, or browse to
http://localhost:8080/slide, I get a login prompt, but
I don't know where to look for the answers to the
prompt.

2) Files are downloaded empty.  Before I activated
security, I could upload files by creating a Network
Place and then dragging them to it. The files arrived
just fine at
K:\usr\share\tomcat\bin\store\content\files and the
file sizes were even displayed properly in the Network
Place view of them in Windows Explorer, but when I
dragged them from there to my desktop, they were
empty, i.e. 0 bytes.

Thanks
Dan


P.S.  The documentation says authentication is on by
default, but I had to uncomment stuff in web.xml to
turn it on.




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-
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: Conceptual mismatch ? likely.

2004-09-15 Thread Miguel Figueiredo


Hia,

 What UI are you using? Are you looking inside slide/files path? That's
where the files should be saved...

Best regards,
Miguel
 


Hi

 

I am able to access a 'running' slide server, initialize it, and then add a
node to the files branch of the slide namespace.  I know it works because if
I retry it, it will throw and exception, and also, I have looked at my
database tables and find the new object there with the correct parent.  So
far so good.   

My question has to do with the user interface at http://host/slide.

I see no changes to this interface contents when I update the tree, as
described above.  Should I ?  Or how would one view the contents of the
Slide tree ?  Perhaps I am thinking of Slide as a directory tree that should
reflect updates in the Slide ui as they are made.  Perhaps there is
another UI that would reflect such content updates.  

 

Nick



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



RE: Conceptual mismatch ? likely.

2004-09-15 Thread Nick Longinow
I am only using the url at http://localhost/slide.  When I click on the
files branch, it shows nothing, just an empty page with a Up to / at the
top of the page.  

Nick

-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 2:36 PM
To: 'Slide Users Mailing List'
Subject: RE: Conceptual mismatch ? likely.



Hia,

 What UI are you using? Are you looking inside slide/files path? That's
where the files should be saved...

Best regards,
Miguel
 


Hi

 

I am able to access a 'running' slide server, initialize it, and then add a
node to the files branch of the slide namespace.  I know it works because if
I retry it, it will throw and exception, and also, I have looked at my
database tables and find the new object there with the correct parent.  So
far so good.   

My question has to do with the user interface at http://host/slide.

I see no changes to this interface contents when I update the tree, as
described above.  Should I ?  Or how would one view the contents of the
Slide tree ?  Perhaps I am thinking of Slide as a directory tree that should
reflect updates in the Slide ui as they are made.  Perhaps there is
another UI that would reflect such content updates.  

 

Nick



-
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: JDBC stores

2004-09-15 Thread Warwick Burrows

Hi Miguel,

I tried configuring three separate stores (with scopes /, /files_2 and
/files_secondCollection using jdbc as you have and could not get it
working either. I also didn't get much help on how the stores _should_ be
configured if you want to get it working so I still don't know what the
right way should be. I tried using separate dbs for each store and also
tried to use the same db for all three and neither approach worked. 

In the case of using separate dbs for each store I got a problem similar to
yours in that the db for the last store contained all the information
instead of being appropriately split up over the three dbs. In the latter
case, sharing the same db, I was getting hang problems in the connection
to the db while running SQL statements most likely due to the fact that
although the root and secondary stores shared the same jdbc config
parameters they're not actually sharing the same connection to the db and so
the secondary stores may have been trying to connect over a second db
connection while another connection was already in progress for that thread.
I'm only guessing here though.

The only time I can get multiple stores working is if the second and third
store are not jdbc stores. Ie. it works with XML file descriptor stores.

If you have any luck please let me know.

Warwick


 -Original Message-
 From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 2:29 PM
 To: 'Slide Users Mailing List'
 Subject: JDBC stores
 
 
 
 Hello folks,
 
  I got another weird problem...
  I was experimenting with JDBC stores, more explicitly with 
 the mySql one. In attach I'm sending my domain.xml file. It 
 is also getting the authentication info from a ldap server, 
 to witch I configured two JNDIPrincipalStore, each of witch 
 with a corresponding mySql store for locking and security 
 purposes: the mySql databases are called slideustore for 
 users and sliderstore for roles.  For content store I've also 
 created a mySql store, being the mySql database named slidecstore.
 
  When I start up slide, all goes well, and it also operates 
 correctly but, and that's the weird problem, all data is 
 saved in only one store, the sliderstore...  slideustore and 
 slidecstore are empty, when data should be saved in 
 slidecstore, not sliderstore. Are there any comments?
 
  Thanks in advance,
  Miguel Figueiredo
 
  
 

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



RE: Not Getting Started

2004-09-15 Thread Dan
Thanks!  Ok, so by configure authentication within
Tomcat, I deduced that you mean add a 'root' user to
tomcat-users.xml and give it the 'root' role.  Damn,
I'm so smart!  I really don't know anything about
Tomcat either.  That worked a little.

In tomcat-users.xml, I have

  user username=root password=root
roles=tomcat,role1,user,root/

Now, I can browse to http://localhost:8080/slide,
enter root/root and see the files listed in internet
explorer.

I can also create a Network Place (webfolder) by
entering root/root too.

But, I can't open the Network Place.  When I try, it
tells me the current operation could not be completed
because an unexpected error has occurred.

I also still don't have any ideas about the empty
downloaded files deal.

Thanks again




__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



problems of list command

2004-09-15 Thread Haipeng Du
when i log into slide as url http://localhost:8080/slide/, with user root, 
password root. everything is fine. but when i list the content under this 
folder, it throws exception. if i log into http://localhost:8080/slide/files 
with the same user and password, evetything is good. there is no exception 
when i list the contents of that folder. It is so strange. Could somebody 
help me?
By the way, I use the following code to write the file from slide directly 
to user, how could I set the content varibles  so that when user saves that, 
the name in saving dialog is the same as file name.

InputStream input = slideClient.get(remoteFileNames[i]);
response.setContentLength ( writeFile(response.getOutputStream(), input) );
// here is writeFile method
private int writeFile(ServletOutputStream out, InputStream input)
{
int size = 0;
byte [] buffer = new byte[256]; // set buffer
//read data from inputstream and output to servlet output 
stream
try {
while( true ){
int n = input.read(buffer); // read 
data
if ( n == - 1 )
break;
size += n;
out.write(buffer);
}
}catch(IOException ioe){ // end of file
}
return size; // return content size
} //private void writeFile(ServletOutputStream out, InputStream input)
Thanks a lot.
Haipeng
_
Check out Election 2004 for up-to-date election news, plus voter tools and 
more! http://special.msn.com/msn/election2004.armx

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


New checked-in property class to submit

2004-09-15 Thread Warwick Burrows
Hi,
 
I found today that when callling the propfindMethod for the checked-in
property that the returned property value isn't being unwrapped from the XML
response correctly. The value returned for the checked in property is the
entire href element within the checked-in element definition rather than
the value of the href. I noticed that the owner property is the same and
that in the case of the owner the XML response is further decoded and the
actual value is returned. So I've defined an additional property class
called CheckedinProperty that behaves like the OwnerProperty class so that
only the value of the href (the latest history URI) is returned.  If you
don't see any problems with this then I'd like to know if it can be
submitted to the slide 2.1 head.
 
I've actually created an HrefValuedProperty base class that extends the
BaseProperty class as OwnerProperty does now and moved the common
functionality of the Owner and CheckedinProperty classes to this common
class. The OwnerProperty and CheckedinProperty now extend this class and
define only their TAGNAME and a constructor. If there are more properties
that could benefit from href decoding then they could also extend the
HrefValuedProperty class.
 
Warwick
 
 


RE: New checked-in property class to submit

2004-09-15 Thread Ritu Kedia
Hi Warwick,

I had the same issue sometime back about fetching the history uri of the
last checked in version (the report method not returning a sorted list of
versions). Coincidentally my first solution was just the same as what you
did, i.e. add a CheckedinProperty class for retrieving the href element of
the checked-in property :) But I realized that this is a generic problem for
any property which has xml value and so here is the solution I adopted:

Vector properties = new Vector();
properties.add(checked-in);
String lastCheckedInVersion = null;
Enumeration e =
getWebdavResource().propfindMethod(resourcePath, DepthSupport.DEPTH_0,
properties);
if(e.hasMoreElements())
{
ResponseEntity resp =
(ResponseEntity)e.nextElement();
Enumeration props = resp.getProperties();
if(props.hasMoreElements())
{
BaseProperty prop =
(BaseProperty)props.nextElement();
if(prop.getLocalName().equals(checked-in))
{
NodeList list =
prop.getElement().getElementsByTagNameNS(DAV:, href);
if (list != null 
list.getLength()  0 ) 
{
lastCheckedInVersion =
list.item(0).getFirstChild().getNodeValue();
}
}
}
}

return lastCheckedInVersion;

This approach could be used for any xml property value (for e.g. Labels)

Regards,
Ritu




-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 3:52 AM
To: '[EMAIL PROTECTED]'
Subject: New checked-in property class to submit


Hi,
 
I found today that when callling the propfindMethod for the checked-in
property that the returned property value isn't being unwrapped from the XML
response correctly. The value returned for the checked in property is the
entire href element within the checked-in element definition rather than
the value of the href. I noticed that the owner property is the same and
that in the case of the owner the XML response is further decoded and the
actual value is returned. So I've defined an additional property class
called CheckedinProperty that behaves like the OwnerProperty class so that
only the value of the href (the latest history URI) is returned.  If you
don't see any problems with this then I'd like to know if it can be
submitted to the slide 2.1 head.
 
I've actually created an HrefValuedProperty base class that extends the
BaseProperty class as OwnerProperty does now and moved the common
functionality of the Owner and CheckedinProperty classes to this common
class. The OwnerProperty and CheckedinProperty now extend this class and
define only their TAGNAME and a constructor. If there are more properties
that could benefit from href decoding then they could also extend the
HrefValuedProperty class.
 
Warwick
 
 


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