Need help: How to configure dynamic SCOPE
Hi, I want to configure the scope variable in web.xml which is not fixed but dynamic. The value of this variable depends on the user who gets logged in. So I would like to set it something like /users/${1} where ${1} should be replaced with the logged in user. By doing this the user who gets log-in can only see his folder and not other users Please guide me how it is possible (by configuration or by changing the code also) Thanks Mihir Sr. Software Engineer SBU: eBiz, Gandhinagar Imaginations... its limits are only those of the mind itself _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this mail. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OracleRDBMSAdapter no longer supportted?
Hi Davide, After downloading latest build.xml from Cvs, that you have fixed to remove Oracle driver dependency, OracleRDBMSAdapter.java gets compiled. On deploying slide.war, I still get the error instantiating OracleRDBMSAdapter on WebLogic Server's console. I reproduce here the console's log:-(Please check for the following text message in the log:-) 25 Aug 2004 12:07:44 - org.apache.slide.store.impl.rdbms.JDBCStore - ERROR - Err or instantiating Adapter 'org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter' (org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter) Regards, Dharmesh Rana *** * To start WebLogic Server, use a username and * * password assigned to an admin-level user. For * * server administration, use the WebLogic Server * * console at http:\\[hostname]:[port]\console* *** Aug 25, 2004 12:07:16 PM GMT+05:30 Info WebLogicServer BEA-000377 Start ing WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.1_03-b02 from Su n Microsystems Inc. Aug 25, 2004 12:07:17 PM GMT+05:30 Info Configuration Management BEA-1500 16 This server is being started as the administration server. Aug 25, 2004 12:07:17 PM GMT+05:30 Info Management BEA-141107 Version: WebLogic Server 8.1 SP1 Fri Jun 20 23:06:40 PDT 2003 271009 WebLogic XMLX Module 8.1 SP1 Fri Jun 20 23:06:40 PDT 2003 271009 Aug 25, 2004 12:07:17 PM GMT+05:30 Notice Management BEA-140005 Loading domain configuration from configuration repository at C:\bea\user_projects\doma ins\test\.\config.xml. Aug 25, 2004 12:07:21 PM GMT+05:30 Notice Log Management BEA-170019 The server log file C:\bea\user_projects\domains\test\myserver\myserver.log is open ed. All server side log events will be written to this file. Aug 25, 2004 12:07:23 PM GMT+05:30 Notice Security BEA-090082 Security initializing using security realm WabanDAV. Aug 25, 2004 12:07:24 PM GMT+05:30 Notice WebLogicServer BEA-000327 Sta rting WebLogic Admin Server myserver for domain test Aug 25, 2004 12:07:32 PM GMT+05:30 Warning HTTP BEA-101304 Webapp: Serv letContext(id=32842021,name=trialtry,context-path=/trialtry), the role: guest de fined in web.xml has not been mapped to principals in security-role-assignment i n weblogic.xml. Will use the rolename itself as the principal-name. 25 Aug 2004 12:07:43 - org.apache.slide.common.Domain - INFO - Initializing Doma in 25 Aug 2004 12:07:43 - org.apache.slide.common.Domain - INFO - Domain configurat ion : {org.apache.slide.lock=true, org.apache.slide.versioncontrol=true, org.apa che.slide.debug=false, org.apache.slide.search=true, org.apache.slide.security=t rue, org.apache.slide.urlEncoding=UTF-8} 25 Aug 2004 12:07:43 - org.apache.slide.common.Domain - INFO - Domain parameters : {logger-level=6, versioncontrol-exclude=, auto-version=checkout-checkin, histo rypath=/history, checkin-fork=forbidden, workingresourcepath=/workingresource, w orkspacepath=/workspace, default=slide, auto-version-control=false, logger=org.a pache.slide.util.logger.SimpleLogger, checkout-fork=forbidden} 25 Aug 2004 12:07:43 - org.apache.slide.common.Domain - INFO - Initializing name space : slide 25 Aug 2004 12:07:43 - org.apache.slide.common.Namespace - INFO - Loading namesp ace slide parameters 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Loading namesp ace definition 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Node store: or g.apache.slide.store.txfile.TxXMLFileDescriptorsStore 25 Aug 2004 12:07:44 - org.apache.slide.store.txfile.AbstractTxFileStoreService - INFO - File Store configured to store/metadata, working directory work/metadat a 25 Aug 2004 12:07:44 - org.apache.slide.store.txfile.AbstractTxFileStoreService - INFO - Set timeout to 120 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Security store references nodestore 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Lock store sto re references nodestore 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Revision descr iptors store references nodestore 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Revision descr iptor store references nodestore 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Content store: org.apache.slide.store.txfile.TxFileContentStore 25 Aug 2004 12:07:44 - org.apache.slide.store.txfile.AbstractTxFileStoreService - INFO - File Store configured to store/content, working directory work/content 25 Aug 2004 12:07:44 - org.apache.slide.store.txfile.AbstractTxFileStoreService - INFO - Set timeout to 120 25 Aug 2004 12:07:44 - org.apache.slide.common.Namespace - INFO - Node store: or g.apache.slide.store.impl.rdbms.JDBCStore 25 Aug 2004 12:07:44 - org.apache.slide.store.impl.rdbms.JDBCStore - ERROR - Err or instantiating Adapter 'org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter' (org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter) 25 Aug 2004
Re: OracleRDBMSAdapter no longer supportted?
On Wednesday 25 August 2004 09:05, Dharmesh Rana wrote: Hi Davide, After downloading latest build.xml from Cvs, that you have fixed to remove Oracle driver dependency, OracleRDBMSAdapter.java gets compiled. I've updated also CommonRDBMSAdapter, DB2RDBMSAdapter and OracleRDBMSAdapter... http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/ Regards, -- Davide Savazzi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OracleRDBMSAdapter no longer supportted?
On Wednesday 25 August 2004 10:23, Davide Savazzi wrote: I've updated also CommonRDBMSAdapter, DB2RDBMSAdapter and OracleRDBMSAdapter... http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/stores/org/apache/slide /store/impl/rdbms/ Very soon we should set up Nightly Builds so it will be easy to try the latest fixes :) -- Davide Savazzi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OracleRDBMSAdapter no longer supportted?
Davide, CommonRDBMSAdapter, DB2RDBMSAdapter and OracleRDBMSAdapter all three files were downloaded, otherwise I could have got compilation error! I am getting this error after deploying the slide.war on WebLogic Server 8.1 on checking the logs in its console. Has anyone has tested OracleRDBMSAdapter on WebLogic successfully? Thanx, Dharmesh Rana - Original Message - From: Davide Savazzi [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 1:53 PM Subject: Re: OracleRDBMSAdapter no longer supportted? On Wednesday 25 August 2004 09:05, Dharmesh Rana wrote: Hi Davide, After downloading latest build.xml from Cvs, that you have fixed to remove Oracle driver dependency, OracleRDBMSAdapter.java gets compiled. I've updated also CommonRDBMSAdapter, DB2RDBMSAdapter and OracleRDBMSAdapter... http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/ Regards, -- Davide Savazzi - 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: Create own set of roles
I use Jetty 4.2.20. I have also tried it with Tomcat 5.0.x and it works too. Slide takes care about authorization and the servlet container takes care about authentication. Stefan Am Tue, 24 Aug 2004 09:50:23 -0700 schrieb James Mason [EMAIL PROTECTED]: Which app server are you using? I'm curious if this is a standard behavior that we could take advantage of in the default web.xml file. It seems like it would simplify things. -James Stefan Fromm wrote: I've made web.xml independent of Slide roles. In the element /web-app/security-constraint/auth-constraint/role-name I just give the value * for all roles. That means that all roles are allowed to execute the HTTP-methods on all resources. The real authorization is performed by Slide. With these settings the authentication is activated in the servlet container. The elements /web-app/servlet/security-role-ref and /web-app/security-role/ are removed. Stefan Am Tue, 24 Aug 2004 11:09:02 +0200 schrieb Stefan Fromm [EMAIL PROTECTED]: Hello James, I found the problem. I had to change the web.xml of the war file and introduce my set of roles there. Then I could use JAAS authentication. I'm thinking of the user/roles-administration application written with the projector framework. Could it be that just creating the users and roles in Slide is not enough, because the web.xml must also be changed? Or is there a way to set security constraints in web.xml in a way that I don't need to refer to my specific set of roles, but still can have authentication only against roles from my set of roles? Stefan Am Mon, 23 Aug 2004 11:22:08 -0700 schrieb James Mason [EMAIL PROTECTED]: Creating your own roles should be fine. The JNDIPrincipalStore doesn't create the default roles and it works fine. Make sure if you remove the user role that you change any permissions that were assigned to that role in Domain.xml to another role that still exists. -James Stefan Fromm wrote: Hello, I want to create an own set of roles containing: - administrator - editor - author I want the root-user to be in role administrator and will have other users in the other roles. The problem is: as soon as I remove the /roles/user node from the Domain.xml I cannot authenticate as root anymore. I assume that there is a problem with the classes providing the roles like: - slideroles.basic.UserRole and slideroles.basic.UserRoleImpl - slideroles.basic.RootRole and slideroles.basic.RootRoleImpl When I want to authenticate as user which is in role editor it doesn't work. I think I have to provide interfaces xxxRole and classes xxxRoleImpl for my roles. Is there anyone who can give me some hints if I'm right or wrong and hints on how to do it? I have some questions that are of interest for me: Best regards Stefan - 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] - 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]
Is Slide If: header compliant? (rfc2518 section 9.4)
Does Slide 2.0 handle the If: header? I see that the AbstractMethod class handles: If-Match If-Modified-Since If-None-Match If-Unmodified-Since but does it also handle the more generic If: header specified in section 9.4 of the webDAV protocol rfc2518 ? It seems like If can apply to all methods. I only see calls to checkIfHeaders in PUT and GET. The example in section 9.4.2.1 of the RFC is shown with the COPY method. Any help is appreciated. Thanks K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simplest config
I am new to slide and have been mostly figuring it out thru RTFM, FAQs, etc. I was wondering, however, if there was a source for the simplest config so slide will merely provide DAV support with authentication. Nothing more. I just want folks to be able to upload a few html pages and images. Thanks in advance for any info! Brian Andrus FirstSpot, Inc. (310) 899-WiFi [EMAIL PROTECTED] http://www.firstspot.net
lock owners not returned with lock properties in 2.1b1??
Hi, It seems that lock owners are not returned from the server with the other lock information any more. I've seen this from the CLI and from within my own application. I noticed it when the application that I had working with 2.1M1 stopped working with 2.1B1. When I lock a resource with an owner using -oname the command succeeds and a locktoken comes back. But when I run locks on the object the owner name is empty. Has anyone else seen this problem or can suggest why this is happening? I'm running with security checking disabled but I don't see why that would affect locking which is enabled. Thanks, Warwick
Re: Simplest config
If you want something simpler I would suggest you first have a look at the WebDAV servlet included in Tomcat. It sounds like that perfectly fits your needs. Regards, Ingo I am new to slide and have been mostly figuring it out thru RTFM, FAQs, etc. I was wondering, however, if there was a source for the simplest config so slide will merely provide DAV support with authentication. Nothing more. I just want folks to be able to upload a few html pages and images. Thanks in advance for any info! Brian Andrus FirstSpot, Inc. (310) 899-WiFi [EMAIL PROTECTED] http://www.firstspot.net http://www.firstspot.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using CVS to get delta of changes since beta 1?
Does anyone know how to use CVS to get a delta of the files changed since the beta was released? There's a branch label there and I have the WinCVS client (and the client for eclipse) but I can figure out how to download deltas. Thanks, Warwick
How to connect to a webdav host using the webdavclient
Hi, I'm new using webdavclient, and I'd like to know the basic code to conect to a webdav host. Thanks Claudio Carvalho. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: lock owners not returned with lock properties in 2.1b1??
Looking for CDATA node types works. I just added it as an OR condition. This problem may have arisen for me since we use numerical owner codes and perhaps the server decided to wrap it in a CDATA definition for that reason... I don't know. Warwick -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 2:26 PM To: 'Slide Users Mailing List' Subject: RE: lock owners not returned with lock properties in 2.1b1?? I've tracked this down to the code that processes lockdiscovery properties returned in the propfind. There is a call to DOMUtils.getTextValue() in LockDiscoveryProperty.java and this call is returning NULL instead of the CDATA that was returned by the server in the D:owner element. Its because the code is checking whether the element is a text node and only returning the value if it is. Since the D:owner contains CDATA its not matching and returning a NULL result instead. If anyone has already fixed this then let me know otherwise I'm going to see whether changing getTextValue() to look for CDATA nodes as well will fix it. Warwick -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 10:30 AM To: 'Slide User Group ([EMAIL PROTECTED])' Subject: lock owners not returned with lock properties in 2.1b1?? Hi, It seems that lock owners are not returned from the server with the other lock information any more. I've seen this from the CLI and from within my own application. I noticed it when the application that I had working with 2.1M1 stopped working with 2.1B1. When I lock a resource with an owner using -oname the command succeeds and a locktoken comes back. But when I run locks on the object the owner name is empty. Has anyone else seen this problem or can suggest why this is happening? I'm running with security checking disabled but I don't see why that would affect locking which is enabled. Thanks, Warwick - 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]
Mac OS X and Slide
Has anyone found a solution to the problem outlined in http://www.mail-archive.com/[EMAIL PROTECTED]/msg05261.html I haven't seen any responses and I'm running into a similar problem. I downloaded a fresh Slide/Tomcat bundle and started it up. Then I connected with Mac OS X 10.3.4 which worked fine. The problem happens only when I try to save a file with MS Word or if I try to save a file with pico in a terminal. Is anyone else having that problem? Thanks in advance. Ben __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DB2 server not responding after short time using Slide 2.1 beta
Hi, I've run into a serious problem with the slide 2.1B1 server where the DB2 server hangs executing a select statement in the enumerateLocks() method of the StandardRDBMSAdapter in the server. Once the DB server is hung it won't even respond to simple select statements from the DB2 cli. Though it will respond to list tables commands. When I run a select from the DB2 cli (eg. select * from URI) and it hangs I can hit ctrl-C at the DB2 cli prompt and it will cancel the request and return -- but no data comes back with it. Of course the slide server will wait indefinitely for the sql request to come back. Has anybody else had this problem with Slide 2.1B1 and DB2? A new DB2 RDBMS adapter was introduced in 2.1B1 as well as a new DB2 schema. I didn't see this problem with 2.1M1 but its happening frequently with 2.1B1. In fact its such a problem my project no longer works and we're grounded until we can find a fix. Thanks, Warwick
Re: DB2 server not responding after short time using Slide 2.1 beta
Warwick, This sounds suspiciously like a deadlock condition to me. I ran into something similar with MySQL, and I *thought* that Oliver and I had made changes that would ensure it couldn't happen, but maybe not. If possible can you get a log of all the sql statements executed by Slide against the database? If your log includes a connection id look to see if the connection id suddenly changes. That should help you pinpoint the sql statement that's causing the problem . From looking at enumerateLocks() I don't see any way that statement could cause a deadlock. This makes me think the problem is probably somewhere else and it's just surfacing when that statement runs. -James Warwick Burrows wrote: Hi, I've run into a serious problem with the slide 2.1B1 server where the DB2 server hangs executing a select statement in the enumerateLocks() method of the StandardRDBMSAdapter in the server. Once the DB server is hung it won't even respond to simple select statements from the DB2 cli. Though it will respond to list tables commands. When I run a select from the DB2 cli (eg. select * from URI) and it hangs I can hit ctrl-C at the DB2 cli prompt and it will cancel the request and return -- but no data comes back with it. Of course the slide server will wait indefinitely for the sql request to come back. Has anybody else had this problem with Slide 2.1B1 and DB2? A new DB2 RDBMS adapter was introduced in 2.1B1 as well as a new DB2 schema. I didn't see this problem with 2.1M1 but its happening frequently with 2.1B1. In fact its such a problem my project no longer works and we're grounded until we can find a fix. Thanks, Warwick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac OS X and Slide
Ben Which version did you download, 2.0 or 2.1b1? I've run into this problem before and fixed it, but I'm having the hardest time remembering how :). If you can reproduce the problem with 2.1b1 I'll undergo hipnosis or something to try to remember. -James Ben Pillet wrote: Has anyone found a solution to the problem outlined in http://www.mail-archive.com/[EMAIL PROTECTED]/msg05261.html I haven't seen any responses and I'm running into a similar problem. I downloaded a fresh Slide/Tomcat bundle and started it up. Then I connected with Mac OS X 10.3.4 which worked fine. The problem happens only when I try to save a file with MS Word or if I try to save a file with pico in a terminal. Is anyone else having that problem? Thanks in advance. Ben __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! 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: How to connect to a webdav host using the webdavclient
Claudio, You can also check out the Wiki for some basic examples: http://wiki.apache.org/jakarta-slide/CreateWebDavResource -James Michael Oliver wrote: Have a look at the command line client source code that uses the webdav client library, its all there. Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 89115 Phone:(702)643-7425 Fax:(520)844-1036 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Cláudio Rodrigues Carvalho [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 10:39 AM To: Slide Users Mailing List Subject: How to connect to a webdav host using the webdavclient Hi, I'm new using webdavclient, and I'd like to know the basic code to conect to a webdav host. Thanks Claudio Carvalho. - 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: Using CVS to get delta of changes since beta 1?
Warwick In eclipse right-click on your project (or any other folder checked out from CVS) and choose compare with. Depending on what you compare with you'll get a list of file with difference. -James Warwick Burrows wrote: Does anyone know how to use CVS to get a delta of the files changed since the beta was released? There's a branch label there and I have the WinCVS client (and the client for eclipse) but I can figure out how to download deltas. Thanks, Warwick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simplest config
That's just it, I am a newbie on this and don't know for certain what might exist that could be exploited. So my take is to remove anything that is not required. Holdover from database normalization practices, I guess. So I guess a more appropriate question would be: What can be removed that is not needed to provide nothing more than DAV with authentication? I was thinking I would unjar the war file, remove some unecessary jars and exit the web.xml file. At least that seems like what would be needed. Brian -Original Message- From: Michael Oliver [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:38 AM To: 'Slide Users Mailing List' Subject: RE: Simplest config Brian, what is it in the standard distribution that you don't want/like? One could easily argue that the bundled tomcat/slide 2.0 does DAV support with authentication. There is more for sure, but also for sure you can have it up and running, let users upload a few html pages and images and map Apache or IIS to the content store and you have what you want. Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 89115 Phone:(702)643-7425 Fax:(520)844-1036 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Brian Andrus [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:05 AM To: 'Slide Users Mailing List' Subject: Simplest config I am new to slide and have been mostly figuring it out thru RTFM, FAQs, etc. I was wondering, however, if there was a source for the simplest config so slide will merely provide DAV support with authentication. Nothing more. I just want folks to be able to upload a few html pages and images. Thanks in advance for any info! Brian Andrus FirstSpot, Inc. (310) 899-WiFi [EMAIL PROTECTED] http://www.firstspot.net http://www.firstspot.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lock owners not returned with lock properties in 2.1b1??
Warwick, Can you provide a patch for this? Thanks. -James Warwick Burrows wrote: Looking for CDATA node types works. I just added it as an OR condition. This problem may have arisen for me since we use numerical owner codes and perhaps the server decided to wrap it in a CDATA definition for that reason... I don't know. Warwick -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 2:26 PM To: 'Slide Users Mailing List' Subject: RE: lock owners not returned with lock properties in 2.1b1?? I've tracked this down to the code that processes lockdiscovery properties returned in the propfind. There is a call to DOMUtils.getTextValue() in LockDiscoveryProperty.java and this call is returning NULL instead of the CDATA that was returned by the server in the D:owner element. Its because the code is checking whether the element is a text node and only returning the value if it is. Since the D:owner contains CDATA its not matching and returning a NULL result instead. If anyone has already fixed this then let me know otherwise I'm going to see whether changing getTextValue() to look for CDATA nodes as well will fix it. Warwick -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 10:30 AM To: 'Slide User Group ([EMAIL PROTECTED])' Subject: lock owners not returned with lock properties in 2.1b1?? Hi, It seems that lock owners are not returned from the server with the other lock information any more. I've seen this from the CLI and from within my own application. I noticed it when the application that I had working with 2.1M1 stopped working with 2.1B1. When I lock a resource with an owner using -oname the command succeeds and a locktoken comes back. But when I run locks on the object the owner name is empty. Has anyone else seen this problem or can suggest why this is happening? I'm running with security checking disabled but I don't see why that would affect locking which is enabled. Thanks, Warwick - 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: A question on security configuration
Ok, so you don't like my ideas :). I've never played with namespaces, so that could be a good option and I wouldn't know it :). However, since security is controlled in the slide.properties file you're probably going to need a completely separate instance of Slide. So my *new* suggestion is to try running two instance of Slide in a cluster, one with security and the other without. There's info for how to configure this on the Wiki. Clustering is very untested at this point, so if you've got the time it would be great if you could put it through its paces :). -James Ritu Kedia wrote: Thanks for the reply James. Your approach has 2 problems: 1. The most important one is : I want to avoid slide security checks for performance reasons and specially since I am already doing the authorization, I definitely want to avoid slide side overhead. 2. Even if I ignore performance, I still face a problem with the user info logging against every activity. In other words I lose the information about who uploaded the file/locked it/checked it in. What about the namespace solution... is it possible to configure different security properties for a different namespace in the same App Server instance? Or could you suggest some other alternate whereby I could turn off security checks when accessed from a particular client? Regards, Ritu -Original Message- From: James Mason [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:28 PM To: Slide Users Mailing List Subject: Re: A question on security configuration Ritu, One option might be to have a user account with all access to every node in your store and always use that account when connecting with your application. -James Ritu Kedia wrote: I am using Slide in 2 modes: 1. From within my Application, in which case my application acts as the entry point for a client. 2. From a third party client, in which case Slide is the entry point for the client. Slide is accessed from within my application using the Slide WebDAV client lib. Whereas it is accessed from the third party client via WebDAV (e.g. WebFolders in MS). In both these cases, the authentication is done using JAAS. And authorization depends on the mode of access. When accessed from within my application, the authorization will be done by my application but when accessed directly from a 3rd party client, the authorization should be done by Slide's security support. In other words, my requirement is to turn off Slide's security in one mode and turn it on in the other mode. Both modes would be active simultaneously. Could someone please provide me any hints/help with designing a solution for the above requirement? One thought is to have 2 different namespaces, one for each of the above mode. Both these namespaces would access the same store but would have different security configurations. Is this achievable? I think this depends on whether slide.properties is applicable per namespace or per domain. If anyone has implemented such a solution, then please do let me know. Regards, Ritu - 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]
Re: When setting up the webdavResource, How do I set custom properties.
Michel, I know what you mean about frustration :). Here's some code that may help. No guarantees, but I'll try to help you through any kinks if it doesn't work. -- String user = root; String pass = root; String url = http://localhost:8080/slide/;; Vector propnames = new Vector(); propnames.add( new PropertyName(http://schemas.microsoft.com/hotmail/;, adbar)); propnames.add( new PropertyName(urn:schemas:httpmail:, contacts)); propnames.add( new PropertyName(urn:schemas:httpmail:, inbox)); propnames.add( new PropertyName(urn:schemas:httpmail:, outbox)); propnames.add( new PropertyName(urn:schemas:httpmail:, sendmsg)); propnames.add( new PropertyName(urn:schemas:httpmail:, sentitems)); propnames.add( new PropertyName(urn:schemas:httpmail:, deleteditems)); propnames.add( new PropertyName(urn:schemas:httpmail:, drafts)); propnames.add( new PropertyName(urn:schemas:httpmail:, msgfolderroot)); propnames.add( new PropertyName( http://schemas.microsoft.com/hotmail/;, maxpoll)); propnames.add( new PropertyName(http://schemas.microsoft.com/hotmail/;, sig)); HttpURL httpURL = new HttpURL(url); httpURL.setUserinfo(user,pass); WebdavResource res = new WebdavResource(httpURL); Enumeration enum = res.propfindMethod(DepthSupport.DEPTH_0, propnames); while (enum.hasMoreElements()) { System.out.println(); ResponseEntity ent = (ResponseEntity)enum.nextElement(); System.out.println(href: + ent.getHref()); Enumeration props = ent.getProperties(); while (props.hasMoreElements()) { System.out.println( ((Property)props.nextElement()).getPropertyAsString()); } } -- -James Michel Bohn wrote: Thanks for both of your responses. I got the body to set correctly. I am really struggling here. I am sure you both have been to the point where even pounding your head on the wall doesn't work. Could you provide me with a snippet of code that would create a request like the one below. The default properties don't work for this server so it fails. I can't find any working examples on the web and don't want to have to extend any classes if I don't have to. It seems that if I set up my resource wdr = new WebdavResource(HUrl); it uses the DEFAULT action to set properties. You can also specify ALL and BASIC and maybe a few others when instantiating. What if those aren't what I need? I must not be understanding this properly, It can't be this difficult. I have custom properties that need to be set for the instatiating of the webdavresource. ***THIS IS WHAT MY INITIAL REQUEST SHOULD LOOK LIKE*** PROPFIND /svcs/hotmail/httpmail.asp HTTP/1.1\r\n Host: services.msn.com\r\n Content-Length: 343\r\n Content-Type: text/xml\r\n User-Agent: Outlook Express/5.5 (MSIE 5.0; Windows 98; TmstmpExt)\r\n \r\n ?xml version=1.0? D:propfind xmlns:D=DAV: xmlns:h=http://schemas.microsoft.com/hotmail/; xmlns:hm=urn:schemas:httpmail: \tD:prop \t\th:adbar/ \t\thm:contacts/ \t\thm:inbox/ \t\thm:outbox/ \t\thm:sendmsg/ \t\thm:sentitems/ \t\thm:deleteditems/ \t\thm:drafts/ \t\thm:msgfolderroot/ \t\th:maxpoll/ \t\th:sig/ \t/D:prop /D:propfind ***THIS IS WHAT IT LOOKS LIKE *** PROPFIND /cgi-bin/hmdata HTTP/1.1 Content-Type: text/xml; charset=utf-8 User-Agent: Jakarta Commons-HttpClient/2.0final Host: oe.hotmail.com Content-Length: 207 Depth: 0 ?xml version=1.0 encoding=utf-8 ? D:propfind xmlns:D=DAV: D:prop D:displayname/ D:getcontentlength/ D:getcontenttype/ D:resourcetype/ D:getlastmodified/ D:lockdiscovery/ /D:prop /D:propfind Thank you for your patience. Michel Bohn James Mason wrote: Ya, it's strange that there's a Content-Length header but no body information. Maybe try specifying the properties you want when you make your propfind request. The first step is going to be getting an actual request body to be generated. Then you can work on getting it looking right. -James Ingo Brunberg wrote: You can of course request those custom properties with WebdavResource. But I guess your problem is still not solved. If you have a look at the request you generated you will see that it is missing the request body. You got a URIException, right? So again, please check your username. Ingo James, Thanks for your response on the webdavResource error (previous post title - Re: PLEASE HELP WebdavResource init error, invalid port number.) I monitored the packets using Ethereal and found that my request and the request the webdav server wants were different. My inital request has to have xml data as indicated below as well as some properties that are different from the 'vanilla' properties that are passed to the webdav server when the resource is constructed. Do I have to extend the session and create my own resource to accomplish this or can I
Can WebDAV servlet serve non-slide-managed filesystem?
I've been reading the slide docs, have set up the slide server and have WebDAV working for accessing files in slide. I have been unable to definitively answer the following question. Hopefully someone on this list can answer it. Can the slide WebDAV servlet be configured to serve an existing directory on the filesystem? What I have found is that you can set up a slide filestore and store files in it, but you cannot create a slide filestore from an existing filesystem directory. Slide needs to store all kinds of metadata to do its job and the webdav servlet can only serve a slide filestore. Is this right? If not, what would I need to do to get the slide webdav servlet serving say, /home/alon/public_html/, where I have a bunch of directories and files in that location already? I understand that a limited set of the WebDAV protocol will be supported. I've also looked at the tomcat webdav servlet but it has several issues. First, it can only serve the webapp root in which it is loaded. It is also dependent on many tomcat core classes. I would like to be able to deploy on a range of application servers. Thanks, Alon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simplest config
Brian, If you needing something simple that works, I'd go with Ingo's suggestion of the webdav servlet that ships with Tomcat. It's worked quite well for me. If what you're wanting is the simplest config of Slide possible so that you can play with it and slowly enable features then look for a file called slide.properties in the slide-kernel jar file. Change anything that's set to true to false. That makes Slide about as featureless as it gets. -James Brian Andrus wrote: That's just it, I am a newbie on this and don't know for certain what might exist that could be exploited. So my take is to remove anything that is not required. Holdover from database normalization practices, I guess. So I guess a more appropriate question would be: What can be removed that is not needed to provide nothing more than DAV with authentication? I was thinking I would unjar the war file, remove some unecessary jars and exit the web.xml file. At least that seems like what would be needed. Brian -Original Message- From: Michael Oliver [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:38 AM To: 'Slide Users Mailing List' Subject: RE: Simplest config Brian, what is it in the standard distribution that you don't want/like? One could easily argue that the bundled tomcat/slide 2.0 does DAV support with authentication. There is more for sure, but also for sure you can have it up and running, let users upload a few html pages and images and map Apache or IIS to the content store and you have what you want. Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 89115 Phone:(702)643-7425 Fax:(520)844-1036 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Brian Andrus [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 8:05 AM To: 'Slide Users Mailing List' Subject: Simplest config I am new to slide and have been mostly figuring it out thru RTFM, FAQs, etc. I was wondering, however, if there was a source for the simplest config so slide will merely provide DAV support with authentication. Nothing more. I just want folks to be able to upload a few html pages and images. Thanks in advance for any info! Brian Andrus FirstSpot, Inc. (310) 899-WiFi [EMAIL PROTECTED] http://www.firstspot.net http://www.firstspot.net/ - 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: Having problem in using Slide's Bind function
At last, we decide to take use of the LinkNode feature instead of Binding, seems linknode works well and can satisfy our needs. - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
RE: A question on security configuration
I very much appreciate your taking the time to think about the different issues that people have (I have seen you giving great suggestions on a lot of other issues too). Definitely thanks for your help. The second suggestion that you gave below about clustering, is exactly what I was thinking of. But as you pointed out that it is a new feature and *very untested*, I would opt for that solution as a last resort. At this point I am looking for a very quick and sure shot solution. I was just hoping that may be slide.properties could be configured per namespace. Alas I don't think thats possible, at least with the current implementation. One question on performance impact due to security checks: what is the most time consuming aspect of slide security? Is it the enumeratePermissions method? Regards, Ritu -Original Message- From: James Mason [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 9:42 AM To: Slide Users Mailing List Subject: Re: A question on security configuration Ok, so you don't like my ideas :). I've never played with namespaces, so that could be a good option and I wouldn't know it :). However, since security is controlled in the slide.properties file you're probably going to need a completely separate instance of Slide. So my *new* suggestion is to try running two instance of Slide in a cluster, one with security and the other without. There's info for how to configure this on the Wiki. Clustering is very untested at this point, so if you've got the time it would be great if you could put it through its paces :). -James Ritu Kedia wrote: Thanks for the reply James. Your approach has 2 problems: 1. The most important one is : I want to avoid slide security checks for performance reasons and specially since I am already doing the authorization, I definitely want to avoid slide side overhead. 2. Even if I ignore performance, I still face a problem with the user info logging against every activity. In other words I lose the information about who uploaded the file/locked it/checked it in. What about the namespace solution... is it possible to configure different security properties for a different namespace in the same App Server instance? Or could you suggest some other alternate whereby I could turn off security checks when accessed from a particular client? Regards, Ritu -Original Message- From: James Mason [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:28 PM To: Slide Users Mailing List Subject: Re: A question on security configuration Ritu, One option might be to have a user account with all access to every node in your store and always use that account when connecting with your application. -James Ritu Kedia wrote: I am using Slide in 2 modes: 1. From within my Application, in which case my application acts as the entry point for a client. 2. From a third party client, in which case Slide is the entry point for the client. Slide is accessed from within my application using the Slide WebDAV client lib. Whereas it is accessed from the third party client via WebDAV (e.g. WebFolders in MS). In both these cases, the authentication is done using JAAS. And authorization depends on the mode of access. When accessed from within my application, the authorization will be done by my application but when accessed directly from a 3rd party client, the authorization should be done by Slide's security support. In other words, my requirement is to turn off Slide's security in one mode and turn it on in the other mode. Both modes would be active simultaneously. Could someone please provide me any hints/help with designing a solution for the above requirement? One thought is to have 2 different namespaces, one for each of the above mode. Both these namespaces would access the same store but would have different security configurations. Is this achievable? I think this depends on whether slide.properties is applicable per namespace or per domain. If anyone has implemented such a solution, then please do let me know. Regards, Ritu - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help: How to configure dynamic SCOPE
Mihir, It looks like you need to modify WebdavServletConfig.getScope(). Maybe you could use some sort of expression language to make the scope really configurable :). -James Mihir Solanki wrote: Hi, I want to configure the scope variable in web.xml which is not fixed but dynamic. The value of this variable depends on the user who gets logged in. So I would like to set it something like /users/${1} where ${1} should be replaced with the logged in user. By doing this the user who gets log-in can only see his folder and not other users Please guide me how it is possible (by configuration or by changing the code also) Thanks Mihir *Sr. Software Engineer* *SBU: eBiz, Gandhinagar* * * /Imaginations... its limits are only those of the mind itself/ _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this 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: A question on security configuration
Ritu Kedia wrote: I very much appreciate your taking the time to think about the different issues that people have (I have seen you giving great suggestions on a lot of other issues too). Definitely thanks for your help. Thanks! I appreciate the compliment. The second suggestion that you gave below about clustering, is exactly what I was thinking of. But as you pointed out that it is a new feature and *very untested*, I would opt for that solution as a last resort. At this point I am looking for a very quick and sure shot solution. I was just hoping that may be slide.properties could be configured per namespace. Alas I don't think thats possible, at least with the current implementation. One question on performance impact due to security checks: what is the most time consuming aspect of slide security? Is it the enumeratePermissions method? I think the problem is more with Security.hasPermission() since it iterates through all of the inheritted permissions. I could be wrong, though. Maybe someone else can shed some light on this. -James Regards, Ritu -Original Message- From: James Mason [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 9:42 AM To: Slide Users Mailing List Subject: Re: A question on security configuration Ok, so you don't like my ideas :). I've never played with namespaces, so that could be a good option and I wouldn't know it :). However, since security is controlled in the slide.properties file you're probably going to need a completely separate instance of Slide. So my *new* suggestion is to try running two instance of Slide in a cluster, one with security and the other without. There's info for how to configure this on the Wiki. Clustering is very untested at this point, so if you've got the time it would be great if you could put it through its paces :). -James Ritu Kedia wrote: Thanks for the reply James. Your approach has 2 problems: 1. The most important one is : I want to avoid slide security checks for performance reasons and specially since I am already doing the authorization, I definitely want to avoid slide side overhead. 2. Even if I ignore performance, I still face a problem with the user info logging against every activity. In other words I lose the information about who uploaded the file/locked it/checked it in. What about the namespace solution... is it possible to configure different security properties for a different namespace in the same App Server instance? Or could you suggest some other alternate whereby I could turn off security checks when accessed from a particular client? Regards, Ritu -Original Message- From: James Mason [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:28 PM To: Slide Users Mailing List Subject: Re: A question on security configuration Ritu, One option might be to have a user account with all access to every node in your store and always use that account when connecting with your application. -James Ritu Kedia wrote: I am using Slide in 2 modes: 1. From within my Application, in which case my application acts as the entry point for a client. 2. From a third party client, in which case Slide is the entry point for the client. Slide is accessed from within my application using the Slide WebDAV client lib. Whereas it is accessed from the third party client via WebDAV (e.g. WebFolders in MS). In both these cases, the authentication is done using JAAS. And authorization depends on the mode of access. When accessed from within my application, the authorization will be done by my application but when accessed directly from a 3rd party client, the authorization should be done by Slide's security support. In other words, my requirement is to turn off Slide's security in one mode and turn it on in the other mode. Both modes would be active simultaneously. Could someone please provide me any hints/help with designing a solution for the above requirement? One thought is to have 2 different namespaces, one for each of the above mode. Both these namespaces would access the same store but would have different security configurations. Is this achievable? I think this depends on whether slide.properties is applicable per namespace or per domain. If anyone has implemented such a solution, then please do let me know. Regards, Ritu - 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]