You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by pf...@yahoo.com on 2004/04/20 19:20:29 UTC

Using Slide as windows filesystem gateway

Is there any way to have slide use a file system store
that is simply a shared directory on a windows
machine?  Basically something similar to Davenport
(http://davenport.sourceforge.net/) that uses the file
system's ACLs and allows the target store to also be a
shared windows directory. I am working on a project to
provide remote file access to a central repository of
files.  There is already a solution in place that uses
windows shared directories and while we move to the
new system, we want to be able to run the two in
parallel.
Eventually, I want to move to using slide's content
managment capabilities but won't be allowed to until
we have proven to the managers the viability of our
new architecture.
I know that slide has a file system store, but I can't
get it to not tag on the version number of the file,
ending up with files like "file.doc_1.0".  I tried
looking through the documentation and code but didn't
really see anything that would allow me to disable
this behavior.  Any help/suggestions are welcome.

Thanks,
Seth Wright


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Using Slide as windows filesystem gateway

Posted by Michael Smith <ms...@speedlegal.com>.
Oliver Zeigermann wrote:
> Michael Smith wrote:
> 
>> Oliver Zeigermann wrote:
>>
>>> The files you talk about are only one half of the resource 
>>> information. While they contain the actual content, there is another 
>>> tree containing meta information. Now, your tree contains all 
>>> versions of content and as each file needs a different name the 
>>> version number is appended to the original resource name. This 
>>> results in names ending in _1.0 etc. If you switch if off, all 
>>> versions would be saved to the same file overriding each other. 
>>> Although, when versioning is turned off, it might be save to omit the 
>>> version number. I could add a switch for this...
>>
>>
>>
>> Note that the 'versioning' Oliver talks about here is slide-internal 
>> versioning. Most users do not use that - if they use versioning, they 
>> use WebDAV/DeltaV versioning, which does NOT use the slide-internal 
>> versioning to work.
>>
>> So you can continue to safely use DeltaV if you want with this stuff 
>> turned off.
> 
> 
> I do not think so, even though I may be completely wrong. The 
> WebDAV/DeltaV versioning actually *does* seem to use slide-internal 
> versioning, even though not exactly in a way one would expect. E.g. 
> properties are versioned in revision descriptors and content is 
> versioned using different version numbers, although *only* in the 
> history folder. Quite confusing, I guess... Maybe too confusing, so I 
> might well be very wrong here...
> 
> Oliver


This is entirely possible - I know the main part of the versioning is 
not done using slide's versioning, but I'm not certain about all the 
details of how the DeltaV stuff stores data/properties in the history 
directory.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Using Slide as windows filesystem gateway

Posted by Oliver Zeigermann <oz...@c1-fse.de>.
Michael Smith wrote:

> Oliver Zeigermann wrote:
> 
>> The files you talk about are only one half of the resource 
>> information. While they contain the actual content, there is another 
>> tree containing meta information. Now, your tree contains all versions 
>> of content and as each file needs a different name the version number 
>> is appended to the original resource name. This results in names 
>> ending in _1.0 etc. If you switch if off, all versions would be saved 
>> to the same file overriding each other. Although, when versioning is 
>> turned off, it might be save to omit the version number. I could add a 
>> switch for this...
> 
> 
> Note that the 'versioning' Oliver talks about here is slide-internal 
> versioning. Most users do not use that - if they use versioning, they 
> use WebDAV/DeltaV versioning, which does NOT use the slide-internal 
> versioning to work.
> 
> So you can continue to safely use DeltaV if you want with this stuff 
> turned off.

I do not think so, even though I may be completely wrong. The 
WebDAV/DeltaV versioning actually *does* seem to use slide-internal 
versioning, even though not exactly in a way one would expect. E.g. 
properties are versioned in revision descriptors and content is 
versioned using different version numbers, although *only* in the 
history folder. Quite confusing, I guess... Maybe too confusing, so I 
might well be very wrong here...

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Using Slide as windows filesystem gateway

Posted by Michael Smith <ms...@speedlegal.com>.
Oliver Zeigermann wrote:
> The files you talk about are only one half of the resource information. 
> While they contain the actual content, there is another tree containing 
> meta information. Now, your tree contains all versions of content and as 
> each file needs a different name the version number is appended to the 
> original resource name. This results in names ending in _1.0 etc. If you 
> switch if off, all versions would be saved to the same file overriding 
> each other. Although, when versioning is turned off, it might be save to 
> omit the version number. I could add a switch for this...

Note that the 'versioning' Oliver talks about here is slide-internal 
versioning. Most users do not use that - if they use versioning, they 
use WebDAV/DeltaV versioning, which does NOT use the slide-internal 
versioning to work.

So you can continue to safely use DeltaV if you want with this stuff 
turned off.

> 
> To see if this helps disable it manually in 
> org.apache.slide.store.txfile.TxFileContentStore by changing every line 
> that looks like
> 
>         String revisionUri = uri.toString() + "_" + 
> revisionDescriptor.getRevisionNumber();
> 
> to
> 
>         String revisionUri = uri.toString();
> 
> 
> Talking about ACLs. There currently is no store that uses access control 
> of the file system.

I'm not really sure how one would do this... Is there any way with the 
Java APIs to get FS ACL information? I'd expect not, since it's very 
platform specific (and needs to remain so - the semantics differ too 
much across various platforms for a unified API to be really useful - 
note all the complexity in the webdav ACL specification, and even then 
that leaves a LOT up to implementation choice).

So (if I'm right that Java doesn't directly give us access to this info) 
you'd need to use JNI (or a seperate native helper process?) to do it. 
That bit doesn't sound like too much fun...

You'd also need to run it as a superuser of some form (depending on the 
platform), to actually access the files on behalf of the appropriate 
(authenticated) user, which is not a very attractive proposition to most 
sysadmins, for good reasons. Another native helper process?

To make this useful, I think we'd need some fairly major surgery to 
slide's webdav-acl implementation, too, so that the semantics it uses 
(and advertises) are store-dependent (this would require pluggable 
security implementations as well, but we've already got that).

It'd be an interesting project, however.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Using Slide as windows filesystem gateway

Posted by Oliver Zeigermann <oz...@c1-fse.de>.
The files you talk about are only one half of the resource information. 
While they contain the actual content, there is another tree containing 
meta information. Now, your tree contains all versions of content and as 
each file needs a different name the version number is appended to the 
original resource name. This results in names ending in _1.0 etc. If you 
switch if off, all versions would be saved to the same file overriding 
each other. Although, when versioning is turned off, it might be save to 
omit the version number. I could add a switch for this...

To see if this helps disable it manually in 
org.apache.slide.store.txfile.TxFileContentStore by changing every line 
that looks like

         String revisionUri = uri.toString() + "_" + 
revisionDescriptor.getRevisionNumber();

to

         String revisionUri = uri.toString();


Talking about ACLs. There currently is no store that uses access control 
of the file system.

Oliver

pfoorion@yahoo.com wrote:

> Is there any way to have slide use a file system store
> that is simply a shared directory on a windows
> machine?  Basically something similar to Davenport
> (http://davenport.sourceforge.net/) that uses the file
> system's ACLs and allows the target store to also be a
> shared windows directory. I am working on a project to
> provide remote file access to a central repository of
> files.  There is already a solution in place that uses
> windows shared directories and while we move to the
> new system, we want to be able to run the two in
> parallel.
> Eventually, I want to move to using slide's content
> managment capabilities but won't be allowed to until
> we have proven to the managers the viability of our
> new architecture.
> I know that slide has a file system store, but I can't
> get it to not tag on the version number of the file,
> ending up with files like "file.doc_1.0".  I tried
> looking through the documentation and code but didn't
> really see anything that would allow me to disable
> this behavior.  Any help/suggestions are welcome.
> 
> Thanks,
> Seth Wright
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25¢
> http://photos.yahoo.com/ph/print_splash
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> .
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org