Oracle Store - How to use - where to start

2004-08-27 Thread Dharmesh Rana
Hi,

Can some one please explain how to work with the Oracle Store.

I have installed / deployed slide.war (slide 2.1 b1) on WebLogic Server 8.1.
This slide server libraries also works fine with DAVExplorer Client.

I also created the db_scema on Oracle 8i.

Also, now the OracleRDBMSAdapter.java gets compiled and it does not give me
any error looking in to WebLogic's console.
So I suppose everything is set to work with the Oracle store.

Factually speaking, I have not understood the db_schema (tables and
triggers) that have been written for store.
Also, there is not any details / guidelines what is the usage of these
tables and how to use those.

Can somebody please point to the links where to start with the Oracle store
and how to test it?


Regards,


Dharmesh





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



RE: Copy Macro Issue

2004-08-27 Thread Andrey Shulinsky
Hi, Kiran!

I suspect that the incorrect behavior of the copy method might be just one
more consequence of the big flaw in Slide's architecture - some important
parts of WebDAV's logic (including versioning) are implemented in the
"wedav" layer only - see the org.apache.slide.webdav package and its sub
packages. That's why the majority of Slide users are working with the webdav
client and don't use the "core" API directly. However, we've chosen a
different approach and had to rewrite all required methods from the
org.apache.slide.webdav.method package so they can be used in isolation from
the web context. It's not an easy task (and I'm still not sure if we did
everything correctly! :) ) so you probably should go with the client and
ignore the core until it is rearchitected (in the 3d version, probably).
Indeed, if you use the COPY method to copy a resource, a non-versioned copy
of the resource is created if auto versioning is off and creates a versioned
copy if auto versioning is on - but it's VHR is not the same as that of the
original. This behavior is WebDAV-compliant, afaik.

Yours sincerely,
Andrey.

> -Original Message-
> From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 27, 2004 8:20 PM
> To: [EMAIL PROTECTED]
> Subject: Copy Macro Issue
> Importance: Low
> 
> I am facing issues with using copy macro for copying 
> versioned objects.
> Here
> is a sample scenario:
> 
>  
> 
> Original object:
> 
> Name: XYZ.doc
> 
> Number of Versions: 3 v1, v2 and v3
> 
> Checked-in property value: v3
> 
>  
> 
> 1. Copy the object using the copy macro. The Destination 
> copied object has the following properties:
> 
> Name: CopiedXYZ.doc
> 
> Checked-in property value: v3
> 
>  
> 
> The problem is both the original and the copied object are 
> referring to the same history node v3. 
> 
>  
> 
> 2. Add a new version v4 to the original object:
> 
> Name: XYZ.doc
> 
> Number of Versions: 4 v1, v2, v3 and v4
> 
> Checked-in property value: v4
> 
>  
> 
> 3. At this point the new (copied) object still has the 
> checked-in property as v3.
> 
> Name: CopiedXYZ.doc
> 
> Checked-in property value: v3
> 
> 4. Now try adding a new version to the new (copied) object. 
> This will throw a precondition violation say that checkouts 
> with descendants is not allowed.
> Since I am trying to check out v3, when there is already a 
> successor for v3, which is v4 created by the original object.
> 
>  
> 
> This seems a pretty basic flaw in the copy macro. Ideally it 
> should be creating new history nodes for the new (copied) 
> object. Is this a known issue? Does the copy macro does 
> support copying versioned objects? If it does, this problem 
> should be fixed. If it does not, it should not be copying 
> version related properties.
> 
>  
> 
> Thanks
> 
> Kiran


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



Copy Macro Issue

2004-08-27 Thread Kiran Patchigolla
I am facing issues with using copy macro for copying versioned objects. Here
is a sample scenario:

 

Original object:

Name: XYZ.doc

Number of Versions: 3 v1, v2 and v3

Checked-in property value: v3

 

1. Copy the object using the copy macro. The Destination copied object has
the following properties:

Name: CopiedXYZ.doc

Checked-in property value: v3

 

The problem is both the original and the copied object are referring to the
same history node v3. 

 

2. Add a new version v4 to the original object:

Name: XYZ.doc

Number of Versions: 4 v1, v2, v3 and v4

Checked-in property value: v4

 

3. At this point the new (copied) object still has the checked-in property
as v3.

Name: CopiedXYZ.doc

Checked-in property value: v3

4. Now try adding a new version to the new (copied) object. This will throw
a precondition violation say that checkouts with descendants is not allowed.
Since I am trying to check out v3, when there is already a successor for v3,
which is v4 created by the original object.

 

This seems a pretty basic flaw in the copy macro. Ideally it should be
creating new history nodes for the new (copied) object. Is this a known
issue? Does the copy macro does support copying versioned objects? If it
does, this problem should be fixed. If it does not, it should not be copying
version related properties.

 

Thanks

Kiran





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

Copy Macro Issue

2004-08-27 Thread Kiran Patchigolla
I am facing issues with using copy macro for copying versioned objects. Here
is a sample scenario:

 

Original object:

Name: XYZ.doc

Number of Versions: 3 v1, v2 and v3

Checked-in property value: v3

 

1. Copy the object using the copy macro. The Destination copied object has
the following properties:

Name: CopiedXYZ.doc

Checked-in property value: v3

 

The problem is both the original and the copied object are referring to the
same history node v3. 

 

2. Add a new version v4 to the original object:

Name: XYZ.doc

Number of Versions: 4 v1, v2, v3 and v4

Checked-in property value: v4

 

3. At this point the new (copied) object still has the checked-in property
as v3.

Name: CopiedXYZ.doc

Checked-in property value: v3

4. Now try adding a new version to the new (copied) object. This will throw
a precondition violation say that checkouts with descendants is not allowed.
Since I am trying to check out v3, when there is already a successor for v3,
which is v4 created by the original object.

 

This seems a pretty basic flaw in the copy macro. Ideally it should be
creating new history nodes for the new (copied) object. Is this a known
issue? Does the copy macro does support copying versioned objects? If it
does, this problem should be fixed. If it does not, it should not be copying
version related properties.

 

Thanks

Kiran





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

Re: Can WebDAV servlet serve non-slide-managed filesystem?

2004-08-27 Thread James Mason
NodeStore and ContentStore should be enough for what you're wanting. You 
may also need to implement NodeRevisionDescriptorsStore (note the extra 
's'), but that one's a gimme.

Take a look at the JNDIPrincipalStore from the 2.1 milestones for an 
example of Store that doesn't implement most of the features :). You 
should be able to use the Memory stores (also 2.1) for the other *Store 
interface that you don't implement. This will let you have the other 
features, the data just won't persist between restarts.

-James
alon salant wrote:
I'm definitely game to try.
http://jakarta.apache.org/slide/javadoc/org/apache/slide/store/Store.html
Are we talking about implementing the Store interface with no-ops for
many of the methods?
Alon
On Thu, 26 Aug 2004 23:43:39 -0700, James Mason <[EMAIL PROTECTED]> wrote:
Alon,
I know what you mean. You know if you're not needing anything fancy it
shouldn't be that hard to write a really simple filesystem Store for
Slide. You could probably ignore locking, metadata, security and
transactions, and since those are the complicated bits it should go
quite fast :). I can try to walk you through it if you're interested.
-James

alon salant wrote:
Thanks for confirming my understanding.
I'm hoping to have WebDAV running within my webapp because I already
manage user authentication in Java and would like to apply the same
container-managed security my WebDAV implementation. I'm actually
surprised not to find a simple webdav servlet impementation
independent of application server platform or framework (slide).
Alon
On Wed, 25 Aug 2004 22:46:05 -0700, James Mason <[EMAIL PROTECTED]> wrote:

Alon,
I can't think of any way to get Slide to do this (maybe someone else
can, though). The TxFile Store implementation uses xml files to store
the structure of the repository, so I don't see any way to get this to
use an existing structure in the filesystem.
You could write a really Store implementation that either ignores
metadata or stores it in some sort of .meta file.
You might also look into using Apache HTTP Server's mod_dav module. It
should do what you need and is very cross-platform.
-James

alon salant wrote:

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]

-
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: CVS label for the Slide 2.1 beta?

2004-08-27 Thread James Mason
Bug fixes should be in the 2.1 Release branch. If there are bug fixes 
that are only in HEAD someone needs to get a scolding :). There may be 
some new feature in HEAD that won't be part of the 2.1 release, but 
otherwise you're certainly free to use that code.

It would be best (for the community) if you used the 2.1 release branch, 
since that should help work as many bugs out of it as possible. If you 
see any bug fixes that have been applied to HEAD but not the release 
branch let me know and I'll merge them.

-James
Warwick Burrows wrote:
Ok. I thought that updating the tree would be enough to pick those extra
branches up but it wasn't :-)  I finally stumbled upon the way to do it and
added the extra labels to my choices.
So given that, where should I be picking up 2.1 bug fixes? From the
SLIDE_2_1_RELEASE_BRANCH or from the HEAD? I compared the two and the HEAD
has the latest rev numbers (obviously) and some changes that aren't in the
SLIDE_2_1_RELEASE_BRANCH. I saw a bug fix to the DB2 adapter in there for
instance. So is the HEAD the one to pull updates from?
Thanks,
Warwick

-Original Message-
From: Warwick Burrows 
Sent: Friday, August 27, 2004 10:52 AM
To: 'Slide Users Mailing List'
Subject: RE: CVS label for the Slide 2.1 beta?


James, I'm using the eclipse CVS client (v2.1.1 it seems) and it doesn't
show either of these branches or labels. I'm connecting with
:pserver:[EMAIL PROTECTED]:/home/cvspublic. The only branches it lists
are: 

	SLIDE_1_0
	SLIDE_2_0_RELEASE_BRANCH 
	SLIDE_2_1_EXTERNAL_TX

There are more "versions" listed - which may correspond to labels - but the
latest for 2.1 is SLIDE_2_1_M1_RELEASE.  Why am I not seeing these other
branches??
Thanks,
Warwick

---
 Warwick Burrows  E2open
 Senior Engineer  9600 Great Hills Trail, #325
 http://www.e2open.comAustin TX 78759
---
-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 27, 2004 1:30 AM
To: Slide Users Mailing List
Subject: Re: CVS label for the Slide 2.1 beta?

Warwick,
We're working off the SLIDE_2_1_RELEASE_BRANCH. There's also a 
SLIDE_2_1_BETA1_RELEASE version, if you want a snapshot.

If you're using Eclipse be sure to update your branches and version to 
get the latest ones. There's instructions on the Slide site for doing 
this if you've forgotten how (I know I have several times).

-James
Warwick Burrows wrote:
What's the label in CVS that signifies the 2.1 beta release?  I don't 
see one in there that stands out.

Thanks,
Warwick

--
--
Warwick Burrows
Senior Software Engineer



*Email: [EMAIL PROTECTED] 
*Fax:   *512.343.8727



9600 Great Hills Trail, #325
Austin, TX  78759
http://www.e2open.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]

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


Re: property-search in database-store?

2004-08-27 Thread James Mason
Some properties can get very long. 8000 may be enough, but I think it 
depends on how you're using Slide. Version numbers, for instance, just 
keep on getting larger if you have versioning enabled.

You can always modify the schema and try it. 8000 characters seems like 
it should be enough for most scenarios.

-James
Stefan Burkard wrote:
thanks for the answer james!
i need to check the security-issues myself in any case - in my actual 
case it's an "access-all-or-nothing-approach".

searching in the database works fine - except that the 
property-value-field is of the type "text" in ms-sqlserver. therefore it 
is not possible to compare or sort the fields in a query :-(

are 8000 characters (the capacity of a normal varchar-field in ms-sql) 
not enough for a webdav-property? :-)

greetings
stefan
James Mason wrote:
Searching the database should be no problem. Keep in mind though that 
you'll need to do security checks on the returned resources yourself. 
If you search through Slide it won't return resources the user doing 
the search doesn't have access to. Depending on your needs this may 
not be an issue.

Here's an example of some code to do a search through Slide:
---
String path = "/slide/files";
String query =
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"articles" +
"infinity" +
"" +
"" +
"" +
"TERMS" +
"" +
"" +
"";
SearchMethod method = new SearchMethod( path, query );
HttpURL httpURL = new HttpURL( "http://localhost:8080/slide/"; );
HttpClient client = new HttpClient();
client.setState(new WebdavState());
HostConfiguration hostConfig = client.getHostConfiguration();
hostConfig.setHost(httpURL);
Credentials hostCredentials =
new UsernamePasswordCredentials("john","john");
if (hostCredentials != null) {
HttpState clientState = client.getState();
clientState.setCredentials(null, httpURL.getHost(),
hostCredentials);
clientState.setAuthenticationPreemptive(true);
}
int state = client.executeMethod(method);
System.out.println( "State: " + state );
Header[] headers = method.getResponseHeaders();
for ( int i = 0; i < headers.length; i++ ) {
System.out.println( headers[i].toString() );
}
Enumeration enum = method.getAllResponseURLs();
while ( enum.hasMoreElements() ) {
System.out.println( enum.nextElement() );
}

-James
Stefan Burkard wrote:
hi slide-users
i'm fighting around with the dasl-search in a slide-repository. so 
first of all i would be glad to find a code-example how to create the 
http-request with jakarta http-client to do a dasl-search :-)

additionally i was looking around for alternatives. since i'm putting 
all except content in a jdbc-store, i found all property-values in 
the database...

would it be a bad idea to search directly in the database for the 
documents that match on specific property-values?

i get to this because an additional problem is, that the website who 
provides the search-form is built with macromedia coldfusion. so i 
would need to build the request and "transform" the response of a 
dasl-search with this scripting-language.
in contrast the database-connection and sql-based search is very easy.

greetings
stefan burkard
-
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: CVS label for the Slide 2.1 beta?

2004-08-27 Thread Warwick Burrows

Ok. I thought that updating the tree would be enough to pick those extra
branches up but it wasn't :-)  I finally stumbled upon the way to do it and
added the extra labels to my choices.

So given that, where should I be picking up 2.1 bug fixes? From the
SLIDE_2_1_RELEASE_BRANCH or from the HEAD? I compared the two and the HEAD
has the latest rev numbers (obviously) and some changes that aren't in the
SLIDE_2_1_RELEASE_BRANCH. I saw a bug fix to the DB2 adapter in there for
instance. So is the HEAD the one to pull updates from?

Thanks,
Warwick



-Original Message-
From: Warwick Burrows 
Sent: Friday, August 27, 2004 10:52 AM
To: 'Slide Users Mailing List'
Subject: RE: CVS label for the Slide 2.1 beta?



James, I'm using the eclipse CVS client (v2.1.1 it seems) and it doesn't
show either of these branches or labels. I'm connecting with
:pserver:[EMAIL PROTECTED]:/home/cvspublic. The only branches it lists
are: 

SLIDE_1_0
SLIDE_2_0_RELEASE_BRANCH 
SLIDE_2_1_EXTERNAL_TX

There are more "versions" listed - which may correspond to labels - but the
latest for 2.1 is SLIDE_2_1_M1_RELEASE.  Why am I not seeing these other
branches??

Thanks,
Warwick



---
 Warwick Burrows  E2open
 Senior Engineer  9600 Great Hills Trail, #325
 http://www.e2open.comAustin TX 78759
---


-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 27, 2004 1:30 AM
To: Slide Users Mailing List
Subject: Re: CVS label for the Slide 2.1 beta?


Warwick,

We're working off the SLIDE_2_1_RELEASE_BRANCH. There's also a 
SLIDE_2_1_BETA1_RELEASE version, if you want a snapshot.

If you're using Eclipse be sure to update your branches and version to 
get the latest ones. There's instructions on the Slide site for doing 
this if you've forgotten how (I know I have several times).

-James

Warwick Burrows wrote:
>  
> What's the label in CVS that signifies the 2.1 beta release?  I don't 
> see one in there that stands out.
>  
> Thanks,
> Warwick
>  
> 
> 
> 
> --
> --
> 
> Warwick Burrows
> Senior Software Engineer
> 
>   
> 
>  
> 
>   
> 
> *Email: [EMAIL PROTECTED] 
> *Fax:   *512.343.8727
> 
>   
> 
>  
> 
>   
> 
> 9600 Great Hills Trail, #325
> Austin, TX  78759
> http://www.e2open.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]



RE: Slide fixes to be reviewed

2004-08-27 Thread Warwick Burrows

Those patches are submitted with defect numbers: 30900, 30902, 30903, 30904
and 30907.

Warwick


-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 27, 2004 6:17 AM
To: [EMAIL PROTECTED]
Subject: Re: Slide fixes to be reviewed


I'm pretty sure there's no bug related to spaces in pathnames in
WebdavResource. But the commmand line client and the LockMethod may well
have problems.

I will have a look at the patches as soon as Warwick submits them.

Ingo

> Hi
> I was having trouble with pathnames and spaces too, i'm designing an 
> app, and started by implementing the methods on top of the slide 
> client, but some didn't seem to work at all. Later i associated the 
> bad behaviour with the spaces in the filenames. For instance, using 
> the commandline client I'm getting this error when i try to do some 
> operations on a pathname that contains spaces:
> 
> "[LOCALHOST:/slide/files/Folhas Soltas/] C:\ $ report tabacaria.txt 
> Getting version-tree Report of '/slide/files/Folhas 
> Soltas/tabacaria.txt':
> Error: escaped absolute path not valid"
> 
> I suppose this is connected to the bug you refered in 
> "WebdavResource.java"? This error of course doesn't show up when there 
> aren't any spaces in the pathname. Do you think these patches will 
> solve the problem? please submit them quickly :)
> 
> Thanks again
> 
> -Original Message-
> From: James Mason [mailto:[EMAIL PROTECTED]
> Sent: sexta-feira, 27 de Agosto de 2004 7:39
> To: Slide Users Mailing List
> Subject: Re: Slide fixes to be reviewed
> 
> 
> Warwick,
> Bugzilla is the best option for submitting fixes. It makes it easier 
> to
> track which fixes have been applied and which are pending.
> 
> It's a bit of work, but if you can create a bug for each change you've
> made that will be the easiest to keep track of. Otherwise just create a 
> single bug and attach all your changes and we'll keep track of what's 
> been done in the comments.
> 
> Thanks for doing this, btw. I absolutely love it when someone submits 
> a
> bug *with* a patch :).
> 
> -James
> 
> Warwick Burrows wrote:
> > Hi James,
> > 
> > I actually have a number of fixes that I've made to get Slide 
> > working in
> my
> > configuration. I'd like to submit them all but would like to have 
> > them reviewed by a slide contributor first to make sure that they 
> > are ok.  How
> do
> > I get them to the list as I haven't been able to send a zip or tar 
> > file attachment as they get bounced.
> > 
> > Here's a summary of each change for context:
> > 
> > 
> > WebdavResource.java:
> > ---
> > - Found a problem establishing "existence" of paths with spaces in 
> > them. Eg. "My Files". The path coming back from the server was 
> > escaped and
> > getPath() returns an unescaped string. Was failing to set existence as a
> > result. Decode and compare the two on a common basis.
> > - got a "wild-hare" about the the way a trailing '/' on one of the
> > paths is dealt with so I changed it to make it a little faster and skips
> > cases where the strings are definitely not equal regardless of the '/'.
> > - added a lockMethod with a depth parameter to lock subdirs and
> > their children.
> > - added discoverOwnLocks with an owner parameter to get locks for a
> > specific user and which is not the user in my client context (ie. no
authn
> > or authz is being used).
> > 
> > 
> > LockMethod.java:
> > 
> > - similar to existence prob in WebdavResource.java for paths with 
> > spaces. The lock is stored in the hashmap by parseResponse with an 
> > escaped path. The check for existence of a lock on the resource uses 
> > an unescaped path so it wouldn't find the lock. I changed it to add 
> > the lock to the hashmap with the unescaped path so that its found.
> > 
> > 
> > DOMUtils.java:
> > --
> > - lock owner not being read out of response from server because 
> > owner value was "escaped" using CDATA decl. DOMUtils was only 
> > looking for text responses.
> > 
> > 
> > Client.java:
> > 
> > - couple of simple checks for null object refs.
> > 
> > 
> > DB2RDBMSAdapter:
> > 
> > - check for null ref in case of empty result.
> > - override CommonRDBMSAdapter version of
> > convertRevisionNumberToComparable() with one using SQL functions 
> > supported by DB2.
> > 
> > 
> > Thanks,
> > Warwick
> > 
> > 
> > -Original Message-
> > From: James Mason [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 25, 2004 10:43 PM
> > To: Slide Users Mailing List
> > Subject: 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 

Re: download-gateway for slide-documents

2004-08-27 Thread Andreas Probst
You could use the WebDAV client API or the Jakarta Commons HTTP 
client to connect to Slide from your service. Get the 
InputStream and copy it to the OutputStream of the user's 
request. Of course Slide must be accessible for the service, not 
for the users.

Things become interesting when you implement unbuffered 
streaming of the content and support chunked transfer-encoding 
etc.

Regards,

Andreas


On 27 Aug 2004 at 18:15, Stefan Burkard wrote:

> hi slide-users
> 
> summary about my situation:
> first of all, i have a slide-installation that runs in tomcat on a 
> webserver. there is NO direct access for anybody (because 
> user-management is already done outside of slide).
> all except content is stored in a database on a db-server. content is 
> stored in the filesystem of the webserver
> 
> additionally i have an existing website that is driven by macromedia 
> coldfusion. authenticated users can access some extra pages to search 
> and download documents - and these documents are stored in slide
> 
> i realised the search for documents with a direct search in the 
> slide-metadata (in the database); thats running fine. with this search i 
> can show a list of documents, stored in slide, that match the 
> search-criteria.
> 
> the remaining problem is now: how can i give the users the possibility 
> to download a document "out of slide" when theres no access to slide?
> 
> best way would be if i could read the document in any way and then 
> "connect" the http-request of the user with this "bytestream". so lets 
> call it a download-gateway for slide-documents.
> 
> is there anything in slide that could help me for this case? i even hope 
> anybody understands what i mean :-)
> 
> greetings
> 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]



RE: A question on security configuration

2004-08-27 Thread Andreas Probst
On 27 Aug 2004 at 13:19, Ritu Kedia wrote:

> :( ... The distinguishing factor in my requests is neither the user
> credential nor the resource being accessed. The same user should be able to
> access the Slide Repository either via my WebService or via
> MS-Word/Excel/etc. I.e. The same user could access the same resource in
> either mode. When accessed via WebService, my application is doing the
> authorization. When accessed directly, I would have to override the default
> slide security implementation with my custom implementation.

Can't you develop your HTTP application as a WebDAV client
talking to Slide. You would use the login name and the password
of the HTTP user to connect to Slide via WebDAV. So the
information about who did the PUTs etc. wouldn't be lost. You
would not need to implement the Security yourself. WebDAV users
(Word) would talk to Slide directly.

Actually checking the security stuff is not that expensive,
although this probably depends on the number of ACLs on the
path. You should be more concerned about performance when you
get big directories, i.e. with more than thousand children. If
you use DeltaV the /history folder could become a performance
issue very soon.

Maybe you've already explained why this is not possible for you,
if so please excuse this remark...

Regards,

Andreas

>
> I think I would have to try the clustering solution only with my custom
> security implementation (since the direct slide access should also follow
> the same security checks as done in my application). But I won't be able to
> get to it may be for another month.
> A couple of questions regarding custom security implementation...
> 1. Is the security implementation class configurable via Domain.xml? There
> is a security store configuration in Domain.xml but I haven't seen the entry
> for the security helper class.
> 2. Which methods would have to be implemented if I am interested only in the
> authorization checks and not the assignments?
>
> Thanks,
> Ritu
>
> -Original Message-
> From: James Mason [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 11:44 AM
> To: Slide Users Mailing List
> Subject: Re: A question on security configuration
>
>
> Done a little more thinking about this. I think separate namespaces
> sounds like a good idea, but there may be a problem. Since the Store
> configurations are per-namespace it's likely that the ExtendedStore
> cache will be per namespace as well. If this is the case then you're
> back to a situation where you'll need clustering to keep the caches in
> sync. Unless you really want everything to run in the same webapp you'd
> probably be better off just running a cluster with two nodes.
>
> Stefan's suggestion gave me an idea, though (several actually). What you
> really need is a way to bypass the security checks in SecurityImpl based
> on some aspect of the request. I went through several ideas involving
> extending WebdavServelt or Domain to provide different
> NamespaceAccessTokens with different Security implementations based on
> where the request came from. This should be viable, but as I was writing
> this I realized that simply providing your own Security implementation
> that always returned true for a specific user should be enough. You'll
> still need to authenticate to the app server as that user, but since the
> Security implementation doesn't actually do any checking it should speed
> things up. For requests that aren't from the special user come in your
> implementation can just call ACLSecurityImpl (or another implementation)
> to do the checking, which should add very little overhead to the
> existing system.
>
> -James
>
> Ritu Kedia wrote:
> >>>BTW how does JAAS decide what client currently accesses the webdav
> server?
> >
> >
> > JAAS can't detect that. In my case below I would have distinguished
> between
> > the 2 modes by the namespace (if that solution was possible).
> >
> > Regards,
> > Ritu
> >
> > -Original Message-
> > From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 26, 2004 2:50 PM
> > To: Slide Users Mailing List
> > Subject: Re: A question on security configuration
> >
> >
> >
> > I recently thought about a "scoped SecurityImpl" because we want
> > to have different security checking mechanics on different scopes.
> > On one scope we want to use Slides ACL Security and on an other
> > we want to use the Security checking of our own system.
> >
> > We could of course have a SecurityImpl that permits all actions.
> >
> > But I'm not sure that meets your problem, because your need to use
> > different scopes.
> >
> > BTW how does JAAS decide what client currently accesses the webdav server?
> >
> > Regards, Stefan
> >
> > 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
> >
> >

Re: Mac OS X and Slide

2004-08-27 Thread kranga
Yes, its called a "lock-null" resource. The idea is that you can reserve a
name for future use. You can PUT and MKCOL against it (ans also execute
OPTION, PROPFIND I think) but cannot do anything else. Look at the section
"Locks and Null resources" or something to that effect ...

- Original Message - 
From: "Ben Pillet" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 27, 2004 2:42 PM
Subject: Re: Mac OS X and Slide


> I just wrote a unit test that tries to lock a
> nonexistent file on the server.  The HTTP return
> status is 200 and the body of the response is:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> infinity
> 
> Infinite
> 
>
> opaquelocktoken:7e197bc32f27bc94cbab9b0663037a81
> 
> 
>
> /swirl/unauthenticated
> 
> 
> 
> 
>
>
> Is that supposed to happen when you lock a nonexistent
> file?
> http://webdav.org/specs/rfc2518.htm#rfc.section.8.10.7
> didn't seem to specify a more appropriate response.
>
> Ben
>
> --- Ben Pillet <[EMAIL PROTECTED]> wrote:
>
> > Just downloaded 2.1b1 Tomcat 5 and got the same
> > error.
> > Steps I did:
> > 1. startup server
> > 2. connect to server:8080/slide as root on Windows
> > XP
> > machine
> > 3. put MS Word file on server in /files folder
> > 4. connect to server:8080/slide as root on Mac OS X
> > 10.3.4 (shows up in Finder just fine)
> > 5. Click to open MS Word file on mac.
> > Log in Tomcat window looks like:
> > 
> > Aug 27, 2004 11:05:54 AM
> > org.apache.coyote.http11.Http11Protocol init
> > INFO: Initializing Coyote HTTP/1.1 on port 8080
> > Aug 27, 2004 11:05:54 AM
> > org.apache.catalina.startup.Catalina load
> > INFO: Initialization processed in 1437 ms
> > Aug 27, 2004 11:05:54 AM
> > org.apache.catalina.core.StandardService start
> > INFO: Starting service Catalina
> > Aug 27, 2004 11:05:54 AM
> > org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
> > 27 Aug 2004 11:05:54 -
> > org.apache.slide.common.Domain
> > - INFO - Auto-Initializing
> >  Domain
> > 27 Aug 2004 11:05:54 -
> > 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,
> > org.apache.slide.domain=../slide/Domain
> > .xml}
> > 27 Aug 2004 11:05:54 -
> > org.apache.slide.common.Domain
> > - INFO - Initializing Doma
> > in
> > 27 Aug 2004 11:05:54 -
> > 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,
> > org.apache.slide.domain=../slide/Domain
> > .xml}
> > 27 Aug 2004 11:05:54 -
> > 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}
> > 27 Aug 2004 11:05:54 -
> > org.apache.slide.common.Domain
> > - INFO - Initializing name
> > space : slide
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO - Loading
> > namesp
> > ace slide parameters
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO - Loading
> > namesp
> > ace definition
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO -
> > nodestore:
> > org
> > .apache.slide.store.txfile.TxXMLFileDescriptorsStore
> > 27 Aug 2004 11:05:55 - file-meta-store - INFO - File
> > Store configured to store/m
> > etadata, working directory work/metadata
> > 27 Aug 2004 11:05:55 - file-meta-store - INFO - Set
> > timeout to 120
> > 27 Aug 2004 11:05:55 - file-meta-store - INFO -
> > Enabling deferred saving
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO -
> > securitystore
> > references nodestore
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO - lockstore
> > refe
> > rences nodestore
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO -
> > revisiondescri
> > ptorsstore references nodestore
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO -
> > revisiondescri
> > ptorstore references nodestore
> > 27 Aug 2004 11:05:55 -
> > org.apache.slide.common.Namespace - INFO -
> > contentstore:
> > org.apache.slide.store.txfile.TxFileContentStore
> > 27 Aug 2004 11:05:55 - file-content-

Re: Mac OS X and Slide

2004-08-27 Thread Ben Pillet
I just wrote a unit test that tries to lock a
nonexistent file on the server.  The HTTP return
status is 200 and the body of the response is:










infinity

Infinite

   
opaquelocktoken:7e197bc32f27bc94cbab9b0663037a81


   
/swirl/unauthenticated






Is that supposed to happen when you lock a nonexistent
file? 
http://webdav.org/specs/rfc2518.htm#rfc.section.8.10.7
didn't seem to specify a more appropriate response.

Ben

--- Ben Pillet <[EMAIL PROTECTED]> wrote:

> Just downloaded 2.1b1 Tomcat 5 and got the same
> error.
> Steps I did:
> 1. startup server
> 2. connect to server:8080/slide as root on Windows
> XP
> machine
> 3. put MS Word file on server in /files folder
> 4. connect to server:8080/slide as root on Mac OS X
> 10.3.4 (shows up in Finder just fine)
> 5. Click to open MS Word file on mac.
> Log in Tomcat window looks like: 
> 
> Aug 27, 2004 11:05:54 AM
> org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> Aug 27, 2004 11:05:54 AM
> org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1437 ms
> Aug 27, 2004 11:05:54 AM
> org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Aug 27, 2004 11:05:54 AM
> org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
> 27 Aug 2004 11:05:54 -
> org.apache.slide.common.Domain
> - INFO - Auto-Initializing
>  Domain
> 27 Aug 2004 11:05:54 -
> 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,
> org.apache.slide.domain=../slide/Domain
> .xml}
> 27 Aug 2004 11:05:54 -
> org.apache.slide.common.Domain
> - INFO - Initializing Doma
> in
> 27 Aug 2004 11:05:54 -
> 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,
> org.apache.slide.domain=../slide/Domain
> .xml}
> 27 Aug 2004 11:05:54 -
> 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}
> 27 Aug 2004 11:05:54 -
> org.apache.slide.common.Domain
> - INFO - Initializing name
> space : slide
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO - Loading
> namesp
> ace slide parameters
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO - Loading
> namesp
> ace definition
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO -
> nodestore:
> org
> .apache.slide.store.txfile.TxXMLFileDescriptorsStore
> 27 Aug 2004 11:05:55 - file-meta-store - INFO - File
> Store configured to store/m
> etadata, working directory work/metadata
> 27 Aug 2004 11:05:55 - file-meta-store - INFO - Set
> timeout to 120
> 27 Aug 2004 11:05:55 - file-meta-store - INFO -
> Enabling deferred saving
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO -
> securitystore
> references nodestore
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO - lockstore
> refe
> rences nodestore
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO -
> revisiondescri
> ptorsstore references nodestore
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO -
> revisiondescri
> ptorstore references nodestore
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO -
> contentstore:
> org.apache.slide.store.txfile.TxFileContentStore
> 27 Aug 2004 11:05:55 - file-content-store - INFO -
> File Store configured to stor
> e/content, working directory work/content
> 27 Aug 2004 11:05:55 - file-content-store - INFO -
> Set
> timeout to 120
> 27 Aug 2004 11:05:55 -
> org.apache.slide.common.Namespace - INFO -
> sequencestore:
>  org.apache.slide.store.txfile.FileSequenceStore
> 27 Aug 2004 11:05:55 -
> org.apache.slide.store.txfile.FileSequenceStore -
> INFO
> -
> File Sequence Store configured to store/sequence
> 27 Aug 2004 11:05:55 - INFO - Setting TLock timeout
> for store tx to 120 seconds
> 27 Aug 2004 11:05:55 - INFO - Setting object cache
> size for store tx to 1
> 27 Aug 2004 11:05:55 -
> org.apache.slide.store.ExtendedStore - INFO -
> Setting
> per
> mission cache size for store

Re: Mac OS X and Slide

2004-08-27 Thread Ben Pillet
Just downloaded 2.1b1 Tomcat 5 and got the same error.
Steps I did:
1. startup server
2. connect to server:8080/slide as root on Windows XP
machine
3. put MS Word file on server in /files folder
4. connect to server:8080/slide as root on Mac OS X
10.3.4 (shows up in Finder just fine)
5. Click to open MS Word file on mac.
Log in Tomcat window looks like: 

Aug 27, 2004 11:05:54 AM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Aug 27, 2004 11:05:54 AM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1437 ms
Aug 27, 2004 11:05:54 AM
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 27, 2004 11:05:54 AM
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
27 Aug 2004 11:05:54 - org.apache.slide.common.Domain
- INFO - Auto-Initializing
 Domain
27 Aug 2004 11:05:54 - 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,
org.apache.slide.domain=../slide/Domain
.xml}
27 Aug 2004 11:05:54 - org.apache.slide.common.Domain
- INFO - Initializing Doma
in
27 Aug 2004 11:05:54 - 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,
org.apache.slide.domain=../slide/Domain
.xml}
27 Aug 2004 11:05:54 - 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}
27 Aug 2004 11:05:54 - org.apache.slide.common.Domain
- INFO - Initializing name
space : slide
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO - Loading
namesp
ace slide parameters
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO - Loading
namesp
ace definition
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO - nodestore:
org
.apache.slide.store.txfile.TxXMLFileDescriptorsStore
27 Aug 2004 11:05:55 - file-meta-store - INFO - File
Store configured to store/m
etadata, working directory work/metadata
27 Aug 2004 11:05:55 - file-meta-store - INFO - Set
timeout to 120
27 Aug 2004 11:05:55 - file-meta-store - INFO -
Enabling deferred saving
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO -
securitystore
references nodestore
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO - lockstore
refe
rences nodestore
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO -
revisiondescri
ptorsstore references nodestore
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO -
revisiondescri
ptorstore references nodestore
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO -
contentstore:
org.apache.slide.store.txfile.TxFileContentStore
27 Aug 2004 11:05:55 - file-content-store - INFO -
File Store configured to stor
e/content, working directory work/content
27 Aug 2004 11:05:55 - file-content-store - INFO - Set
timeout to 120
27 Aug 2004 11:05:55 -
org.apache.slide.common.Namespace - INFO -
sequencestore:
 org.apache.slide.store.txfile.FileSequenceStore
27 Aug 2004 11:05:55 -
org.apache.slide.store.txfile.FileSequenceStore - INFO
-
File Sequence Store configured to store/sequence
27 Aug 2004 11:05:55 - INFO - Setting TLock timeout
for store tx to 120 seconds
27 Aug 2004 11:05:55 - INFO - Setting object cache
size for store tx to 1
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
per
mission cache size for store tx to 1
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
loc
k cache size for store tx to 100
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
des
criptors cache size for store tx to 1
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
des
criptor cache size for store tx to 1
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
con
tent caching for store tx to false
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
con
tent cache size for store tx to 1
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
con
tent cache byte size for store tx to 1000
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
tra
nsaction content cache size for store tx to 1000
27 Aug 2004 11:05:55 -
org.apache.slide.store.ExtendedStore - INFO - Setting
tra
nsaction 

Re: Can WebDAV servlet serve non-slide-managed filesystem?

2004-08-27 Thread alon salant
I'm definitely game to try.

http://jakarta.apache.org/slide/javadoc/org/apache/slide/store/Store.html

Are we talking about implementing the Store interface with no-ops for
many of the methods?

Alon

On Thu, 26 Aug 2004 23:43:39 -0700, James Mason <[EMAIL PROTECTED]> wrote:
> Alon,
> I know what you mean. You know if you're not needing anything fancy it
> shouldn't be that hard to write a really simple filesystem Store for
> Slide. You could probably ignore locking, metadata, security and
> transactions, and since those are the complicated bits it should go
> quite fast :). I can try to walk you through it if you're interested.
> 
> -James
> 
> 
> 
> alon salant wrote:
> > Thanks for confirming my understanding.
> >
> > I'm hoping to have WebDAV running within my webapp because I already
> > manage user authentication in Java and would like to apply the same
> > container-managed security my WebDAV implementation. I'm actually
> > surprised not to find a simple webdav servlet impementation
> > independent of application server platform or framework (slide).
> >
> > Alon
> >
> > On Wed, 25 Aug 2004 22:46:05 -0700, James Mason <[EMAIL PROTECTED]> wrote:
> >
> >>Alon,
> >>
> >>I can't think of any way to get Slide to do this (maybe someone else
> >>can, though). The TxFile Store implementation uses xml files to store
> >>the structure of the repository, so I don't see any way to get this to
> >>use an existing structure in the filesystem.
> >>
> >>You could write a really Store implementation that either ignores
> >>metadata or stores it in some sort of .meta file.
> >>
> >>You might also look into using Apache HTTP Server's mod_dav module. It
> >>should do what you need and is very cross-platform.
> >>
> >>-James
> >>
> >>
> >>
> >>alon salant wrote:
> >>
> >>>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]
> >>>
> >>>
> >>>
> >>
> >>-
> >>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]



download-gateway for slide-documents

2004-08-27 Thread Stefan Burkard
hi slide-users
summary about my situation:
first of all, i have a slide-installation that runs in tomcat on a 
webserver. there is NO direct access for anybody (because 
user-management is already done outside of slide).
all except content is stored in a database on a db-server. content is 
stored in the filesystem of the webserver

additionally i have an existing website that is driven by macromedia 
coldfusion. authenticated users can access some extra pages to search 
and download documents - and these documents are stored in slide

i realised the search for documents with a direct search in the 
slide-metadata (in the database); thats running fine. with this search i 
can show a list of documents, stored in slide, that match the 
search-criteria.

the remaining problem is now: how can i give the users the possibility 
to download a document "out of slide" when theres no access to slide?

best way would be if i could read the document in any way and then 
"connect" the http-request of the user with this "bytestream". so lets 
call it a download-gateway for slide-documents.

is there anything in slide that could help me for this case? i even hope 
anybody understands what i mean :-)

greetings
stefan


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


RE: CVS label for the Slide 2.1 beta?

2004-08-27 Thread Warwick Burrows

James, I'm using the eclipse CVS client (v2.1.1 it seems) and it doesn't
show either of these branches or labels. I'm connecting with
:pserver:[EMAIL PROTECTED]:/home/cvspublic. The only branches it lists
are: 

SLIDE_1_0
SLIDE_2_0_RELEASE_BRANCH 
SLIDE_2_1_EXTERNAL_TX

There are more "versions" listed - which may correspond to labels - but the
latest for 2.1 is SLIDE_2_1_M1_RELEASE.  Why am I not seeing these other
branches??

Thanks,
Warwick



---
 Warwick Burrows  E2open
 Senior Engineer  9600 Great Hills Trail, #325
 http://www.e2open.comAustin TX 78759
---


-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 27, 2004 1:30 AM
To: Slide Users Mailing List
Subject: Re: CVS label for the Slide 2.1 beta?


Warwick,

We're working off the SLIDE_2_1_RELEASE_BRANCH. There's also a 
SLIDE_2_1_BETA1_RELEASE version, if you want a snapshot.

If you're using Eclipse be sure to update your branches and version to 
get the latest ones. There's instructions on the Slide site for doing 
this if you've forgotten how (I know I have several times).

-James

Warwick Burrows wrote:
>  
> What's the label in CVS that signifies the 2.1 beta release?  I don't
> see one in there that stands out.
>  
> Thanks,
> Warwick
>  
> 
> 
> 
> --
> --
> 
> Warwick Burrows
> Senior Software Engineer 
> 
>   
> 
>  
> 
>   
> 
> *Email: [EMAIL PROTECTED] 
> *Fax:   *512.343.8727
> 
>   
> 
>  
> 
>   
> 
> 9600 Great Hills Trail, #325
> Austin, TX  78759
> http://www.e2open.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: property-search in database-store?

2004-08-27 Thread Stefan Burkard
thanks for the answer james!
i need to check the security-issues myself in any case - in my actual 
case it's an "access-all-or-nothing-approach".

searching in the database works fine - except that the 
property-value-field is of the type "text" in ms-sqlserver. therefore it 
is not possible to compare or sort the fields in a query :-(

are 8000 characters (the capacity of a normal varchar-field in ms-sql) 
not enough for a webdav-property? :-)

greetings
stefan
James Mason wrote:
Searching the database should be no problem. Keep in mind though that 
you'll need to do security checks on the returned resources yourself. If 
you search through Slide it won't return resources the user doing the 
search doesn't have access to. Depending on your needs this may not be 
an issue.

Here's an example of some code to do a search through Slide:
---
String path = "/slide/files";
String query =
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"articles" +
"infinity" +
"" +
"" +
"" +
"TERMS" +
"" +
"" +
"";
SearchMethod method = new SearchMethod( path, query );
HttpURL httpURL = new HttpURL( "http://localhost:8080/slide/"; );
HttpClient client = new HttpClient();
client.setState(new WebdavState());
HostConfiguration hostConfig = client.getHostConfiguration();
hostConfig.setHost(httpURL);
Credentials hostCredentials =
new UsernamePasswordCredentials("john","john");
if (hostCredentials != null) {
HttpState clientState = client.getState();
clientState.setCredentials(null, httpURL.getHost(),
hostCredentials);
clientState.setAuthenticationPreemptive(true);
}
int state = client.executeMethod(method);
System.out.println( "State: " + state );
Header[] headers = method.getResponseHeaders();
for ( int i = 0; i < headers.length; i++ ) {
System.out.println( headers[i].toString() );
}
Enumeration enum = method.getAllResponseURLs();
while ( enum.hasMoreElements() ) {
System.out.println( enum.nextElement() );
}

-James
Stefan Burkard wrote:
hi slide-users
i'm fighting around with the dasl-search in a slide-repository. so 
first of all i would be glad to find a code-example how to create the 
http-request with jakarta http-client to do a dasl-search :-)

additionally i was looking around for alternatives. since i'm putting 
all except content in a jdbc-store, i found all property-values in the 
database...

would it be a bad idea to search directly in the database for the 
documents that match on specific property-values?

i get to this because an additional problem is, that the website who 
provides the search-form is built with macromedia coldfusion. so i 
would need to build the request and "transform" the response of a 
dasl-search with this scripting-language.
in contrast the database-connection and sql-based search is very easy.

greetings
stefan burkard
-
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: property-search in database-store?

2004-08-27 Thread James Mason
Searching the database should be no problem. Keep in mind though that 
you'll need to do security checks on the returned resources yourself. If 
you search through Slide it won't return resources the user doing the 
search doesn't have access to. Depending on your needs this may not be 
an issue.

Here's an example of some code to do a search through Slide:
---
String path = "/slide/files";
String query =
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"articles" +
"infinity" +
"" +
"" +
"" +
"TERMS" +
"" +
"" +
"";
SearchMethod method = new SearchMethod( path, query );
HttpURL httpURL = new HttpURL( "http://localhost:8080/slide/"; );
HttpClient client = new HttpClient();
client.setState(new WebdavState());
HostConfiguration hostConfig = client.getHostConfiguration();
hostConfig.setHost(httpURL);
Credentials hostCredentials =
new UsernamePasswordCredentials("john","john");
if (hostCredentials != null) {
HttpState clientState = client.getState();
clientState.setCredentials(null, httpURL.getHost(),
hostCredentials);
clientState.setAuthenticationPreemptive(true);
}
int state = client.executeMethod(method);
System.out.println( "State: " + state );
Header[] headers = method.getResponseHeaders();
for ( int i = 0; i < headers.length; i++ ) {
System.out.println( headers[i].toString() );
}
Enumeration enum = method.getAllResponseURLs();
while ( enum.hasMoreElements() ) {
System.out.println( enum.nextElement() );
}

-James
Stefan Burkard wrote:
hi slide-users
i'm fighting around with the dasl-search in a slide-repository. so first 
of all i would be glad to find a code-example how to create the 
http-request with jakarta http-client to do a dasl-search :-)

additionally i was looking around for alternatives. since i'm putting 
all except content in a jdbc-store, i found all property-values in the 
database...

would it be a bad idea to search directly in the database for the 
documents that match on specific property-values?

i get to this because an additional problem is, that the website who 
provides the search-form is built with macromedia coldfusion. so i would 
need to build the request and "transform" the response of a dasl-search 
with this scripting-language.
in contrast the database-connection and sql-based search is very easy.

greetings
stefan burkard
-
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: Slide fixes to be reviewed

2004-08-27 Thread paulo . albuquerque
Well i couldn't wait, so i got my hands dirty, and started debugging the
code. It was really easy to solve after all, the bug thas i was experiencing
has nothing to do with WebdavResource. In org/apache/webdav/cmd/Client.java
there's a method named "uriToHttpURL" that calls the commons library like
this: "HttpURL(uri.toCharArray())".
It turns out that if I use simply "HttpURL(uri)" it works as a breeze. So I
guess i discoreved a bug in "public HttpURL(char[] chars)" in the commons
library and discarded a futile function call.
I will submit a bug, and a patch as soon as i get lunch :P

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 27 de Agosto de 2004 12:17
To: [EMAIL PROTECTED]
Subject: Re: Slide fixes to be reviewed


I'm pretty sure there's no bug related to spaces in pathnames in
WebdavResource. But the commmand line client and the LockMethod may
well have problems.

I will have a look at the patches as soon as Warwick submits them.

Ingo

> Hi
> I was having trouble with pathnames and spaces too, i'm designing an app,
> and started by implementing the methods on top of the slide client, but
some
> didn't seem to work at all.
> Later i associated the bad behaviour with the spaces in the filenames.
> For instance, using the commandline client I'm getting this error when i
try
> to do some operations on a pathname that contains spaces:
> 
> "[LOCALHOST:/slide/files/Folhas Soltas/] C:\ $ report tabacaria.txt
> Getting version-tree Report of '/slide/files/Folhas Soltas/tabacaria.txt':
> Error: escaped absolute path not valid"
> 
> I suppose this is connected to the bug you refered in
"WebdavResource.java"?
> This error of course doesn't show up when there aren't any spaces in the
> pathname. Do you think these patches will solve the problem? please submit
> them quickly :)
> 
> Thanks again
> 
> -Original Message-
> From: James Mason [mailto:[EMAIL PROTECTED]
> Sent: sexta-feira, 27 de Agosto de 2004 7:39
> To: Slide Users Mailing List
> Subject: Re: Slide fixes to be reviewed
> 
> 
> Warwick,
> Bugzilla is the best option for submitting fixes. It makes it easier to 
> track which fixes have been applied and which are pending.
> 
> It's a bit of work, but if you can create a bug for each change you've 
> made that will be the easiest to keep track of. Otherwise just create a 
> single bug and attach all your changes and we'll keep track of what's 
> been done in the comments.
> 
> Thanks for doing this, btw. I absolutely love it when someone submits a 
> bug *with* a patch :).
> 
> -James
> 
> Warwick Burrows wrote:
> > Hi James,
> > 
> > I actually have a number of fixes that I've made to get Slide working in
> my
> > configuration. I'd like to submit them all but would like to have them
> > reviewed by a slide contributor first to make sure that they are ok.
How
> do
> > I get them to the list as I haven't been able to send a zip or tar file
> > attachment as they get bounced.
> > 
> > Here's a summary of each change for context:
> > 
> > 
> > WebdavResource.java:
> > ---
> > - Found a problem establishing "existence" of paths with spaces in
> > them. Eg. "My Files". The path coming back from the server was escaped
and
> > getPath() returns an unescaped string. Was failing to set existence as a
> > result. Decode and compare the two on a common basis.
> > - got a "wild-hare" about the the way a trailing '/' on one of the
> > paths is dealt with so I changed it to make it a little faster and skips
> > cases where the strings are definitely not equal regardless of the '/'.
> > - added a lockMethod with a depth parameter to lock subdirs and
> > their children.
> > - added discoverOwnLocks with an owner parameter to get locks for a
> > specific user and which is not the user in my client context (ie. no
authn
> > or authz is being used).
> > 
> > 
> > LockMethod.java:
> > 
> > - similar to existence prob in WebdavResource.java for paths with
> > spaces. The lock is stored in the hashmap by parseResponse with an
escaped
> > path. The check for existence of a lock on the resource uses an
unescaped
> > path so it wouldn't find the lock. I changed it to add the lock to the
> > hashmap with the unescaped path so that its found.
> > 
> > 
> > DOMUtils.java:
> > --
> > - lock owner not being read out of response from server because
> > owner value was "escaped" using CDATA decl. DOMUtils was only looking
for
> > text responses.
> > 
> > 
> > Client.java:
> > 
> > - couple of simple checks for null object refs.
> > 
> > 
> > DB2RDBMSAdapter:
> > 
> > - check for null ref in case of empty result.
> > - override CommonRDBMSAdapter version of
> > convertRevisionNumberToComparable() with one using SQL functions
supported
> > by DB2.
> > 
> > 
> > Thanks,
> > Warwick
> > 
> > 
> > -Original Message-
> > From: James Mason [mailto:[EMAIL PROTECTED] 
> > Sen

Re: Slide fixes to be reviewed

2004-08-27 Thread Ingo Brunberg
I'm pretty sure there's no bug related to spaces in pathnames in
WebdavResource. But the commmand line client and the LockMethod may
well have problems.

I will have a look at the patches as soon as Warwick submits them.

Ingo

> Hi
> I was having trouble with pathnames and spaces too, i'm designing an app,
> and started by implementing the methods on top of the slide client, but some
> didn't seem to work at all.
> Later i associated the bad behaviour with the spaces in the filenames.
> For instance, using the commandline client I'm getting this error when i try
> to do some operations on a pathname that contains spaces:
> 
> "[LOCALHOST:/slide/files/Folhas Soltas/] C:\ $ report tabacaria.txt
> Getting version-tree Report of '/slide/files/Folhas Soltas/tabacaria.txt':
> Error: escaped absolute path not valid"
> 
> I suppose this is connected to the bug you refered in "WebdavResource.java"?
> This error of course doesn't show up when there aren't any spaces in the
> pathname. Do you think these patches will solve the problem? please submit
> them quickly :)
> 
> Thanks again
> 
> -Original Message-
> From: James Mason [mailto:[EMAIL PROTECTED]
> Sent: sexta-feira, 27 de Agosto de 2004 7:39
> To: Slide Users Mailing List
> Subject: Re: Slide fixes to be reviewed
> 
> 
> Warwick,
> Bugzilla is the best option for submitting fixes. It makes it easier to 
> track which fixes have been applied and which are pending.
> 
> It's a bit of work, but if you can create a bug for each change you've 
> made that will be the easiest to keep track of. Otherwise just create a 
> single bug and attach all your changes and we'll keep track of what's 
> been done in the comments.
> 
> Thanks for doing this, btw. I absolutely love it when someone submits a 
> bug *with* a patch :).
> 
> -James
> 
> Warwick Burrows wrote:
> > Hi James,
> > 
> > I actually have a number of fixes that I've made to get Slide working in
> my
> > configuration. I'd like to submit them all but would like to have them
> > reviewed by a slide contributor first to make sure that they are ok.  How
> do
> > I get them to the list as I haven't been able to send a zip or tar file
> > attachment as they get bounced.
> > 
> > Here's a summary of each change for context:
> > 
> > 
> > WebdavResource.java:
> > ---
> > - Found a problem establishing "existence" of paths with spaces in
> > them. Eg. "My Files". The path coming back from the server was escaped and
> > getPath() returns an unescaped string. Was failing to set existence as a
> > result. Decode and compare the two on a common basis.
> > - got a "wild-hare" about the the way a trailing '/' on one of the
> > paths is dealt with so I changed it to make it a little faster and skips
> > cases where the strings are definitely not equal regardless of the '/'.
> > - added a lockMethod with a depth parameter to lock subdirs and
> > their children.
> > - added discoverOwnLocks with an owner parameter to get locks for a
> > specific user and which is not the user in my client context (ie. no authn
> > or authz is being used).
> > 
> > 
> > LockMethod.java:
> > 
> > - similar to existence prob in WebdavResource.java for paths with
> > spaces. The lock is stored in the hashmap by parseResponse with an escaped
> > path. The check for existence of a lock on the resource uses an unescaped
> > path so it wouldn't find the lock. I changed it to add the lock to the
> > hashmap with the unescaped path so that its found.
> > 
> > 
> > DOMUtils.java:
> > --
> > - lock owner not being read out of response from server because
> > owner value was "escaped" using CDATA decl. DOMUtils was only looking for
> > text responses.
> > 
> > 
> > Client.java:
> > 
> > - couple of simple checks for null object refs.
> > 
> > 
> > DB2RDBMSAdapter:
> > 
> > - check for null ref in case of empty result.
> > - override CommonRDBMSAdapter version of
> > convertRevisionNumberToComparable() with one using SQL functions supported
> > by DB2.
> > 
> > 
> > Thanks,
> > Warwick
> > 
> > 
> > -Original Message-
> > From: James Mason [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, August 25, 2004 10:43 PM
> > To: Slide Users Mailing List
> > Subject: 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 lo

Re: A question on security configuration

2004-08-27 Thread Stefan Lützkendorf

Stefan Fromm wrote:
1. Is the security implementation class configurable via Domain.xml? 
There
is a security store configuration in Domain.xml but I haven't seen the 
entry
for the security helper class.

It is configurable. Under XPath /slide/namespace/configuration you can 
set parameters for the security helper. It is called "acl_semantics" and 
expects whether one of two standard values ("all-grant-before-any-deny" 
or "legacy-all-grant-before-any-deny") or a class name of your own 
security helper implementation. See the constructor of 
NamespaceAccessToken where the class is loaded.

2. Which methods would have to be implemented if I am interested only 
in the
authorization checks and not the assignments?

I guess the only method to override is evaluateAcl() like done in 
ACLSecurityImpl.
evaluateAcl() is private so override
public boolean hasPermission(SlideToken token, ObjectNode objectNode, ActionNode 
actionNode)
e.g. you can use (if you extend ACLSecurityImpl
if (token.getCredentialsToken().getPrincipal().getName().equals("root")) {
return true;
} else {
return super(token, objectNode, actionNode);
}
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]


RE: Slide fixes to be reviewed

2004-08-27 Thread paulo . albuquerque
Hi
I was having trouble with pathnames and spaces too, i'm designing an app,
and started by implementing the methods on top of the slide client, but some
didn't seem to work at all.
Later i associated the bad behaviour with the spaces in the filenames.
For instance, using the commandline client I'm getting this error when i try
to do some operations on a pathname that contains spaces:

"[LOCALHOST:/slide/files/Folhas Soltas/] C:\ $ report tabacaria.txt
Getting version-tree Report of '/slide/files/Folhas Soltas/tabacaria.txt':
Error: escaped absolute path not valid"

I suppose this is connected to the bug you refered in "WebdavResource.java"?
This error of course doesn't show up when there aren't any spaces in the
pathname. Do you think these patches will solve the problem? please submit
them quickly :)

Thanks again

-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 27 de Agosto de 2004 7:39
To: Slide Users Mailing List
Subject: Re: Slide fixes to be reviewed


Warwick,
Bugzilla is the best option for submitting fixes. It makes it easier to 
track which fixes have been applied and which are pending.

It's a bit of work, but if you can create a bug for each change you've 
made that will be the easiest to keep track of. Otherwise just create a 
single bug and attach all your changes and we'll keep track of what's 
been done in the comments.

Thanks for doing this, btw. I absolutely love it when someone submits a 
bug *with* a patch :).

-James

Warwick Burrows wrote:
> Hi James,
> 
> I actually have a number of fixes that I've made to get Slide working in
my
> configuration. I'd like to submit them all but would like to have them
> reviewed by a slide contributor first to make sure that they are ok.  How
do
> I get them to the list as I haven't been able to send a zip or tar file
> attachment as they get bounced.
> 
> Here's a summary of each change for context:
> 
> 
> WebdavResource.java:
> ---
>   - Found a problem establishing "existence" of paths with spaces in
> them. Eg. "My Files". The path coming back from the server was escaped and
> getPath() returns an unescaped string. Was failing to set existence as a
> result. Decode and compare the two on a common basis.
>   - got a "wild-hare" about the the way a trailing '/' on one of the
> paths is dealt with so I changed it to make it a little faster and skips
> cases where the strings are definitely not equal regardless of the '/'.
>   - added a lockMethod with a depth parameter to lock subdirs and
> their children.
>   - added discoverOwnLocks with an owner parameter to get locks for a
> specific user and which is not the user in my client context (ie. no authn
> or authz is being used).
> 
> 
> LockMethod.java:
> 
>   - similar to existence prob in WebdavResource.java for paths with
> spaces. The lock is stored in the hashmap by parseResponse with an escaped
> path. The check for existence of a lock on the resource uses an unescaped
> path so it wouldn't find the lock. I changed it to add the lock to the
> hashmap with the unescaped path so that its found.
> 
> 
> DOMUtils.java:
> --
>   - lock owner not being read out of response from server because
> owner value was "escaped" using CDATA decl. DOMUtils was only looking for
> text responses.
> 
> 
> Client.java:
> 
>   - couple of simple checks for null object refs.
> 
> 
> DB2RDBMSAdapter:
> 
>   - check for null ref in case of empty result.
>   - override CommonRDBMSAdapter version of
> convertRevisionNumberToComparable() with one using SQL functions supported
> by DB2.
> 
> 
> Thanks,
> Warwick
> 
> 
> -Original Message-
> From: James Mason [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 25, 2004 10:43 PM
> To: Slide Users Mailing List
> Subject: 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 CDAT

Re: A question on security configuration

2004-08-27 Thread Stefan Fromm
1. Is the security implementation class configurable via Domain.xml? There
is a security store configuration in Domain.xml but I haven't seen the entry
for the security helper class.
It is configurable. Under XPath /slide/namespace/configuration you can set parameters for the security helper. 
It is called "acl_semantics" and expects whether one of two standard values 
("all-grant-before-any-deny" or "legacy-all-grant-before-any-deny") or a class name of your own 
security helper implementation. See the constructor of NamespaceAccessToken where the class is loaded.
2. Which methods would have to be implemented if I am interested only in the
authorization checks and not the assignments?
I guess the only method to override is evaluateAcl() like done in ACLSecurityImpl.
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


property-search in database-store?

2004-08-27 Thread Stefan Burkard
hi slide-users
i'm fighting around with the dasl-search in a slide-repository. so first 
of all i would be glad to find a code-example how to create the 
http-request with jakarta http-client to do a dasl-search :-)

additionally i was looking around for alternatives. since i'm putting 
all except content in a jdbc-store, i found all property-values in the 
database...

would it be a bad idea to search directly in the database for the 
documents that match on specific property-values?

i get to this because an additional problem is, that the website who 
provides the search-form is built with macromedia coldfusion. so i would 
need to build the request and "transform" the response of a dasl-search 
with this scripting-language.
in contrast the database-connection and sql-based search is very easy.

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


RE: A question on security configuration

2004-08-27 Thread Ritu Kedia
:( ... The distinguishing factor in my requests is neither the user
credential nor the resource being accessed. The same user should be able to
access the Slide Repository either via my WebService or via
MS-Word/Excel/etc. I.e. The same user could access the same resource in
either mode. When accessed via WebService, my application is doing the
authorization. When accessed directly, I would have to override the default
slide security implementation with my custom implementation. 

I think I would have to try the clustering solution only with my custom
security implementation (since the direct slide access should also follow
the same security checks as done in my application). But I won't be able to
get to it may be for another month.
A couple of questions regarding custom security implementation... 
1. Is the security implementation class configurable via Domain.xml? There
is a security store configuration in Domain.xml but I haven't seen the entry
for the security helper class.
2. Which methods would have to be implemented if I am interested only in the
authorization checks and not the assignments?

Thanks,
Ritu

-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 11:44 AM
To: Slide Users Mailing List
Subject: Re: A question on security configuration


Done a little more thinking about this. I think separate namespaces 
sounds like a good idea, but there may be a problem. Since the Store 
configurations are per-namespace it's likely that the ExtendedStore 
cache will be per namespace as well. If this is the case then you're 
back to a situation where you'll need clustering to keep the caches in 
sync. Unless you really want everything to run in the same webapp you'd 
probably be better off just running a cluster with two nodes.

Stefan's suggestion gave me an idea, though (several actually). What you 
really need is a way to bypass the security checks in SecurityImpl based 
on some aspect of the request. I went through several ideas involving 
extending WebdavServelt or Domain to provide different 
NamespaceAccessTokens with different Security implementations based on 
where the request came from. This should be viable, but as I was writing 
this I realized that simply providing your own Security implementation 
that always returned true for a specific user should be enough. You'll 
still need to authenticate to the app server as that user, but since the 
Security implementation doesn't actually do any checking it should speed 
things up. For requests that aren't from the special user come in your 
implementation can just call ACLSecurityImpl (or another implementation) 
to do the checking, which should add very little overhead to the 
existing system.

-James

Ritu Kedia wrote:
>>>BTW how does JAAS decide what client currently accesses the webdav
server?
> 
> 
> JAAS can't detect that. In my case below I would have distinguished
between
> the 2 modes by the namespace (if that solution was possible). 
> 
> Regards,
> Ritu
> 
> -Original Message-
> From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 2:50 PM
> To: Slide Users Mailing List
> Subject: Re: A question on security configuration
> 
> 
> 
> I recently thought about a "scoped SecurityImpl" because we want
> to have different security checking mechanics on different scopes.
> On one scope we want to use Slides ACL Security and on an other
> we want to use the Security checking of our own system.
> 
> We could of course have a SecurityImpl that permits all actions.
> 
> But I'm not sure that meets your problem, because your need to use
> different scopes.
> 
> BTW how does JAAS decide what client currently accesses the webdav server?
> 
> Regards, Stefan
> 
> 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

Re: reportMethod

2004-08-27 Thread Ingo Brunberg
> Could somebody explain reportMethod for me? If I have file with uri 
> http//localhost:8080/slide/files/test.txt, how could I get all information 
> about this one, for example: version number, history.

Take the time to read the Delta-V spec you can find at www.webdav.org
and search the slide-user and slide-dev archives for examples.

> And if I want to
> replace it with an old version file, how could I do?

There's the UPDATE method that serves that purpose. Again, a look at
the spec is invaluable.

> Thanks a lot.
> Haipeng

Regards,
Ingo


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