RE: PROPFIND 409 conflict ERROR with timeout/deadlock

2007-10-02 Thread Miguel Figueiredo
Hello again Shakti,

 Maybe you can't start a nested transaction like it happens in the no
branch of point 3 and 4 (the 1st transaction happens on point 2).

Hope this helps,
Miguel Figueiredo


-Original Message-
From: Shakti Shrivastava [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 28 de Setembro de 2007 16:23
To: Slide Users Mailing List
Subject: RE: PROPFIND 409 conflict ERROR with timeout/deadlock

Hi Miguel,

That fixed the issue. Thank you very much. But I still don't understand
why? Can Oliver chime in? I would really want to know.

This is what the code is doing (while trying to upload a resource like
http://host:port/slide/files/user-75/myfile.txt

1. Find collection files (this is http://host:port/slide/files)
2. If found add to a list (cache) and start a transaction (explicitly,
using startTransaction())
3. Check if collection user-57 exists using getChildren() if so add to
list (cache). No (explicit) transaction started here
4. Check if myfile.txt exists. No (explicit) transaction started here *
this is where the timeout is occurring 
5. If no then use putMethod()
6. Complete with commitTransaction()
7. in case of error do abortTransaction()

As you see there isn't an issue of nested transactions. Again, thanks
for your input.


-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 28, 2007 2:28 AM
To: 'Slide Users Mailing List'
Subject: RE: PROPFIND 409 conflict ERROR with timeout/deadlock

Hello Shakti,

 Although I'm not familiar with the details (Oliver would), you will be
happy to know that Slide already wraps write requests in internal
transactions. Checkout your Domain.xml, there is a piece of
configuration
that implicitly says just that:

!-- false lets all read-only methods be executed outside of
transactions
--
parameter name=all-methods-in-transactionsfalse/parameter

 From here http://www.checkupdown.com/status/E409.html I deduct that you
might be doing something illegal from the point of view of Slide WebApp.
What can it be?

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Shakti Shrivastava [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 27 de Setembro de 2007 23:30
To: slide-user@jakarta.apache.org
Subject: PROPFIND 409 conflict ERROR with timeout/deadlock

I am getting 409 conflict error when trying to create a WebdavResource
object for a given URL. 

The code is trying to create a file along with any missing collections
(that may not exist). Everything works fine however the code seems to
deadlock when trying to create a WebdavResource object on the filename.
I am using startTransaction and commitTransaction to make sure the file
upload either completes successfully or fails completely. The code runs
fine, in that the file upload completes, but I want to understand the
reason of the timeout here and get rid of it. Can someone please shed
some light on this?

I have googled this and nowhere can I find 409 status code associated
with a PROPFIND. This leads me to believe that this timeout has
something to do with a lock. However, nowhere in my code am I explicitly
locking any resource (may be it's the startTransaction()?).

Thanks in advance.

Using:

Tomcat 5.5.x
Slide version 2.2 (from SVN)
JVM: 1.5.x

 

Here are the logs from the SLIDE server (2 lines prefixed with * are the
ones where the error is happening)

http-8081-Processor25, 25-Sep-2007 18:50:08, unauthenticated, GET, 404
Not Found, 547 ms, /files/user-docs/user-57
http-8081-Processor24, 25-Sep-2007 18:50:31, unauthenticated, PROPFIND,
404 Not Found, 781 ms, /files/user-docs/user-57
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, PROPFIND,
207 Multi-Status, 125 ms, /files
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, LOCK, 200
OK, 31 ms, /files
25 Sep 2007 18:50:32 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, PROPFIND,
207 Multi-Status, 63 ms, /files
25 Sep 2007 18:50:32 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, MKCOL, 201
Created, 219 ms, /files/user-docs/user-57
25 Sep 2007 18:50:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:33, unauthenticated, PROPFIND,
207 Multi-Status, 281 ms, /files/3
25 Sep 2007 18:50:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:33, unauthenticated, PROPFIND,
207 Multi-Status, 0 ms, /files/user-docs/user-57
** 25 Sep 2007 18:52:33 - file-meta-store - INFO - DEADLOCK
VICTIM: Thread Thread[http-8081

RE: PROPFIND 409 conflict ERROR with timeout/deadlock

2007-09-28 Thread Miguel Figueiredo
Hello Shakti,

 Although I'm not familiar with the details (Oliver would), you will be
happy to know that Slide already wraps write requests in internal
transactions. Checkout your Domain.xml, there is a piece of configuration
that implicitly says just that:

!-- false lets all read-only methods be executed outside of transactions
--
parameter name=all-methods-in-transactionsfalse/parameter

 From here http://www.checkupdown.com/status/E409.html I deduct that you
might be doing something illegal from the point of view of Slide WebApp.
What can it be?

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Shakti Shrivastava [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 27 de Setembro de 2007 23:30
To: slide-user@jakarta.apache.org
Subject: PROPFIND 409 conflict ERROR with timeout/deadlock

I am getting 409 conflict error when trying to create a WebdavResource
object for a given URL. 

The code is trying to create a file along with any missing collections
(that may not exist). Everything works fine however the code seems to
deadlock when trying to create a WebdavResource object on the filename.
I am using startTransaction and commitTransaction to make sure the file
upload either completes successfully or fails completely. The code runs
fine, in that the file upload completes, but I want to understand the
reason of the timeout here and get rid of it. Can someone please shed
some light on this?

I have googled this and nowhere can I find 409 status code associated
with a PROPFIND. This leads me to believe that this timeout has
something to do with a lock. However, nowhere in my code am I explicitly
locking any resource (may be it's the startTransaction()?).

Thanks in advance.

Using:

Tomcat 5.5.x
Slide version 2.2 (from SVN)
JVM: 1.5.x

 

Here are the logs from the SLIDE server (2 lines prefixed with * are the
ones where the error is happening)

http-8081-Processor25, 25-Sep-2007 18:50:08, unauthenticated, GET, 404
Not Found, 547 ms, /files/user-docs/user-57
http-8081-Processor24, 25-Sep-2007 18:50:31, unauthenticated, PROPFIND,
404 Not Found, 781 ms, /files/user-docs/user-57
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, PROPFIND,
207 Multi-Status, 125 ms, /files
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, LOCK, 200
OK, 31 ms, /files
25 Sep 2007 18:50:32 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, PROPFIND,
207 Multi-Status, 63 ms, /files
25 Sep 2007 18:50:32 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, MKCOL, 201
Created, 219 ms, /files/user-docs/user-57
25 Sep 2007 18:50:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:33, unauthenticated, PROPFIND,
207 Multi-Status, 281 ms, /files/3
25 Sep 2007 18:50:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:33, unauthenticated, PROPFIND,
207 Multi-Status, 0 ms, /files/user-docs/user-57
** 25 Sep 2007 18:52:33 - file-meta-store - INFO - DEADLOCK
VICTIM: Thread Thread[http-8081-Processor23,5,main] marked transaction
branch http-8081-Processor23-1190771433584-32 for rollback
** http-8081-Processor23, 25-Sep-2007 18:50:33, unauthenticated,
PROPFIND, 409 Conflict, 120063 ms, /files/user-docs/user-57/myfile.txt
25 Sep 2007 18:52:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor24, 25-Sep-2007 18:52:33, unauthenticated, CHECKOUT,
404 Not Found, 31 ms, /files/user-docs/user-57/myfile.txt
25 Sep 2007 18:52:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor24, 25-Sep-2007 18:52:33, unauthenticated, GET, 404
Not Found, 15 ms, /files/user-docs/user-57/myfile.txt
25 Sep 2007 18:52:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor24, 25-Sep-2007 18:52:33, unauthenticated, PUT, 201
Created, 109 ms, /files/user-docs/user-57/myfile.txt
25 Sep 2007 18:52:34 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor24, 25-Sep-2007 18:52:34, unauthenticated, PROPPATCH,
207 Multi-Status, 47 ms, /files/user-docs/user-57/myfile.txt
25 Sep 2007 18:52:34 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using

RE: ubuntu + tomcat5: error initializing domain

2007-09-27 Thread Miguel Figueiredo

Hello Pere,

 I'm not sure that Slide is Java 6 compatible. Have you tried using it with
a jdk5?

 Hope this helps,
 Miguel Figueiredo


-Original Message-
From: Pere Cortada Bonjoch [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 26 de Setembro de 2007 22:34
To: slide-user@jakarta.apache.org
Subject: ubuntu + tomcat5: error initializing domain

Hi,

I've just installed a fresh version of tomcat 5 on ubuntu 7.04 (Feisty).
When starting tomcat (/etc/init.d/tomcat5 start) I receive a exception
initializing Domain:

26 Sep 2007 23:00:57 - org.apache.slide.common.Domain - INFO -
Initializing Domain
java.lang.ExceptionInInitializerError
at org.apache.slide.common.Domain.init(Domain.java:413)
at org.apache.slide.common.Domain.init(Domain.java:366)
at org.apache.slide.common.Domain.init(Domain.java:329)
at
org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:253)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
.
.
.

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/slide.properties read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:323)
at
java.security.AccessController.checkPermission(AccessController.java:546)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.exists(File.java:731)
   .
   .


I think there must be an erro in ClassPath because it's searching  in
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ that it's my
$JAVA_HOME/jre/lib instead than in $CATALINA_HOME/common/classes or
WEB-INF folder.

Anyone know where it's defined the slide.war classpath to avoid searching
there?

Thanks a lot
PD: i've tried to create the slide.properties and give permissions,
but it didn't work

-
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: Newbee: Understanding question WebDAV-Protocoll

2007-09-14 Thread Miguel Figueiredo
Hello mate,

 If you need to do change the lastModified time of a resource, I would
consider that an hacker wish ;)
 No way you're going to be able to that, especially if you are using the
client API. You would need to change server behavior, and in a way that the
server would not follow webdav specification directives. The reason is
pretty straightforward: webdav specification states that resources have
live and dead properties, being the dead properties the ones we can
PROPPATCH, that is, we can create, update and remove them from the resource.
The live properties values, like lastModified, creationDate, contentLength,
contentType, are calculated in real time (maybe stored afterwards) with
server information. For that reason, they are protected, and can't be
changed by the user (I'll just copy paste and excerpt from rfc4918):

   Live Property - A property whose semantics and syntax are enforced by
   the server.  For example, the live property DAV:getcontentlength has
   its value, the length of the entity returned by a GET request,
   automatically calculated by the server.


 I believe that the protected method setGetLastModified purpose is to set
the date value on the local image of a remote resource. So overriding won't
help you on your intention.

 I don't know why you must change lastModified value, but if it is a
business decision, I would suggest you to create a new property for storing
the value that you want (ex: insert your namespace here:getLastModified).

Hope this helps,
Miguel Figueiredo

-Original Message-
From: pk_jsp [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 13 de Setembro de 2007 22:16
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hi Miguel,

I was wandering into this list and read this thread in whole. 
A very brief introduction: I am using Webdav to programatically (Java) bulk
import text files from local drive into EMC eRoom Server. This line explains
all my environment. I am using Slide client library. 

Can you help me in this specific question: By default the lastModified time
of imported file is the current time when it is imported. Can I override
this behaviour and retain the original time from source location.

The 'WebdavFile' class has no such method. But 'WebdavResource' has a method
setGetLastModified but it is protected. I think if I extend it in my custom
class I can achieve this. 

Any comments on this.

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a12663741
Sent from the Jakarta Slide - User mailing list archive at Nabble.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: Newbee: Understanding question WebDAV-Protocoll

2007-07-23 Thread Miguel Figueiredo
Hello Mario,

 You dont need Slide Server to use ECM Centera, just the slide client API.
It is available from jackarta downloads site, at
http://jakarta.apache.org/site/downloads/downloads_slide.cgi -
2.1_client.zip (for example). Then it's all about using the containing jar
(or source if u prefer) on your eclipse pdm-system project.

If you like, it would be great to test the webdav client API against the
Centera server, just to see webdav protocol working.

 Best Regards,
 Miguel Figueiredo


-Original Message-
From: Mario Becker-Reinhold [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 23 de Julho de 2007 8:07
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hello once again Miguel,

so I  prefer to use the webdav protocol as interface to the repository,
okay, I understand there is no other way excepting slide.
So what I have tried: I followed the steps to install Slide at 
http://wiki.apache.org/jakarta-slide/WckQuickStart
http://wiki.apache.org/jakarta-slide/WckQuickStart 
After checkout from CVS I goto Eclipse and start a new project Java project
from existing ant buildfile but there are some errors after project build.
That means there went something wrong with some JAR files? If you can have a
look at the screenshot below please (jaxp.jar,xmlapi.jar?)? I don't know,
what could have happened and how to fix it?
And another question is: Do you know for what exactly I will need this
patch described in 3) of the requirements of wck?

Thanks,
Mario

http://web42.bces-1445.de/computerhilfen/slide_eclipse_errors.jpg 


Miguel Figueiredo wrote:
 
 Hello Mario,
 
 If the ECM Centera reporitory is remote to the pdm-system, there is no
 doubt
 you will want to use slide's webdav client API. You could use ECM Centera
 API if the pdm-system would be in the same app server, but since you
 prefer
 to use the webdav protocol as interface to the repository (I would too, if
 communication overhead isn't very critical), slide's webdav client API is
 still the way to go.
 
 Best regards,
 Miguel Figueiredo
 

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a11738836
Sent from the Jakarta Slide - User mailing list archive at Nabble.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: Newbee: Understanding question WebDAV-Protocoll

2007-07-20 Thread Miguel Figueiredo
Hello Mario,

 Are you are planning to develop a server side application that integrates
webdav functionalities? If that is the case, I'm sorry to mislead you in my
last email recommending the use of slide's webdav client api. Never done
what you are attempting to do, but from what I have read, WCK is the way to
go.

 Also, the indirectly referenced error is a common java error that occurs
when some needed dependency is not available. When that happens write down
the needed class and google it until you finds the corresponding jar file.
Finally add that jar to your classpath. Repeat until no such error occurs.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Mario Becker-Reinhold [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 20 de Julho de 2007 8:00
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hello Miguel,

thanks for you answer, but if I understood you correctly then there are 3
ways to use WebDAV.
1st) using it with the Slide (complexest way)
2nd) using it with the wck framework
3rd) using it directly (simplest way)

So the 3rd alternative is the best for me, that means that I can use the
servlets api to create the objects directly in my java code, but now I'm
searching for a simple example. I'm hanging in eclipse library imports,
there is the message that a type cannot be resolved, because the type is
indirectly referenced by a class file. But which are the correct imports for
it? I added the %tomcat%\server\lib as external librarys to the project,
now I can make a instance from the WebdavServlet but if I want to call now a
method of the object I will get always this indirectly referenced error.

Regards
Mario Becker-Reinhold


Miguel Figueiredo wrote:
 
 
 Hello Mario,
 
  For accessing the webdav server programmatically, I recommend using
 slide's
 webdav client api - there is no problem using it in a eclipse project.
 
 Hope this helps,
 Miguel Figueiredo
 
 

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a11703120
Sent from the Jakarta Slide - User mailing list archive at Nabble.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: Newbee: Understanding question WebDAV-Protocoll

2007-07-20 Thread Miguel Figueiredo
Hello Mario,

If the ECM Centera reporitory is remote to the pdm-system, there is no doubt
you will want to use slide's webdav client API. You could use ECM Centera
API if the pdm-system would be in the same app server, but since you prefer
to use the webdav protocol as interface to the repository (I would too, if
communication overhead isn't very critical), slide's webdav client API is
still the way to go.

Best regards,
Miguel Figueiredo

-Original Message-
From: Mario Becker-Reinhold [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 20 de Julho de 2007 10:29
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hello Miguel,

it does'nt matter, let me explain it in a little bit more detail:
the goal of the project should be, that we are able to store engineering
data from an pdm-system in an archive (save + find).
The simplest way we wanne start is that a user of the pdm-system push a
button (label like Archive Construction) which starts a workflow
(collecting physical file of the construction(s) and collect + save all
metadatas in an xml-file). Both we want to transmit into the archive (e.g.
EMC's Centera - if you know about that). The archive system does support
WebDAV too, and now we (better I) try to evaluate if its generally possible
to send this data with WebDAV-protocoll and now I'm right on this point. It
is possible, and it is also the best way, because WebDAV is very abstract
(so that we are able to connect to any other system too) and its a common
standard, so that we dont need a proprietary implementation (which is better
for our customers and better for our sales to argue :-) ).
And now I'm still at this point to get the simplest way to send the data due
to webdav-protocoll. In my opinion I would say very, very simplified that we
only have to send a request!? So I dont need special functionallity which
comes with Slide, the core functions of webdav are already enough for us.
(Error and user handling will be done in the pdm-system)
I hope you understood my bad english... and you can help me once more.

Regards
Mario Becker-Reinhold


Miguel Figueiredo wrote:
 
 Hello Mario,
 
  Are you are planning to develop a server side application that integrates
 webdav functionalities? If that is the case, I'm sorry to mislead you in
 my
 last email recommending the use of slide's webdav client api. Never done
 what you are attempting to do, but from what I have read, WCK is the way
 to
 go.
 
  Also, the indirectly referenced error is a common java error that
 occurs
 when some needed dependency is not available. When that happens write down
 the needed class and google it until you finds the corresponding jar file.
 Finally add that jar to your classpath. Repeat until no such error occurs.
 
 Hope this helps,
 Miguel Figueiredo
 

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a11704952
Sent from the Jakarta Slide - User mailing list archive at Nabble.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: java client and slide connection with Encrypted password

2007-07-13 Thread Miguel Figueiredo
Hello mridu,

 In fact it's quite easy. You should configure tomcat to serve your pages
via (HTTPS): this means that any data, including credentials, going from/to
the server and client will be encrypted.

 If you don't need or don't want to use HTTPS, there are other ways for
authentication like, for example, NTLM. (see jcifs project)

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Mridu Rajkhowa [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 13 de Julho de 2007 6:13
To: slide-user@jakarta.apache.org
Subject: java client and slide connection with Encrypted password

hello

i am developing one simple application using jakarta slide 2.1. I am using
WebdavResource for connection to the slide. Now during connection i want to
send the  credentials   accross the network in encrypted form .
Is it possible ? Can any one help me out ?

with regards 
mridu


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



RE: Stopping the physical removal of empty folders...

2007-06-18 Thread Miguel Figueiredo

Hello Jeff,

 Are you using ACLs feature? It would be easy to do what you want by denying
write permissions to the folder you want to protect.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Jeff Hillier [mailto:[EMAIL PROTECTED] 
Sent: sábado, 16 de Junho de 2007 1:13
To: slide-user@jakarta.apache.org
Subject: Stopping the physical removal of empty folders...

Hi All-

I've been using slide for some time now with a FileStore (linux) and a J2EE 
Store (backed by an Oracle DB).

Currently when I delete all the files from a folder, the physical folder is 
removed from the file system. This is ok for most of my folders, but I have 
a few specific cases where if a folder has no files in it, I still need the 
folder to exist on the file system...

Short from adding a file that can't be deleted to the folder, how can I 
keep certain folders from ever being deleted once they have been created...?

Does the recursive delete happen in the content store? or is it a result of 
some other action?

any info on where to start looking would be greatly appreciated..


Thanks

Jeff



-
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: Stopping the physical removal of empty folders...

2007-06-18 Thread Miguel Figueiredo

Hello Jeff,

 That is an interesting behavior which I was not expecting. It should be
implementation specific of the TxStore all right, although I never looked
into that code.

Miguel

-Original Message-
From: Jeff Hillier [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 18 de Junho de 2007 17:55
To: Slide Users Mailing List
Subject: RE: Stopping the physical removal of empty folders...

Miguel-

Thanks for getting back to me..

I am using ACL's to control access but I'm not sure that will help..

The real problem isn't that the user has access to delete the folder, that 
part is done. The problem is that when all the files in the folder are 
gone, the folder is still present in the metadata slide keeps, so it shows 
up accessing it, but it isn't present on the underlying file system. The 
folder in question is required to be present on the file system for 
external applications..

If there is at least one file in the folder all is well, remove all the 
files and slide removes the folder from the file system because its empty 
but to the slide end user it appears as if it still exists...

Jeff

At 01:40 AM 6/18/2007, you wrote:

Hello Jeff,

  Are you using ACLs feature? It would be easy to do what you want by
denying
write permissions to the folder you want to protect.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Jeff Hillier [mailto:[EMAIL PROTECTED]
Sent: sábado, 16 de Junho de 2007 1:13
To: slide-user@jakarta.apache.org
Subject: Stopping the physical removal of empty folders...

Hi All-

I've been using slide for some time now with a FileStore (linux) and a J2EE
Store (backed by an Oracle DB).

Currently when I delete all the files from a folder, the physical folder is
removed from the file system. This is ok for most of my folders, but I have
a few specific cases where if a folder has no files in it, I still need the
folder to exist on the file system...

Short from adding a file that can't be deleted to the folder, how can I
keep certain folders from ever being deleted once they have been
created...?

Does the recursive delete happen in the content store? or is it a result of
some other action?

any info on where to start looking would be greatly appreciated..


Thanks

Jeff



-
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: How to disabling versionning?

2007-03-15 Thread Miguel Figueiredo
Hello folks,

 Actually, I made a study where I concluded that using a WebDAV server is
slightly better than an ftp server in performance and feature wise. But
that's just me.

 Nicolas, another way to use webdav would be the default TOMCAT webdav
servlet. It does not support versioning or ACLs, and I bet the files are
stored with the original name.

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Michael Oliver [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 14 de Março de 2007 13:18
To: 'Slide Users Mailing List'
Subject: RE: How to disabling versionning?

 
FileZilla as an ftp server will come closer to what you want than WebDAV.

Michael Oliver
Cell: 518-378-6154
Skype: MikeOliverAZ
Phone:702-866-9034

-Original Message-
From: Nicolas Gauthier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 13, 2007 6:09 AM
To: slide-user@jakarta.apache.org
Subject: How to disabling versionning?

Hi @all

Sorry for my bad english :P

I'm using Jakarta Slide for a few days in order to create directories and
uploading files in it.
For that I call mkcolMethod and putMethod on WebdavResources.
When I upload a file, this one is created with the '_1.0' suffix but I need
to access this files directly with the Files Explorer.

So I created a 'slide.properties' file wich contains '
org.apache.slide.versioncontrol=false' value and I put it in my
WEB-INF/classes directory in order to disable versionning, but it doesn't
works.
Is there anything else to configure (perhaps in Domain.xml)?

Thank you for your answers.



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



RE: How to disabling versionning?

2007-03-13 Thread Miguel Figueiredo

Hello Nicolas,

The file slide-kernel-2.1.jar got inside its own slide.properties file.
From what you're saying, the included properties file overrides your
parameter configuration, so it's not enough to add your file to the classes
folder.

 Try moving the slide.properties file from the jar file, or change it
according with your requirements.

 That should be enough for turning it off, but I'm not sure if your intent
of removing the '_1.0' will work by turning off the version control. I do
know it is possible because someone in this list needed the same thing some
time ago (screen scrapping time ftw).

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Nicolas Gauthier [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 13 de Março de 2007 12:10
To: slide-user@jakarta.apache.org
Subject: How to disabling versionning?

Hi @all

Sorry for my bad english :P

I'm using Jakarta Slide for a few days in order to create directories and
uploading files in it.
For that I call mkcolMethod and putMethod on WebdavResources.
When I upload a file, this one is created with the '_1.0' suffix but I need
to access this files directly with the Files Explorer.

So I created a 'slide.properties' file wich contains '
org.apache.slide.versioncontrol=false' value and I put it in my
WEB-INF/classes directory in order to disable versionning, but it doesn't
works.
Is there anything else to configure (perhaps in Domain.xml)?

Thank you for your answers.


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



RE: Big XML file indexing out of Memory error

2007-01-22 Thread Miguel Figueiredo

 Hello Aslam,

 Not sure if you already tried this, but set this options to the JVM:

 -Xms128m -Xmx768m -XX:MaxPermSize=256m

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Aslam Bari [mailto:[EMAIL PROTECTED] 
Sent: sábado, 20 de Janeiro de 2007 12:05
To: slide-user@jakarta.apache.org
Subject: Big XML file indexing out of Memory error


Dear all,

I m sending Big XML files to server about 30 - 50MB size. I have configured
SimpleXmlExtractor. When this extractor start parsing, Two things happend:-

1. Either Out Of Memory error occured.
2. Or The Request get Timed-Out.

I see the Code of SimpleXMLExtractor, it is using SAXBuilder with JDOM. Can
we use something else to speed up the process.

Thanks...
-- 
View this message in context:
http://www.nabble.com/Big-XML-file-indexing-out-of-Memory-error-tf3044992.ht
ml#a8464267
Sent from the Jakarta Slide - User mailing list archive at Nabble.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: CreateCollection

2007-01-15 Thread Miguel Figueiredo

Hello Frank,

 I've just confirmed your test scenario. I also believe this is a bug :|

Best Regards,
Miguel Figueiredo

-Original Message-
From: Punzo, Frank J (HTSC, IT) [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 12 de Janeiro de 2007 20:13
To: Slide Users Mailing List
Subject: RE: CreateCollection

I have tried this with no success. I'm wondering if there's a bug. I'm
logging into my system as slide/users/manager1. I'm trying to write to
folder /slide/files/folder1. The only way I can allow manager1 to write
files (using DavExplorer-Write File) is to Grant the write
permission. If I try to Grant anything but write it says unauthorized.
I've even tried adding every other permission nested underneath the
write permission. Below are the acls for folder1 the first set of acls
does not work for manager1. The second set of acls does work for
manager1. 

These permissions DO NOT allow WebDavExplorer File-Write File command
inside of /slide/files/folder1 when logged in as /slide/users/manager1
...

/slide/users/manager1   write-content   Grant   
/slide/users/manager1   unbind  Grant   
/slide/users/manager1   bindGrant   
/slide/users/manager1   write-propertiesGrant   
/slide/users/manager1   unlock  Grant   
/slide/users/manager1   write-acl   Grant
unauthenticated all Grant   /slide/files
propertyread-aclGrant
/slide/files
/slide/roles/root   all Grant   /slide/
all read-acl, 
write-acl, 
unlock  Deny/slide/
all readGrant   /slide/


These permissions DO allow WebDavExplorer File-Write File command inside
of /slide/files/folder1 when logged in as /slide/users/manager1 ...

/slide/users/manager1   write   Grant   
unauthenticated all Grant   /slide/files
propertyread-aclGrant
/slide/files
/slide/roles/root   all Grant   /slide/
all read-acl, 
write-acl, 
unlock  Deny/slide/
all readGrant   /slide/



Why would granting write work and granting every other permission that
sums to write not work? 

Has anyone seen this before? 

Can anyone suggest a work around? What I want to do is Grant the ability
to write files inside of a folder but deny the ability to create more
folders (collections) underneath. 

Thanks, 
Frank


-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 12, 2007 5:10 AM
To: 'Slide Users Mailing List'
Subject: RE: CreateCollection

Hello Frank,

 According to ACL webdav spec, it is possible. Checkout this link, in
the section 3.4.  DAV:write-content Privilege versus 3.9.  DAV:bind
Privilege:

http://www.ietf.org/rfc/rfc3744.txt 

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Punzo, Frank J (HTSC, IT) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 11 de Janeiro de 2007 18:17
To: slide-user@jakarta.apache.org
Subject: CreateCollection

I have Slide working on our Weblogic 8.1 environment. I have figured out
how to add users/roles and to grant access to resources. One question...
can someone recommend the best way to grant a role the ability to write
files in a directory... but deny the ability to create sub-directories
underneath it. I want to set up a structure for people (a taxonomy) and
allow them the ability to write files into it but don't want people
adding more directories. Is this possible? 

--Frank




*
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited.  If
you are not the intended recipient, please notify the sender immediately
by return e-mail, delete this communication and destroy all copies.

*



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



*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender

RE: CreateCollection

2007-01-12 Thread Miguel Figueiredo
Hello Frank,

 According to ACL webdav spec, it is possible. Checkout this link, in the
section 3.4.  DAV:write-content Privilege versus 3.9.  DAV:bind
Privilege:

http://www.ietf.org/rfc/rfc3744.txt 

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Punzo, Frank J (HTSC, IT) [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 11 de Janeiro de 2007 18:17
To: slide-user@jakarta.apache.org
Subject: CreateCollection

I have Slide working on our Weblogic 8.1 environment. I have figured out
how to add users/roles and to grant access to resources. One question...
can someone recommend the best way to grant a role the ability to write
files in a directory... but deny the ability to create sub-directories
underneath it. I want to set up a structure for people (a taxonomy) and
allow them the ability to write files into it but don't want people
adding more directories. Is this possible? 

--Frank



*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



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



RE: ACL : all privileges set, but can't add files

2007-01-03 Thread Miguel Figueiredo

Hello Claire, Olivier,

 I believe you found a known bug in Slide implementation.

 Checkout this links:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352
 http://issues.apache.org/bugzilla/show_bug.cgi?id=37022

 Best Regards,
 Miguel Figueiredo

-Original Message-
From: Olivier Etienne [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 8:48
To: Slide Users Mailing List
Subject: Re: ACL : all privileges set, but can't add files

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:

 Hello,
 I manupulate the ACL, and I've got a problem, then I really don't
 anderstand
 :
 to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
 files, open files, BUT if he tries to add a file or create a folder, I
 obtain a 403 error : forbidden : access denied  !
 Is there somebody who has already obtained the type of problem?
 Thank you,
 Claire D.







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



RE: ACL : all privileges set, but can't add files

2007-01-03 Thread Miguel Figueiredo
Hello Claire,

 Did you check the second link? It almost explains the same bug you
described. The difference is that you didn’t said that in one of the parent
folders, the user did not had read privileges.

 The bug is just that: if in any part of a folder parent tree, a user does
not have read priv, from that point down in the folder tree, the user will
not be able to create any new file or folder.

 I don’t know when the bug will be corrected, and not seeing progress on it
for some long time now. I already tried to correct it, but due to lack of
time and hard time to figure out a solution that wouldn't break any other
thing in Slide code, the bug still runs wild.

Best Regards,
Miguel
 

-Original Message-
From: Claire D. [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 11:11
To: 'Slide Users Mailing List'
Subject: RE: ACL : all privileges set, but can't add files

Hi,
Thank you for your answers.
I'm not sure that I've exactly the same error, because I don't give rights
to the owner of the folder, but to a user (from /users). If I give all
rights to a role, it's the same problem. Only root can do what he wants.
I look at the database table content, and it's well stored.
How solves it?

Claire D.
 



-Message d'origine-
De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 3 janvier 2007 10:29
À : 'Slide Users Mailing List'
Objet : RE: ACL : all privileges set, but can't add files


Hello Claire, Olivier,

 I believe you found a known bug in Slide implementation.

 Checkout this links:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352
 http://issues.apache.org/bugzilla/show_bug.cgi?id=37022

 Best Regards,
 Miguel Figueiredo

-Original Message-
From: Olivier Etienne [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 8:48
To: Slide Users Mailing List
Subject: Re: ACL : all privileges set, but can't add files

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:

 Hello,
 I manupulate the ACL, and I've got a problem, then I really don't
 anderstand
 :
 to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
 files, open files, BUT if he tries to add a file or create a folder, I
 obtain a 403 error : forbidden : access denied  !
 Is there somebody who has already obtained the type of problem?
 Thank you,
 Claire D.







-
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: Customizing Directory listing for /files page

2007-01-02 Thread Miguel Figueiredo

Hello Paul,

 I don't know if you want to do this only for the /slide/files/ path, or to
any other path in /slide/ namespace. Also, I'm not looking to the option of
changing Webdav Servlet, and the way it renders folders.
 Anyway, have you tried to register and map another servlet before Webdav,
and make it render the listing before Webdav servlet? By the way, isn't that
what you wanted to do with Sitemesh sometime ago? Had you got some problems
with that approach?

 Best regards,
 Miguel Figueiredo

-Original Message-
From: Paul Hammant [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 22 de Dezembro de 2006 17:43
To: Slide Users Mailing List
Subject: Customizing Directory listing for /files page

Is there a way to set a handler/renderer for this page?

Or can behavior be changed so that /files/index.html or better still / 
files/index be presented instead of the default directory list?

- Paul

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


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



RE: Has anybody some experience profiling slide with eclipse?

2007-01-02 Thread Miguel Figueiredo

Hello Aslam,

 Congratulations on your success! :)
 I've saw people use Eclipse default profiler (TPTP - test  performance
tools platform). It seemed quite straightforward to use; why don't you give
it a try?

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Aslam Bari [mailto:[EMAIL PROTECTED] 
Sent: sábado, 23 de Dezembro de 2006 5:26
To: slide-user@jakarta.apache.org
Subject: Has anybody some experience profiling slide with eclipse?


Dear all,
I have successfully setup slide with in eclipse and also tomcat. I can debug
easily slide code. Now i want to use a good profiler for profiling slide
code, has anybody some experience with it. Is there is any good tutorial for
doing this? 

Thanks...
-- 
View this message in context:
http://www.nabble.com/Has-anybody-some-experience-profiling-slide-with-eclip
se--tf2873644.html#a8031805
Sent from the Jakarta Slide - User mailing list archive at Nabble.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: PUT to a Microsoft Sharepoint working with Slide

2006-12-13 Thread Miguel Figueiredo

Hey Chandler,

 Many thanks for this important piece of the information!
 I'm sure it can be used in many other situations related with NTLM
authentication.
 
Best regards,
Miguel Figueiredo


-Original Message-
From: Andy Chandler [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 13 de Dezembro de 2006 17:53
To: slide-user@jakarta.apache.org
Subject: PUT to a Microsoft Sharepoint working with Slide

Well since I've seen others with similar issues I thought I'd share how
I managed to get it working - it does take a modification to both the
slide and the httpclient libraries.   Please Note I've done my work with
HTTPClient 3.01 and Slide 2.1 (I've also done the same work with the
trunks of both projects and the result is the same)
 
 
Problem:   Need to upload files to Microsoft Sharepoint with NTLM
authentication.   NTLM authentication will cause an exception about
unbuffered enclosing entity can't be resent or retried (I'm sorry I no
longer get the message so I can't paste it in).   Contrary to other
messages if the server is Microsoft and the client is java turning off
expect-continue does not fix the problem.   The problem stems from the
fact that the Put Method on http client is setting the size of the
content when it creates an InputStreamRequestEntity.   This causes the
entity to not buffer itself (Why you would want this I don't know since
it only buffers 4k at a time).   I haven't tried large files yet so
there may still be additional work that has to be done to get this to
work out correctly if the file is large.   Anyhow the buffering is
important simply because when you try to put a file to an NTLM
authenticated resource the first attempt will fail with a not
authorized.   This will cause a challenge response handshake and then a
retry happens.   The problem is with an unbuffered input stream the
retry does not occur because the enclosing entity claims its not
repeatable.   Failure every time.
 
 
 
My solution which is not necessarily elegant but may help some desperate
developer out there consists of the following changes:
 
1: In the jakarta.commons.httpclient project modify:
org.apache.commons.httpclient.methods.InputStreamRequestEntity
When contentlength is declared set it equal to
CONTENT_LENGTH_AUTO  // This change is probably not absolutely required
but its what I did.
org.apache.commons.httpclient.methods.EntityEnclosingMethod
Modify method generateRequestEntity - change the new for
new InputStreamRequestEntity to use the single arge constructor   as in
 new InputStreamRequestEntity(is)// By not passing the size it
stays in CONTENT_LENGTH_AUTO mode which permits buffering.
 
 
2:  In the Slide webdavclient project modify 
org.apache.webdav.lib.WebdavResource
In the put(String,InputStream) method remove the content length
chunked set command.
 
 
 
Sample code that now works:
 
public static void main(String[] args){
 
try {
File file = new File(src);
 
if (file.exists()) {
System.out.println(Uploading ' + file.getCanonicalPath()
+ ' to ' + dest + ' );
uploadWebDav(file);
 
 
} catch (Exception e) {
System.out.println(e.getMessage());
}
 
 
private static void uploadWebDav(File file) {
WebdavResource webdavResource = null;
try {
NTCredentials creds2 = new NTCredentials(myusername, mypassword,
myclientpc, NTDOMAIN); 
 
 
 
webdavResource = new WebdavResource(
http://SHAREPOINTSERVER/Shared Documents, creds2);
 
String[] list = webdavResource.list();
for (String s :list){
System.out.println(s);
}
 
 
 
System.out.println(Uploading);
// Note - use the putmethod where specify a destination path and that
you include the desired filename 
if (webdavResource.putMethod(http://SHAREPOINTSERVER/Shared
Documents/cofs9.zip , new FileInputStream(file))) {
System.out.println(succeeded.);
 
}
} catch (Exception e1) {
System.out.println(e1.getMessage());
}
}
 
 
 
 
 
 
 
 
 


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



RE: web.xml's JSP interception

2006-12-12 Thread Miguel Figueiredo

Hello Paul, Waling,

 Many thanks for your feedback! I'll keep tuned for more of it :)

 Regarding paths, Waling suggestion rings true to me. I'll give a word of
warning though, if the users, roles, or other paths are not well defined,
slide features will stop to work, or worse, slide will stop altogether. For
example, if you don’t have the users path defined, it won't be possible to
define ACLs to any user.
 Never tried to use that web.xml configuration parameter, so I don't know
how it will behave if you configure it to serve the /files path (will ACL
feature still work? If yes, how do we identify a user in a, for example, ACL
command?).

Many thanks,
Miguel

-Original Message-
From: Waling Dijkstra [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 12 de Dezembro de 2006 12:00
To: Slide Users Mailing List
Subject: Re: web.xml's JSP interception

Paul,

you might consider setting param-namescope/param-name
to param-value/files/param-value in web.xml.
This will disable access to /users etc.. over webdav though. (unless I've
overlooked something) (anyone?)

rgrds,

Waling



On 12-12-2006 06:11, Paul Hammant [EMAIL PROTECTED] wrote:

 Miguel,
 
 Yes you're right, this is Sitemesh and Slide merged into one web
 app.  We'll tell more another day! - perhaps when we've done
 something interesting with the concepts.
 
 In this case the JSP is the Sitemesh decorator (not under slide
 control) and it works sweetly you'll be pleased to know.
 
 We wonder if it is possible to remap the directories for slide.  For
 example, i wish I could have Slide serve files-under-dav control
 from / rather than /files.  With exceptions for other directories
 like /decorators.  We have tried to change Domain.xml and change the
 relevant section, but it does not seem to change the preferred
 location - /files.  We kinda want to hide the other directories /
 users /groups etc and only concentrate on files under DAV control.
 To get Slide to kinda work like mod_dav does :)
 
 Thoughts?
 
 - Paul
 
 On Dec 11, 2006, at 8:16 AM, Miguel Figueiredo wrote:
 
 Hello Hammant,
 
  If you remove the configuration fragment, the web server will
 handle de JSP
 file before Slide do. That means, it will compile the JSP, and
 serve you
 it's compiled contents (witch probably might present you with an
 internal
 server error page).
 
  Since you're asking that question, seems to me that you are trying to
 deploy a web application inside slide namespace. Although it is
 interesting,
 don't know if it brings more problems that anyone can handle.
  I don't know Sitemesh, but is it true? You're trying to deploy a
 web app
 inside slide namespace? If yes, I would be very interested to know any
 problems you might encounter.
 
 Best regards,
 Miguel Figueiredo
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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


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



RE: web.xml's JSP interception

2006-12-12 Thread Miguel Figueiredo

Hello Paul,

 The usual configuration for /users path means that it's where slide does
its user lookup. If /users does not exist, slide might not work at all, if
it's empty, we won't be able to identify any single user.
 Anyway since you had success with the web.xml parameter configuration, I
can only speculate that although only /files is publish, internally slide
does know where to find the needed /users path (if it is the case, that's
news for me).

Best Regards,
Miguel Figueiredo

-Original Message-
From: Paul Hammant [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 12 de Dezembro de 2006 19:14
To: Slide Users Mailing List
Subject: Re: web.xml's JSP interception

The web.xml change works nicely - thanks.

The purpose of /users is so that they can be edited over DAV (for  
those on suitable ACLs) ?

- Paul

On Dec 12, 2006, at 6:42 AM, Miguel Figueiredo wrote:


 Hello Paul, Waling,

  Many thanks for your feedback! I'll keep tuned for more of it :)

  Regarding paths, Waling suggestion rings true to me. I'll give a  
 word of
 warning though, if the users, roles, or other paths are not well  
 defined,
 slide features will stop to work, or worse, slide will stop  
 altogether. For
 example, if you don’t have the users path defined, it won't be  
 possible to
 define ACLs to any user.
  Never tried to use that web.xml configuration parameter, so I  
 don't know
 how it will behave if you configure it to serve the /files path  
 (will ACL
 feature still work? If yes, how do we identify a user in a, for  
 example, ACL
 command?).

 Many thanks,
 Miguel

 -Original Message-
 From: Waling Dijkstra [mailto:[EMAIL PROTECTED]
 Sent: terça-feira, 12 de Dezembro de 2006 12:00
 To: Slide Users Mailing List
 Subject: Re: web.xml's JSP interception

 Paul,

 you might consider setting param-namescope/param-name
 to param-value/files/param-value in web.xml.
 This will disable access to /users etc.. over webdav though.  
 (unless I've
 overlooked something) (anyone?)

 rgrds,

 Waling



 On 12-12-2006 06:11, Paul Hammant [EMAIL PROTECTED] wrote:

 Miguel,

 Yes you're right, this is Sitemesh and Slide merged into one web
 app.  We'll tell more another day! - perhaps when we've done
 something interesting with the concepts.

 In this case the JSP is the Sitemesh decorator (not under slide
 control) and it works sweetly you'll be pleased to know.

 We wonder if it is possible to remap the directories for slide.  For
 example, i wish I could have Slide serve files-under-dav control
 from / rather than /files.  With exceptions for other directories
 like /decorators.  We have tried to change Domain.xml and change the
 relevant section, but it does not seem to change the preferred
 location - /files.  We kinda want to hide the other directories /
 users /groups etc and only concentrate on files under DAV control.
 To get Slide to kinda work like mod_dav does :)

 Thoughts?

 - Paul

 On Dec 11, 2006, at 8:16 AM, Miguel Figueiredo wrote:

 Hello Hammant,

  If you remove the configuration fragment, the web server will
 handle de JSP
 file before Slide do. That means, it will compile the JSP, and
 serve you
 it's compiled contents (witch probably might present you with an
 internal
 server error page).

  Since you're asking that question, seems to me that you are  
 trying to
 deploy a web application inside slide namespace. Although it is
 interesting,
 don't know if it brings more problems that anyone can handle.
  I don't know Sitemesh, but is it true? You're trying to deploy a
 web app
 inside slide namespace? If yes, I would be very interested to  
 know any
 problems you might encounter.

 Best regards,
 Miguel Figueiredo




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





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


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




-
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: web.xml's JSP interception

2006-12-11 Thread Miguel Figueiredo
Hello Hammant,

 If you remove the configuration fragment, the web server will handle de JSP
file before Slide do. That means, it will compile the JSP, and serve you
it's compiled contents (witch probably might present you with an internal
server error page).

 Since you're asking that question, seems to me that you are trying to
deploy a web application inside slide namespace. Although it is interesting,
don't know if it brings more problems that anyone can handle.
 I don't know Sitemesh, but is it true? You're trying to deploy a web app
inside slide namespace? If yes, I would be very interested to know any
problems you might encounter.

Best regards,
Miguel Figueiredo

-Original Message-
From: Paul Hammant [mailto:[EMAIL PROTECTED] 
Sent: domingo, 10 de Dezembro de 2006 20:44
To: slide-user@jakarta.apache.org
Cc: Peter Barry; [EMAIL PROTECTED]
Subject: web.xml's JSP interception

This fragment exists in web.xml :

 servlet-mapping
 servlet-namewebdav/servlet-name
 url-pattern*.jsp/url-pattern
 /servlet-mapping

Slide works if its taken out - with that slide-bundled version of  
tomcat.

If present it stops Slide working with Sitemesh.

Is the fragment needed anymore ?

- Paul

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


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



RE: How to store user data

2006-11-13 Thread Miguel Figueiredo
Hello Martin,

 

 There is no way you can store user info with slide software components. Not
directly anyway.

 I can think of 2 possible indirect solutions for storing user information.
But in any of these solutions you should use the Slide events feature for
automation purposes. As you proposed, to know witch files were recently
accessed by the user has its safest implementation on the server side. And
to do it on server side, you must change or extend the code (I don't
recommend), or you must listen events (ex: 'file was read'), and trigger
actions (ex: 'update user info') thereafter. These trigger actions could be
the following:

 

* By creating special files for each user, and storing content (xml
content for example) with the user relevant information in the slide
repository - similar with what it is done in unix or linux in .bashrc,
.bash_profile files. Alternatively, you could PROPPATCH a existing file or
directory with an xml document containing the user info.

* By creating a database schema, and storing the information there.

 

 You can find information about slide events on this link:

 
http://jakarta.apache.org/slide/javadoc/org/apache/slide/event/package-summa
ry.html 

 

Hope this helps,

Miguel Figueiredo

 

 

-Original Message-
From: Martin Petras [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 10 de Novembro de 2006 16:54
To: Slide Users Mailing List
Subject: How to store user data

 

Hi all,

can you advise me how to store user info? For instance I need to store 

the info about which files was recently accessed by user.

I use JNDIPrincipalStore with connection to LDAP to handle users and 

roles. JNDIPrincipalStore is readonly, so I can not write the user data 

to i.e. /users/john/lru_files.txt.

 

Thanks.

 



*/Martin Petráš/*

Java Developer Junior

 

*/SK Management Systems, s.r.o./*

Záhradnícka 72, SK-821 08 Bratislava

e-mail: petras //at character// skms.sk , www.skms.sk http://www.skms.sk

 

 

http://www.skms.sk

 

 

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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



RE: Action Required on the upgradation of EA

2006-11-10 Thread Miguel Figueiredo
Hello Rajan,

 This is the Slide Users mailing list, and we try to help each others
working with Slide if we can. It seems you are having difficulties with some
other software on your environment, so I don't know how any of us could help
you.

 Best Regards,
 Miguel Figueiredo


-Original Message-
From: Rajan R [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 10 de Novembro de 2006 6:18
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
slide-user@jakarta.apache.org
Subject: Action Required on the upgradation of EA

Hi All,
We are facing some problems over the upgradation of Jacada EA fromk 3.1 to
3.5. Does anybody have the knowledge on the upgradation? We are getting some
exceptions and also we had got an error like:
C:\MapMaker\src\addSSIRS\addSSIRS_custom.java:53: incompatible types
found   : com.cnt.mapstudio.gbbasic.GBMethod
required: com.cnt.mapstudio.gbbasic.stream.GBStreamMethod
GBStreamMethod onFailMethod = getMap().getMethod(finalization);
 
If anybody knows on that, pls help us on the upgradation..

 Thanking You,

 - Rajan



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



RE: MOVE command when renaming files.

2006-11-06 Thread Miguel Figueiredo

Hello Zeus,

 You intend to use Slide API or, you are interested in accessing Slide
trough the webdav protocol?
 If you're only interested in the webdav protocol, it's possible to listen
to events when the move dav command is invoked.

 Best regards,
 Miguel Figueiredo

-Original Message-
From: Zeus Courtois [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 1 de Novembro de 2006 19:13
To: Slide Apache
Subject: MOVE command when renaming files.

Hi, 

I noticed that when I rename a file, the MOVE command is issued and it goes
through the process of recreating the metadata and the file content with
just another name, then deleting the previous metadata and content file by
calling the delete( ) and removeRevisionContent(...) respectively on the
XMLResourceDescriptor and TxFileContentStore classes. 

I would like to know if there is a way of knowing, within these
delete/remove methods, if they were called due to a renaming of a file
(MOVE) or due to the user actually hitting the delete key. Or if there is
a way I can put a flag on some other class that would eventually let me
know that the file is being removed due to an actual deletion and not
because of a MOVE command.

Thanks in advance,

Zeus Courtois





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



RE: Restrict DevExplorer to Browse Slide

2006-10-30 Thread Miguel Figueiredo

Hello Iamas,

 We implemented just that in our software with the user.agent http property.
We changed the client user.agent to an expectable value at server side, and
then we filter out all write requests (we wanted to forbid only the write
operations) to the slide servlet not respecting the expected user.agent
value.
 It's not full-proof since anyone knowing our expectable user-agent value,
could work around the http filter. We are still safe because he would only
be able to do write operations if you permitted to do it in the Slide ACLs.
Points given, I believe it's a quite effective, and low-budget, solution.

 In your case, this http filter would need to filter out every kind of http
request arriving at slide's servlet.

Best regards,
Miguel Figueiredo
 
-Original Message-
From: Aslam Bari [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 30 de Outubro de 2006 6:16
To: slide-user@jakarta.apache.org
Subject: Restrict DevExplorer to Browse Slide


Hello All,

I have made a program which shows and manipulate slide contents. I don't
want any third party tool like DevExplorer to show or manipulate slide
contents. Can i make such type of restrictions. Can i confugure slide to
only work with my propgram and not to give other software permissions to
explore or manipulate slide contents..

Any help will be appreciated
Thanks...
-- 
View this message in context:
http://www.nabble.com/Restrict-DevExplorer-to-Browse-Slide-tf2537590.html#a7
069571
Sent from the Jakarta Slide - User mailing list archive at Nabble.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: Multi status response on DELETE and MOVE

2006-09-27 Thread Miguel Figueiredo

Hello Thomas,

 I recall from webdav spec that it's possible to a request partially fail
when not all pre-requisites are satisfied.
 In your DELETE request, I suppose that some file/folder might had some
status that did not allow you to delete it. For example, someone made a LOCK
on a resource and you didn't send the lock token in the DELETE request.
Other things might have happened, just check out the multi-status message
contents.

Hope this helps,
Miguel Figueiredo 

-Original Message-
From: Thomas Bellembois [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 27 de Setembro de 2006 13:12
To: Slide Users Mailing List
Subject: Multi status response on DELETE and MOVE

Hello,

Sometimes, trying to delete or move a resource, the action fails with a 
Multi status response. What does it mean ? How to solve this ?
TP-Processor51, 27-sept.-2006 11:22:08, tbellemb, DELETE, 207 
Multi-Status, 122 ms, 
/files/partages/Recherche/SPM/enseignement/electronique/

Thanks,

Thomas


-- 
..oO( Thomas Bellembois )Oo..
CRI - University of Rennes 1 (France)
http://esup-portail.org
.

-
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: concatenating files

2006-09-11 Thread Miguel Figueiredo

Hello Tiffany,

 Yes it's possible, thanks to Slide's event feature. Check this out:

http://jakarta.apache.org/slide/javadoc/org/apache/slide/event/package-summa
ry.html 

 The feature allows the detection of certain actions and allows the
addiction of behavior to them, before or after the actions have been
processed. For example, you could produce a service that detects that
someone uploaded 2 files, and then concatenates the two files ;).

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Tiffany Dodge [mailto:[EMAIL PROTECTED] 
Sent: domingo, 10 de Setembro de 2006 10:19
To: slide-user@jakarta.apache.org
Subject: concatenating files

Hello,

I have a question about concatenating files that I feel is probably  
not possible to do using slide's client library (and Apache's  
mod_dav), but I'm trying to be optimistic.

After a client application uploads two files using slide, is it  
possible for the client app to then somehow concatenate the two files  
into one file on the webdav server?

Any help or ideas would be appreciated.

Thanks,
Tiff


-
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: Getting All Properties Std. and Custom

2006-09-07 Thread Miguel Figueiredo

Hello Aslam,

 If you're asking about the last remark, it's just a simple workaround for a
property list management. As an example, you could use this solution: create
a DB table with a OID and string called PROPERTY_NAME. Then use your
favourite O/RM tool to access the database table and allow you to read and
write into it. When you need to find all defined custom properties, just
list the contents of that table.
 Another way to do this, witch I called creepy (you have to figure out how
the persistence model works) in the last mail, was to access slide database
tables, and query them for distinct property names.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: aslam bari [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 7 de Setembro de 2006 4:46
To: Slide Users Mailing List
Subject: RE: Getting All Properties Std. and Custom

Hi Miguel,
  Yes you got my point, what i need. You have given me suggestion. Can you
little more explain on your idea , how to do that.

Miguel Figueiredo [EMAIL PROTECTED] wrote:
  
Hello Marco, Aslam,

Don't know how I missed Julian's remark on availability of this kind of
query, so cut out the first part of my previous message, leaving only second
part, witch would still work although it kind of creepy (accessing Slide's
meta information DB directly).

Anyway, concerning Marco question transcribed below. From what I
understood, Aslam wants to know, with one request, every custom property
defined in the repository. He would next populate a list with it, so users
could use the same property instead of creating new similar ones. Means that
the request should be done globally in the repository, and that's thousands
of documents. Because the query must be done globally, I would not advise to
make a query for every resource in the repository and then filter down on
client side (even client side): just imagine matching 100 000 documents,
building a DASL result of it (xml), and then parse it.

Aslam, you could do it easily if you managed the possible property list
outside Slide (keeping a property name list in a configuration file or DB,
and then retrieve that information instead of querying Slide).

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Marco Ferretti [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 6 de Setembro de 2006 5:55
To: Slide Users Mailing List
Subject: Re: Getting All Properties Std. and Custom

On Wednesday 06 September 2006 05:23, aslam bari wrote:
 Ok ,
 First of all it is not possible in my program. Because in my program a
 user can make a property in only one custom namespace which is defined by
 my program and hide from user. So now there are only two namespace DAV:
and
 my custom namespace. So, Now i can get standard DAV: properties of a
 resource which are not more than 15-16. But what about custom namespace
 properties because i don't know on which resource and by what name and how
 many properties a user has given. Help Plz.

Hi Aslam ,

as Julian already told you, it is not possible to create a query that
filters 
by namespace. What you have to do is filter your data manually after the 
DASL query's been performed.

Actually, apart from the possibility to create a query that filters your
data 
server side ( and which we discovered not being possible) , I don't see ( = 
understand ) why you need to know the number of custom properties for each 
resource BEFORE parsing the result of the DASL query.

ciao

Marco

-- 
You are capable of planning your future.


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




-
 Here's a new way to find what you're looking for - Yahoo! Answers 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get
it NOW


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



RE: Lucene Words Documents Frequency

2006-09-07 Thread Miguel Figueiredo

 Hello again Aslam,

 From my small experience with DASL and Lucene, I inform you that DASL does
not support score or words frequency. To retrieve that information you have
to access Lucene search API.

 Best regards,
 Miguel Figueiredo


-Original Message-
From: Aslam Bari [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 7 de Setembro de 2006 4:56
To: slide-user@jakarta.apache.org
Subject: Lucene Words Documents Frequency


Dear all,
I have asked this question many times. Does any body has an experience with
LuceneContentIndexer with Slide. I want to get Documents words frequency
List with the DASL Result. My searching is almost complete. But i havenot
configured this feature yet. How can i get words frequency in a document or
Score etc.

Thanks...
-- 
View this message in context:
http://www.nabble.com/Lucene-Words-Documents-Frequency-tf2230981.html#a61838
17
Sent from the Jakarta Slide - User forum at Nabble.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: Getting All Properties Std. and Custom

2006-09-06 Thread Miguel Figueiredo

 Hello Marco, Aslam,

 Don't know how I missed Julian's remark on availability of this kind of
query, so cut out the first part of my previous message, leaving only second
part, witch would still work although it kind of creepy (accessing Slide's
meta information DB directly).

 Anyway, concerning Marco question transcribed below. From what I
understood, Aslam wants to know, with one request, every custom property
defined in the repository. He would next populate a list with it, so users
could use the same property instead of creating new similar ones. Means that
the request should be done globally in the repository, and that's thousands
of documents. Because the query must be done globally, I would not advise to
make a query for every resource in the repository and then filter down on
client side (even client side): just imagine matching 100 000 documents,
building a DASL result of it (xml), and then parse it.

 Aslam, you could do it easily if you managed the possible property list
outside Slide (keeping a property name list in a configuration file or DB,
and then retrieve that information instead of querying Slide).

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Marco Ferretti [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 6 de Setembro de 2006 5:55
To: Slide Users Mailing List
Subject: Re: Getting All Properties Std. and Custom

On Wednesday 06 September 2006 05:23, aslam bari wrote:
 Ok ,
   First of all it is not possible in my program. Because in my program a
 user can make a property in only one custom namespace which is defined by
 my program and hide from user. So now there are only two namespace DAV:
and
 my custom namespace. So, Now i can get standard DAV: properties of a
 resource which are not more than 15-16. But what about custom namespace
 properties because i don't know on which resource and by what name and how
 many properties a user has given. Help Plz.

Hi Aslam ,

as Julian already told you, it is not possible to create a query that
filters 
by namespace. What you have to do is filter your data manually after the 
DASL query's been performed.

Actually, apart from the possibility to create a query that filters your
data 
server side ( and which we discovered not being possible) , I don't see ( = 
understand ) why you need to know the number of custom properties for each 
resource BEFORE parsing the result of the DASL query.

ciao

Marco

-- 
You are capable of planning your future.


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



RE: Getting All Properties Std. and Custom

2006-09-04 Thread Miguel Figueiredo

Hello Aslam,

 I believe it's possible, but not sure, that DASL supports your query
(Julian is the expert there). And it doesn't need to be very performance
expensive if you activate slide's integrated indexing. You can find some
instructions for that in here:

http://wiki.apache.org/jakarta-slide/DaslConfiguration 

 The link also suggests another option, witch would be accessing the
metainformation database directly, and perform your 'DISTINCT' sql query.

Hope this helps,
Miguel Figueiredo


-Original Message-
From: aslam bari [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 4 de Setembro de 2006 4:11
To: Slide Users Mailing List
Subject: Re: Getting All Properties Std. and Custom

Hi Julian,
  I think you are not getting my point. Let me explain what i need:-
   
  I want to make a List Box on a form which will show all the properties
available in slide for all resources. We know some STD. properties like
displayname, contentlenght etc, they should come in List Box. If other user
have added their properties, they should also come in  the List Box. May be
some users made property with same name. But In List Box Property names
should come only one time no duplicate means (Unique).
   
  How can i achive this? If i use allProp that is very expensive by the
performance point of view. I have found a solution. I first Add All the STD.
property in List Box that will be 15 or 16. And tell user to add their
CUSTOM property in different namespace. But now how can i propfind allprop
in that custom namespace.
   
  Now i hope for the positive response.
  Thanks in advance.

Julian Reschke [EMAIL PROTECTED] wrote:
  Aslam Bari schrieb:
 Hi Julian, Thanks for reply.
 
 I am making cusotm properteis using DAVExplore and now i am making the
 properties in CUSTOM: namespace. Now the questions are:-
 
 1.) I am giveing propfind method with , it is giving me all the
 properteis of all the resources. The properties names like displayname,
 creationdate .. repeated for every resource. But i want only to get unique
 names of properties. If i am giving this request, then it is performance

What do you mean by unique names?

 issue and very havy. Is not there is a way to get all unique properties
 names.
 
 2.) How to search or get allprop in my Custom namespace.

You can select properties by property names, but that doesn't allow 
wildcards (such as all properties in a certain namespace). See 
.

Best regards, Julian

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




-
 Here's a new way to find what you're looking for - Yahoo! Answers 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get
it NOW


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



RE: Webdav Access with Jakarta Slide on Windows Sharepoint

2006-07-06 Thread Miguel Figueiredo

Hello again,

 Try to turn off keep-alive connections and the Expect :100 Continue http
header from being sent by the your client. Details of how to do that should
be present on the Jakarta Commmons Http Client documentation (slide webdav
client is based on that project).

Hope this helps,
Miguel

-Original Message-
From: Mosimann Matthias [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 6 de Julho de 2006 10:02
To: Slide Users Mailing List
Subject: AW: Webdav Access with Jakarta Slide on Windows Sharepoint

Hi Miguel 


First of all thank you for your answer. What exactly I have to turn off? How
can I do that?

regards
Matthias 

-Ursprüngliche Nachricht-
Von: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 6. Juli 2006 10:31
An: 'Slide Users Mailing List'
Betreff: RE: Webdav Access with Jakarta Slide on Windows Sharepoint


 Hello,

 There is a known interoperability problem between Tomcat Server and dotnet
client, related with keep-alive problems and the HTTP header EXPECT : 100
CONTINUE. Maybe it's a vice-versa... just a tip: try to turn them off and
repeat the experience.

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Mosimann Matthias [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 6 de Julho de 2006 7:18
To: slide-user@jakarta.apache.org
Subject: Webdav Access with Jakarta Slide on Windows Sharepoint

Hi Everyone

I'm new to the list and new to jakarta slide and I have a problem. I wrote a
small and simple webdav client in Java with the jakarta slide libraries. I
want open a session to a Windows Sharepoint Workspace, upload only one file
and close the session. Here is my code (I deleted the values, of course
there is something in there):

[Code]
String hostUrl = ;
String userName = ;
String password = ;
String hostAdd = ;
String domain = ;

NTCredentials creds = new NTCredentials(userName, password, hostAdd,
domain); HttpURL host = new HttpURL(hostUrl); WebdavResource wdr = new
WebdavResource(host, (NTCredentials)creds, WebdavResource.DEFAULT,
DepthSupport.DEPTH_1);

File fn = new File(remote-e.txt);
wdr.putMethod(fn);
wdr.close();
[/Code]
 
When I use the getMethod(); instead ... everything is working so only
putting the file is a problem and gives me this error:
 
[Error]
org.apache.commons.httpclient.HttpException: Unbuffered entity enclosing
request can not be repeated.
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequest
Body(EntityEnclosingMethod.java:436)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
.java:2290)
at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBa
se.java:2625)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:1061)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:6
43)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:4
97)
at
org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2792)
at
org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2762)
at ch.manor.SlideTest.main(SlideTest.java:45)
[/Error]
 
Can anyone help me out? I don't know how to debug this.

Many thanks in advance!
 
regards
Matthias


-
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: Verify date of last release

2006-06-02 Thread Miguel Figueiredo

Hello Darren, that's correct.
Best regards,
Miguel

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 1 de Junho de 2006 21:55
To: Slide Users Mailing List
Subject: Verify date of last release

I was asked when the last official release date of Jakarta Slide was
(I've been building from source for over a year and were concerned about
production quality).

From my sources, it looks like:
December 2004 - Jakarta Slide 2.1

Does this sound correct?

-D

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


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



RE: how to unlock locked files?

2006-05-22 Thread Miguel Figueiredo

Hello,

 Anthony is right, what I meant is that, in Slide, by default, only root or
lock owner can unlock resources.

Best Regards,
Miguel

-Original Message-
From: MARENDY, Anthony [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 22 de Maio de 2006 1:19
To: Slide Users Mailing List
Subject: RE: how to unlock locked files?

FYI, any user with the DAV:unlock privilege for a resource can unlock it
irrespective of whether they or not they own the lock (ref
http://www.webdav.org/specs/rfc3744.html#PRIVILEGE_unlock).

Anthony.


 -Original Message-
 From: Miguel Figueiredo [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, 18 May 2006 18:48
 To:   'Slide Users Mailing List'
 Subject:  RE: how to unlock locked files?
 
 
 Hello Dan,
 
  To find the lock token, u need to do a propfind on the locked resource.
The
 user that locked the file should be indicated also (by default only lock
 owner or root user can unlock resources). With that lock token execute the
 unlock request.
 
  Hope this helps,
  Miguel
 
 -Original Message-
 From: Dan Tenenbaum [mailto:[EMAIL PROTECTED] 
 Sent: quinta-feira, 18 de Maio de 2006 0:09
 To: slide-user@jakarta.apache.org
 Subject: how to unlock locked files?
 
 Somehow without trying to, I caused a bunch of files (or perhaps a
 directory) in a slide repository to be locked. I was trying to
 overwrite an existing file using put and I got an error saying the
 file is locked. The put did not succeed.
 
 I tried to unlock the file and was asked for an unlock token. I have
 no idea what that is supposed to be.
 
 How can I unlock these files so they can be overwritten?
 
 Thanks
 
 -
 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]
 


---
This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of
its related entities Suncorp. 

Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13
11 55  or at suncorp.com.au.

The content of this e-mail is the view of the sender or stated author and
does not necessarily reflect the view of Suncorp. The content, including
attachments, is a confidential communication between Suncorp and the
intended recipient. If you are not the intended recipient, any use,
interference with, disclosure or copying of this e-mail, including
attachments, is unauthorised and expressly prohibited. If you have received
this e-mail in error please contact the sender immediately and delete the
e-mail and any attachments from your system.

If this e-mail constitutes a commercial message of a type that you no longer
wish to receive please reply to this e-mail by typing Unsubscribe in the
subject line.



-
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 Migration: File Dump and Store Change

2006-05-22 Thread Miguel Figueiredo

 Hello Julian,

 Metainfo in DB and TxStore for content sounds very nice! Anyway, as I said
earlier, TxStore is the more robust store implementation (metainfo 
content) I've tried so far, so perhaps you get some complications before you
make that combination work. Anyway, if you make it work, send us a post! And
a new entry on the wiki page ;)

 Best Regards,
 Miguel


-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 19 de Maio de 2006 17:10
To: Slide Users Mailing List
Subject: Re: Slide Migration: File Dump and Store Change

Miguel,

Thanks for all the help.  I will first try to see about the migration then
decide on the most appropriate solution.  It would seem to me however that a
database approach may be best for the metadata in a clustered environment,
while still storing the files on a file server.  Do you have any thoughts
regarding this.  Otherwise, thanks again.

Julian


- Original Message 
From: Miguel Figueiredo [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org; Julian
[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 11:45:02 AM
Subject: RE: Slide Migration: File Dump and Store Change


Hello Julian,

 Unfortunally I don't have any benchmark numbers. Anyway, you can still
check this address http://wiki.apache.org/jakarta-slide/SlideInProduction
where you can confirm that there many people using TxStore for production
scenarios.

 Slide does have a cache mechanism and it's in part the reason why database
and TxStore are more or less equivalent in performance: once the
metainformation data is read, it is returned from the cache instead of the
store. As an aside, there were some tests where we found out that one DB
Store (postgres or mysql, don't remember well) would significantly perform
worst than TxStore.

 Hope this helps,
 Miguel Figueiredo


-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 19 de Maio de 2006 15:38
To: Slide Users Mailing List
Subject: Re: Slide Migration: File Dump and Store Change

Hi,

Thanks for the help.  Do you have any metrics that indicate that the
database is a better solution?  Is the database folder structure cached like
the XML folder structure so that if I change the meta data in the database,
it isn't reflected in the runtime until a server restart?

Thanks
 
 
 !--  _filtered {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /*
Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt; font-size:12.0pt; font-family:Times New Roman;}
a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed {color:purple;
text-decoration:underline;} span.EmailStyle17 { font-family:Arial;
color:navy;}  _filtered { margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.Section1
{} --Hello Julian,
 
Then your right. safe way to do things is make an automatic repository
browser-copier: for each folder recursively find child resources and
PUTPROPATCH them into the new repository. Only PUTs and PROPATCHs should be
needed if you are not using any of the other 'advanced' features like
versioning and access control.
 
Are you sure that you want to use a database? From my experience,
TxStores are more robust AND don't really loose performance. maybe you would
like to do a benchmarking.
 
Hope this helps,
Miguel
 
   
  From: Julian [mailto:[EMAIL PROTECTED] 
 Sent: quinta-feira, 18 de Maio de 2006 17:17
 To: Miguel Figueiredo
 Subject: Re: Slide Migration: File Dump and Store Change
   

 Miguel,
 
 I believe it was Slide 1.0.16, which is not compatible and would require a
heavy transformation of data to be compatible.  The other problem is how to
get it into the database format instead of the XML format.  This leads me to
believe a GET, PUT, and PROPFIND, etc. will be required.
 
 Thanks,
 Julian
   
  
 


-
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 Migration: File Dump and Store Change

2006-05-22 Thread Miguel Figueiredo
Nice!!

Thank you for the feeback :)
Miguel

-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 22 de Maio de 2006 16:25
To: Slide Users Mailing List
Subject: Re: Slide Migration: File Dump and Store Change

Miguel,

I have this configuration already working (File on the filesystem/TxStore
and Metadata in the database J2EE store).  I am currently trying to write a
Migrator that does a GET/PROPFIND followed by a PUT/PROPPUT.  Afterwards, I
plan on testing the Cluster support and if everything goes as planned, I'll
post my Domain.xml and Migrator using the client-lib if there's interest.

Regards,
Julian


- Original Message 
From: Miguel Figueiredo [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org; Julian
[EMAIL PROTECTED]
Sent: Monday, May 22, 2006 4:55:06 AM
Subject: RE: Slide Migration: File Dump and Store Change


 Hello Julian,

 Metainfo in DB and TxStore for content sounds very nice! Anyway, as I said
earlier, TxStore is the more robust store implementation (metainfo 
content) I've tried so far, so perhaps you get some complications before you
make that combination work. Anyway, if you make it work, send us a post! And
a new entry on the wiki page ;)

 Best Regards,
 Miguel


-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 19 de Maio de 2006 17:10
To: Slide Users Mailing List
Subject: Re: Slide Migration: File Dump and Store Change

Miguel,

Thanks for all the help.  I will first try to see about the migration then
decide on the most appropriate solution.  It would seem to me however that a
database approach may be best for the metadata in a clustered environment,
while still storing the files on a file server.  Do you have any thoughts
regarding this.  Otherwise, thanks again.

Julian


- Original Message 
From: Miguel Figueiredo [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org; Julian
[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 11:45:02 AM
Subject: RE: Slide Migration: File Dump and Store Change


Hello Julian,

 Unfortunally I don't have any benchmark numbers. Anyway, you can still
check this address http://wiki.apache.org/jakarta-slide/SlideInProduction
where you can confirm that there many people using TxStore for production
scenarios.

 Slide does have a cache mechanism and it's in part the reason why database
and TxStore are more or less equivalent in performance: once the
metainformation data is read, it is returned from the cache instead of the
store. As an aside, there were some tests where we found out that one DB
Store (postgres or mysql, don't remember well) would significantly perform
worst than TxStore.

 Hope this helps,
 Miguel Figueiredo


-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 19 de Maio de 2006 15:38
To: Slide Users Mailing List
Subject: Re: Slide Migration: File Dump and Store Change

Hi,

Thanks for the help.  Do you have any metrics that indicate that the
database is a better solution?  Is the database folder structure cached like
the XML folder structure so that if I change the meta data in the database,
it isn't reflected in the runtime until a server restart?

Thanks
 
 
 !--  _filtered {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /*
Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt; font-size:12.0pt; font-family:Times New Roman;}
a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed {color:purple;
text-decoration:underline;} span.EmailStyle17 { font-family:Arial;
color:navy;}  _filtered { margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.Section1
{} --Hello Julian,
 
Then your right. safe way to do things is make an automatic repository
browser-copier: for each folder recursively find child resources and
PUTPROPATCH them into the new repository. Only PUTs and PROPATCHs should be
needed if you are not using any of the other 'advanced' features like
versioning and access control.
 
Are you sure that you want to use a database? From my experience,
TxStores are more robust AND don't really loose performance. maybe you would
like to do a benchmarking.
 
Hope this helps,
Miguel
 
   
  From: Julian [mailto:[EMAIL PROTECTED] 
 Sent: quinta-feira, 18 de Maio de 2006 17:17
 To: Miguel Figueiredo
 Subject: Re: Slide Migration: File Dump and Store Change
   

 Miguel,
 
 I believe it was Slide 1.0.16, which is not compatible and would require a
heavy transformation of data to be compatible.  The other problem is how to
get it into the database format instead of the XML format.  This leads me to
believe a GET, PUT, and PROPFIND, etc. will be required.
 
 Thanks,
 Julian
   
  
 


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

RE: Slide Migration: File Dump and Store Change

2006-05-19 Thread Miguel Figueiredo

Hello Julian,

 Unfortunally I don't have any benchmark numbers. Anyway, you can still
check this address http://wiki.apache.org/jakarta-slide/SlideInProduction
where you can confirm that there many people using TxStore for production
scenarios.

 Slide does have a cache mechanism and it's in part the reason why database
and TxStore are more or less equivalent in performance: once the
metainformation data is read, it is returned from the cache instead of the
store. As an aside, there were some tests where we found out that one DB
Store (postgres or mysql, don't remember well) would significantly perform
worst than TxStore.

 Hope this helps,
 Miguel Figueiredo


-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 19 de Maio de 2006 15:38
To: Slide Users Mailing List
Subject: Re: Slide Migration: File Dump and Store Change

Hi,

Thanks for the help.  Do you have any metrics that indicate that the
database is a better solution?  Is the database folder structure cached like
the XML folder structure so that if I change the meta data in the database,
it isn't reflected in the runtime until a server restart?

Thanks
 
 
 !--  _filtered {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /*
Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal  {margin:0cm;
margin-bottom:.0001pt; font-size:12.0pt; font-family:Times New Roman;}
a:link, span.MsoHyperlink   {color:blue; text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed{color:purple;
text-decoration:underline;} span.EmailStyle17   { font-family:Arial;
color:navy;}  _filtered { margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.Section1
{} --Hello Julian,
 
Then your right. safe way to do things is make an automatic repository
browser-copier: for each folder recursively find child resources and
PUTPROPATCH them into the new repository. Only PUTs and PROPATCHs should be
needed if you are not using any of the other 'advanced' features like
versioning and access control.
 
Are you sure that you want to use a database? From my experience,
TxStores are more robust AND don't really loose performance. maybe you would
like to do a benchmarking.
 
Hope this helps,
Miguel
 
   
  From: Julian [mailto:[EMAIL PROTECTED] 
 Sent: quinta-feira, 18 de Maio de 2006 17:17
 To: Miguel Figueiredo
 Subject: Re: Slide Migration: File Dump and Store Change
   

 Miguel,
 
 I believe it was Slide 1.0.16, which is not compatible and would require a
heavy transformation of data to be compatible.  The other problem is how to
get it into the database format instead of the XML format.  This leads me to
believe a GET, PUT, and PROPFIND, etc. will be required.
 
 Thanks,
 Julian
   
  
 


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



RE: Slide Migration: File Dump and Store Change

2006-05-18 Thread Miguel Figueiredo

Hello Julian,

 First, witch version do you have? If it's a recent one like 2.0 and the
stores u are using are the TxFileContentStore and TxXMLFileDescriptorsStore,
I believe it's enough for you to copy the contents of directory to witch
slide stores data for the place where 2.1 Slide is expecting the data to
exist. If it later than 2.0 give it a try also : )

 Second, if you use GET and PUT you may not have same results since
metainformation stored along the resources would banish. It should be more a
GETPUT followed by PROPFINDPROPPATCH and ACLACL... and I'm not sure if
you were using versioning.

 Hope this helps,
 Miguel Figueiredo


-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 17 de Maio de 2006 18:00
To: Slide Users Mailing List
Subject: Slide Migration: File Dump and Store Change

Hi all,

I am running an old version of Slide and would like to upgrade to 2.1.  What
is the best way to get my FileStore running in the new slide?  In this
process I would like to transfer the storage of the Descriptor store to the
database from the XMLDescriptor store (which btw isn't compatible with the
new xml schema), but not sure how.  Is a GET from one repository followed by
a PUT to another my best option?

Thanks,
Julian


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



RE: how to unlock locked files?

2006-05-18 Thread Miguel Figueiredo

Hello Dan,

 To find the lock token, u need to do a propfind on the locked resource. The
user that locked the file should be indicated also (by default only lock
owner or root user can unlock resources). With that lock token execute the
unlock request.

 Hope this helps,
 Miguel

-Original Message-
From: Dan Tenenbaum [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 18 de Maio de 2006 0:09
To: slide-user@jakarta.apache.org
Subject: how to unlock locked files?

Somehow without trying to, I caused a bunch of files (or perhaps a
directory) in a slide repository to be locked. I was trying to
overwrite an existing file using put and I got an error saying the
file is locked. The put did not succeed.

I tried to unlock the file and was asked for an unlock token. I have
no idea what that is supposed to be.

How can I unlock these files so they can be overwritten?

Thanks

-
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: Saving credentials between wdr method calls?

2006-04-26 Thread Miguel Figueiredo

(quick tip)

Hello Brandon,

 I know that there is na http header named pre-authenticate. If you set it
to true in the jackarta http client lib, maybe you're able to do what you
need.

 Hope this helps,
 Miguel

-Original Message-
From: Brandon Dove [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 24 de Abril de 2006 17:11
To: slide-user@jakarta.apache.org
Subject: Saving credentials between wdr method calls?

If I have the following code:

WebdavResource wdr = null;
HttpURL hrl = null;
try {
hrl = new HttpURL(http://myhost.com/slide/files/; );
hrl.setUserinfo(username, password);

wdr = new WebdavResource( hrl );

System.out.println(--First action.);
wdr.list();

System.out.println(--Second action.);
wdr.list();

} catch (Exception e) {
//do something
}

I see that in each call to wdr.list() the resource is forced to
authenticate. Is there a way to save the credentials between
method calls so that I only need to authenticate the first time
and not all subsequent times?

Cheers,

Brandon


Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
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: RE: Saving credentials between wdr method calls?

2006-04-26 Thread Miguel Figueiredo

Hello Brandon,

 Check out this URL:
http://jakarta.apache.org/commons/httpclient/authentication.html#Preemptive_
Authentication 

 I'm sorry if I mislead you. Of course there is no such header, is just an
ability the http connection API may have (PreAuthenticate is a .net
framework HttpWebRequest property, thus my mistake). In the case of jakarta
commons http client, the property to setup is accessible through the set(er)
client.getParams().setAuthenticationPreemptive(bool b).

 Hope this helps,
 Miguel Figueiredo


-Original Message-
From: Brandon Dove [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 26 de Abril de 2006 17:25
To: 'Slide Users Mailing List'
Subject: Re: RE: Saving credentials between wdr method calls?

Looking at the HTTP/1.1 header definitions:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

I can't find any reference to a pre-authenticate header...

Can you point me to any reference material about this?

Cheers,

Brandon

 On Wed, 26 Apr 2006, Miguel Figueiredo
([EMAIL PROTECTED]) wrote:

 
 (quick tip)
 
 Hello Brandon,
 
  I know that there is na http header named pre-authenticate.
If you set it
 to true in the jackarta http client lib, maybe you're able to
do what you
 need.
 
  Hope this helps,
  Miguel
 
 -Original Message-
 From: Brandon Dove [mailto:[EMAIL PROTECTED] 
 Sent: segunda-feira, 24 de Abril de 2006 17:11
 To: slide-user@jakarta.apache.org
 Subject: Saving credentials between wdr method calls?
 
 If I have the following code:
 
 WebdavResource wdr = null;
 HttpURL hrl = null;
 try {
 hrl = new HttpURL(http://myhost.com/slide/files/; );
 hrl.setUserinfo(username, password);
 
 wdr = new WebdavResource( hrl );
 
 System.out.println(--First action.);
 wdr.list();
 
 System.out.println(--Second action.);
 wdr.list();
 
 } catch (Exception e) {
 //do something
 }
 
 I see that in each call to wdr.list() the resource is forced
to
 authenticate. Is there a way to save the credentials between
 method calls so that I only need to authenticate the first
time
 and not all subsequent times?
 
 Cheers,
 
 Brandon
 
 
 Get your own 800 number
 Voicemail, fax, email, and a lot more
 http://www.ureach.com/reg/tag
 

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



Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
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: RE: Saving credentials between wdr method calls?

2006-04-26 Thread Miguel Figueiredo

Hello again,

 That should have worked. Anyway, here goes another tip... have you got
keep-alive connections set to true? The client might be closing the
connections after each request, thus needing to authenticate every time.

Hope this helps,
Miguel

-Original Message-
From: Brandon Dove [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 26 de Abril de 2006 19:48
To: Miguel Figueiredo; 'Slide Users Mailing List'
Subject: RE: RE: Saving credentials between wdr method calls?

Thanks Miguel -- preemptive authentication is currently being
used by the client but unfortunately it doesn't produce the
desired result.

Cheers,

Brandon


 On Wed, 26 Apr 2006, Miguel Figueiredo
([EMAIL PROTECTED]) wrote:

 
 Hello Brandon,
 
  Check out this URL:

http://jakarta.apache.org/commons/httpclient/authentication.html#Preemptive_
 Authentication 
 
  I'm sorry if I mislead you. Of course there is no such
header, is just an
 ability the http connection API may have (PreAuthenticate is a
.net
 framework HttpWebRequest property, thus my mistake). In the
case of jakarta
 commons http client, the property to setup is accessible
through the set(er)
 client.getParams().setAuthenticationPreemptive(bool b).
 
  Hope this helps,
  Miguel Figueiredo
 
 
 -Original Message-
 From: Brandon Dove [mailto:[EMAIL PROTECTED] 
 Sent: quarta-feira, 26 de Abril de 2006 17:25
 To: 'Slide Users Mailing List'
 Subject: Re: RE: Saving credentials between wdr method calls?
 
 Looking at the HTTP/1.1 header definitions:
 
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
 
 I can't find any reference to a pre-authenticate header...
 
 Can you point me to any reference material about this?
 
 Cheers,
 
 Brandon
 
  On Wed, 26 Apr 2006, Miguel Figueiredo
 ([EMAIL PROTECTED]) wrote:
 
  
  (quick tip)
  
  Hello Brandon,
  
   I know that there is na http header named pre-authenticate.
 If you set it
  to true in the jackarta http client lib, maybe you're able
to
 do what you
  need.
  
   Hope this helps,
   Miguel
  
  -Original Message-
  From: Brandon Dove [mailto:[EMAIL PROTECTED] 
  Sent: segunda-feira, 24 de Abril de 2006 17:11
  To: slide-user@jakarta.apache.org
  Subject: Saving credentials between wdr method calls?
  
  If I have the following code:
  
  WebdavResource wdr = null;
  HttpURL hrl = null;
  try {
  hrl = new HttpURL(http://myhost.com/slide/files/; );
  hrl.setUserinfo(username, password);
  
  wdr = new WebdavResource( hrl );
  
  System.out.println(--First action.);
  wdr.list();
  
  System.out.println(--Second action.);
  wdr.list();
  
  } catch (Exception e) {
  //do something
  }
  
  I see that in each call to wdr.list() the resource is forced
 to
  authenticate. Is there a way to save the credentials between
  method calls so that I only need to authenticate the first
 time
  and not all subsequent times?
  
  Cheers,
  
  Brandon
  
  
  Get your own 800 number
  Voicemail, fax, email, and a lot more
  http://www.ureach.com/reg/tag
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 
 
 Get your own 800 number
 Voicemail, fax, email, and a lot more
 http://www.ureach.com/reg/tag
 

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



Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
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: WebdavResource putMethod InputStream as parameter

2006-04-13 Thread Miguel Figueiredo

Hello Jimi,

 Here is a code snippet, which I'm using with success, which uses a put
method relying on an input stream:

WebdavResource source = WebdavUtils.setupWebdavConnection(sourceLocation);
WebdavResource target = WebdavUtils.setupWebdavConnection(targetLocation);

InputStream is = source.getMethodData();
sucess = target.putMethod(is);

is.close();
source.close();
target.close();


The setupWebdavConnection is just a helper method that sets up the web proxy
and username/password information on a WebdavResource instance.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Jimi Dawlton [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 12 de Abril de 2006 21:45
To: slide-user@jakarta.apache.org
Subject: WebdavResource putMethod InputStream as parameter

hi,

i was wondering if anyone has successfully managed to upload a file using 
the putMethod with the InputStream as the parameter, (of the client)?

i have been trying to use:

putMethod(java.lang.String path, java.io.InputStream is)

but when i pass an inputstream, e.g:

N.B. (i've only shown an extract):

String filename = test.txt;
File f = new File(C:/ + filename);
InputStream inputStream = new FileInputStream(f);
webdavResource.putMethod(serverPath, inputStream);


i get the exception:

java.net.SocketException: Software caused connection abort: recv failed

am i using the method incorrectly or do i need to setup some sort of 
bufferedReader of file bufferedReader???


dawlton.


Disclaimer: My advice comes as is, without any guarantee. Use it at your 
discretion. I cannot be held responsible for your actions.

_
Are you using the latest version of MSN Messenger? Download MSN Messenger 
7.5 today! http://join.msn.com/messenger/overview


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


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



RE: How to restore Slide resources ?

2006-03-29 Thread Miguel Figueiredo

Hello Thomas,

 I'm not answering your question, but a while back I though at the same
problem: how to backup and restore slide's content.
 Before I discover that it's enough to backup the txtStore content, I though
that I would need to create a tool that would download all content and
metainfo in the configured stores, and create a 'proprietary' backup file
with that content. I mean proprietary because, there isn't such thing as
slide's backup file, or a tool to backup/restore slide's content at runtime
(maybe I'm wrong here... I do recall someone talk about this at late 2004).

 If you specify and implement this tool, and the file's content, you could
include the backup/restore of a single collection as well.
 Problem with this approach: it must download the content witch can be a
problem if it's done at a wrong schedule, that is, it's not very scalable.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Thomas Bellembois [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 29 de Março de 2006 13:16
To: Slide Users Mailing List
Subject: Re: How to restore Slide resources ?

Hello !

Sorry, I have just noticed that my explanations are not very clear...
I will try to re-explain :-)
What I wanted to say is that I think that we could save and restore the 
ENTIRE Slide content and metadata just by saving the content and 
metadata root path. Usefull if the Slide backend crashes...
At the University of Rennes 1 we intend to use a SAN(NAS) for the Slide 
backend. This SAN makes snapshots everyday of each file/directory so 
that a user can restore its documents up to 1 week ago.
But with Slide, to restore just one part of the tree (for example a user 
homedir), I am not sure that we could just restore one directory (and 
attached metadata) and restart the server.
Some French universities are waiting for this kind of functionnalities 
to use Slide in a production use.
Hope it is more clear.

Thanks for your help,

Regards,

Thomas


Max Pfingsthorn a écrit :

Hi!

I'm not sure I understand what you mean.. What do you mean by resources?
Can you explain a bit more?

Bye!
max

  

-Original Message-
From: Thomas Bellembois [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 11:11
To: Slide Users Mailing List
Subject: How to restore Slide resources ?


Hello,

I wonder how we can restore resources on Slide - not the 
entire backend, 
but just some resources ?
We could propably do that restoring content and handling 
metadata, but 
this is not an easy task...
Some people are frightened of using Slide in a production environment 
because of that.

Regards,

Thomas

-- 
..-=( Thomas Bellembois )=-..
CRI - University of Rennes 1 (France)
. 


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

  



-- 
..-=( Thomas Bellembois )=-..
CRI - University of Rennes 1 (France)
. 


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


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



RE: How to restore Slide resources ?

2006-03-29 Thread Miguel Figueiredo

Hello Thomas,

 You are right, that way you wouldn't need to create such a tool - in fact,
it seems it is what Michael Oliver is talking about.

 In our case, we use the *bindings* extension of the TxStore witch stores
the metainformation and content somewhat differently and very difficult to
follow by human eyes - no directory structure, it's just one folder with
thousands of small files with sequencial numeric names with relations with
each other... as I said, very difficult to follow by human eyes.

 The tool to implement would make transparent the way the stores persist
information. In fact, you could use it with other webdav servers :)

Best regards,
Miguel Figueiredo

-Original Message-
From: Thomas Bellembois [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 29 de Março de 2006 15:18
To: Slide Users Mailing List
Subject: Re: How to restore Slide resources ?

Hello Miguel,

When you say I discover that it's enough to backup the txtStore 
content, you mean that I could just restore the content of a directory 
(and not the entire tree) ? In this way, no need to have a 
backup/restore tool.

Regards,

Thomas
Miguel Figueiredo a écrit :

Hello Thomas,

 I'm not answering your question, but a while back I though at the same
problem: how to backup and restore slide's content.
 Before I discover that it's enough to backup the txtStore content, I
though
that I would need to create a tool that would download all content and
metainfo in the configured stores, and create a 'proprietary' backup file
with that content. I mean proprietary because, there isn't such thing as
slide's backup file, or a tool to backup/restore slide's content at runtime
(maybe I'm wrong here... I do recall someone talk about this at late 2004).

 If you specify and implement this tool, and the file's content, you could
include the backup/restore of a single collection as well.
 Problem with this approach: it must download the content witch can be a
problem if it's done at a wrong schedule, that is, it's not very scalable.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Thomas Bellembois [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 29 de Março de 2006 13:16
To: Slide Users Mailing List
Subject: Re: How to restore Slide resources ?

Hello !

Sorry, I have just noticed that my explanations are not very clear...
I will try to re-explain :-)
What I wanted to say is that I think that we could save and restore the 
ENTIRE Slide content and metadata just by saving the content and 
metadata root path. Usefull if the Slide backend crashes...
At the University of Rennes 1 we intend to use a SAN(NAS) for the Slide 
backend. This SAN makes snapshots everyday of each file/directory so 
that a user can restore its documents up to 1 week ago.
But with Slide, to restore just one part of the tree (for example a user 
homedir), I am not sure that we could just restore one directory (and 
attached metadata) and restart the server.
Some French universities are waiting for this kind of functionnalities 
to use Slide in a production use.
Hope it is more clear.

Thanks for your help,

Regards,

Thomas


Max Pfingsthorn a écrit :

  

Hi!

I'm not sure I understand what you mean.. What do you mean by resources?


Can you explain a bit more?
  

Bye!
max

 



-Original Message-
From: Thomas Bellembois [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 11:11
To: Slide Users Mailing List
Subject: How to restore Slide resources ?


Hello,

I wonder how we can restore resources on Slide - not the 
entire backend, 
but just some resources ?
We could propably do that restoring content and handling 
metadata, but 
this is not an easy task...
Some people are frightened of using Slide in a production environment 
because of that.

Regards,

Thomas

-- 
..-=( Thomas Bellembois )=-..
CRI - University of Rennes 1 (France)
. 


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

 





  



-- 
..-=( Thomas Bellembois )=-..
CRI - University of Rennes 1 (France)
. 


-
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: Direct Link to a resource

2005-12-06 Thread Miguel Figueiredo

Bom dia,

 I don't believe it's possible to use MS Office webdav features unless you
are using them through MS WebFolders interface. It means the results you are
having would be the ones I would expect when opening a file from the IE, or
opening them through an office application.

 Nevertheless, there is a workaround I managed to store for a (maybe) future
use, that would transform an URL into a webfolders link. Found these
snippets (as attachment) in the slide users mailing list, don’t remember who
delivered them, but all credits are due to him.

 Espero k ajude,
 Miguel Figueiredo


-Original Message-
From: Rocha, Joaquim Fernando [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 6 de Dezembro de 2005 12:55
To: slide-user@jakarta.apache.org
Subject: Direct Link to a resource

Hi,

 

Is it possible to access a file via a link in a webpage?

 

Currently I'm executing a script that opens a file in excel:

 

SCRIPT LANGUAGE=3DVBScript

Dim objExcel

 

Sub Btn1_onclick()

call OpenWorkbook(http://localhost:9090/webdav/path/file.xls/;)

End Sub

 

Sub OpenWorkbook(strLocation)

Set objExcel =3D CreateObject(Excel.Application)

objExcel.Visible =3D true

objExcel.Workbooks.Open strLocation

objExcel.UserControl =3D true

End Sub

/SCRIPT

 

However this does not execute the Lock and the file is opened as read
only.

 

Can anyone help?

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Vector;

/**
 * A MS Windows Shortcut (*.LNK) file builder, pure Java port.
 * Supports MS WebFolders.
 *
 * @author ggongaware _at_ itensil _dot_ com
 *
 * 7-7-04 cleaned up some documentation
 * 3-3-03 partial WinNT5 functionality
 *
 * Note:
 * Some Win9x functionality based on Jesse Hager's
 * The Windows Shortcut File Format Document Version 1.0
 *
 */
public class Win32Link {

	private static final int HEAD = 'L';

	// *.LNK GUID  00021401---c000-0046
	private static final byte[] LNK_GUID = {
		(byte)0x01,(byte)0x14,(byte)0x02,(byte)0x00, //-
		(byte)0x00,(byte)0x00, //-
		(byte)0x00,(byte)0x00, //-
		(byte)0xc0,(byte)0x00, //-
		(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x46};

	// My Computer GUID 20d04fe0-3aea-1069-a2d8-08002b30309d
	private final byte[] MY_COMP_GUID = {
		(byte)0xe0,(byte)0x4f,(byte)0xd0,(byte)0x20, //-
		(byte)0xea,(byte)0x3a, //-
		(byte)0x69,(byte)0x10, //-
		(byte)0xa2,(byte)0xd8, //-
		(byte)0x08,(byte)0x00,(byte)0x2b,(byte)0x30,(byte)0x30,(byte)0x9d};

	// Web Folders GUID bdeadf00-c265-11d0-bced-00a0c90ab50f
	private final byte[] WEB_GUID = {
		(byte)0x00,(byte)0xdf,(byte)0xea,(byte)0xbd, //-
		(byte)0x65,(byte)0xc2, //-
		(byte)0xd0,(byte)0x11, //-
		(byte)0xbc,(byte)0xed, //-
		(byte)0x00,(byte)0xa0,(byte)0xc9,(byte)0x0a,(byte)0xb5,(byte)0x0f};
	//	+
	//	|-- 26 MAGIC_WEBFOLDERBYTES???
	//			+ [Display BSTR] + [URL BSTR] + (int)0
	// I don't know what these undocoumented SHITEMID.abID bytes are
	// but this variation of them work on all URL path levels, so I'm happy.
	private static final byte[] MAGIC_WEBFOLDERBYTES = {
0x4c, 0x50, 0x00, 0x22,
0x42, 0x57, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x10, 0x00,
0x00, 0x00 };
	//	OR +
	//	|-- 26 MAGIC_WEBFILEBYTES???
	//			+ [Display BSTR] + [URL BSTR] + (int)0
	// I don't know what these undocoumented SHITEMID.abID bytes are
	// but this variation works on the file path level, so I'm happy.
	private static final byte[] MAGIC_WEBFILEBYTES = {
0x4c, 0x50, 0x00, 0x22,
0x42, 0x57, (byte)0x80, 0x4c,
0x70, 0x48, 0x54, 0x3e,
(byte)0xc3, 0x01, 0x00, 0x6a,
0x01, 0x00, 0x00, 0x00,
0x00, 0x00, (byte)0x80, 0x00,
0x00, 0x00 };

/**
 * Items ids, similar to the MS Shell API's struct SHITEMID
 */
public static interface ItemID {
		public char getSize();
		public byte [] getBytes();
	}

	/**
	 * TODO: Make local and NetBIOS ItemID classes
	 */

/**
 * The Root item of a local Machine My Computer
 */
	public class MyComputerId implements ItemID {
		public char getSize() {
			return (char)(MY_COMP_GUID.length + 2 + 2);
		}

		public final byte [] getBytes() {
			char size = getSize();
			ByteBuffer buf = new ByteBuffer(size);
			buf.putChar(size);
			buf.putChar((char)0x501f); // Unknown word
			buf.putBytes(MY_COMP_GUID);
			return buf.getBytes();
		}
	}

/**
 * The Root of WebFolders
 */
	public class WebFoldersId implements ItemID {

		public char getSize() {
			return (char)(WEB_GUID.length + 2 + 2);
		}

		public byte [] getBytes() {
			char size = getSize();
			ByteBuffer buf = new ByteBuffer(size);
			buf.putChar(size);
			buf.putChar((char)0x002E); // Unknown word
			buf.putBytes(WEB_GUID);
			return buf.getBytes();
		}
	}

	/**
 * A Folder (path) of a webfolder
 */
	public

RE: Permission... Help me please

2005-11-28 Thread Miguel Figueiredo

Hello Nicolas,

 Your intent is possible. I can't find anything wrong with your
configuration, so I would recommend going to the Slide's web.xml and set the
property directory-browsing-hide-acl set to false. That might help you
debugging the permissions you are really setting.

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Nicolas Duperré [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 25 de Novembro de 2005 20:37
To: slide-user@jakarta.apache.org
Subject: Permission... Help me please

Let's say user Bob has two roles users and powerUsers.
 
How can Bob be able to read/write /public AND  /public/power while Alice
with only the role Users be able to read only /public AND NOT
/public/power
 
I have tried the following config but Bob cannot read /public/power : 
 
objectnode classname=org.apache.slide.structure.SubjectNode
uri=/roles/users
revision
property name=group-member-set![CDATA[
D:href xmlns:D='DAV:'/users/Bob/D:href
D:href xmlns:D='DAV:'/users/Alice/D:href
/property 
/revision
/objectnode
 
objectnode classname=org.apache.slide.structure.SubjectNode
uri=/roles/powerUsers
revision
property name=group-member-set![CDATA[
D:href xmlns:D='DAV:'/users/Bob/D:href
/property 
/revision
/objectnode
 
objectnode classname=org.apache.slide.structure.SubjectNode
uri=/public
permission action=/actions/read subject=/roles/Users
inheritable=false/
permission action=/actions/read subject=/roles/PowerUsers
inheritable=true/
permission action=/actions/write subject=/roles/PowerUsers
inheritable=true/

 
objectnode classname=org.apache.slide.structure.SubjectNode
uri=/public/power
permission action=/actions/read subject=/roles/Users inheritable=true
negative=true/
permission action=/actions/read subject=/roles/PowerUsers
inheritable=true/
permission action=/actions/write subject=/roles/PowerUsers
inheritable=true/
/objectnode
 
/objectnode
 
Can this be done ? Am I missing something ?
 
Thank you very much


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



RE: Any tips on what I am doing wrong? (ACL)

2005-11-24 Thread Miguel Figueiredo

 Hello Matias,

 That is a known bug in Slide, check this out:

 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352 

 Best Regards,
 Miguel Figueiredo


-Original Message-
From: Crespillo, Matias [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 23 de Novembro de 2005 19:22
To: Slide Users Mailing List
Subject: RE: Any tips on what I am doing wrong? (ACL)

more input I actually have to give the parent folder the permissions
read/write inheritable for my user to be able to create a new collection. I
have been struglin all day with this and I am at this point in a where to go
situation

-Mensaje original-
De: Crespillo, Matias 
Enviado el: Miércoles, 23 de Noviembre de 2005 15:05
Para: Slide Users Mailing List
Asunto: Any tips on what I am doing wrong? (ACL)


Ok a have a folder browser with permissions:

   permission subjectUri=all actionUri=/actions/read
inheritable=false negative=false /
permission subjectUri=all actionUri=/actions/write
inheritable=false negative=false /
permission subjectUri=owner actionUri=all inheritable=true
negative=false /

the problem is that when i login and try to create a collection it will
return 403 forbidden, shouldn't it allow me to create a folder since i am
granting all permissions to the owner wich is the file creator? regards.

-
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: Any tips on what I am doing wrong? (ACL)

2005-11-24 Thread Miguel Figueiredo

Hello Matias,

 No I didn't. I tried to correct the bug... but it's damn hard to figure
what to do inside Slide's core. Our workaround was to create a super user
that can do everything starting on /files namespace. That solved some
problems but the bug persisted, and it's quite annoying sometimes.

Since time is limited, I moved on to other tasks before even scratch at a
possible resolution.

Best regards,
Miguel Figueiredo


-Original Message-
From: Crespillo, Matias [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 24 de Novembro de 2005 12:01
To: Slide Users Mailing List
Subject: RE: Any tips on what I am doing wrong? (ACL)

Thanks Miguel, did you find a workaround or alternative for this? regards.

-Mensaje original-
De: Miguel Figueiredo [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 24 de Noviembre de 2005 06:33
Para: 'Slide Users Mailing List'
Asunto: RE: Any tips on what I am doing wrong? (ACL)



 Hello Matias,

 That is a known bug in Slide, check this out:

 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352 

 Best Regards,
 Miguel Figueiredo


-Original Message-
From: Crespillo, Matias [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 23 de Novembro de 2005 19:22
To: Slide Users Mailing List
Subject: RE: Any tips on what I am doing wrong? (ACL)

more input I actually have to give the parent folder the permissions
read/write inheritable for my user to be able to create a new collection. I
have been struglin all day with this and I am at this point in a where to go
situation

-Mensaje original-
De: Crespillo, Matias 
Enviado el: Miércoles, 23 de Noviembre de 2005 15:05
Para: Slide Users Mailing List
Asunto: Any tips on what I am doing wrong? (ACL)


Ok a have a folder browser with permissions:

   permission subjectUri=all actionUri=/actions/read
inheritable=false negative=false /
permission subjectUri=all actionUri=/actions/write
inheritable=false negative=false /
permission subjectUri=owner actionUri=all inheritable=true
negative=false /

the problem is that when i login and try to create a collection it will
return 403 forbidden, shouldn't it allow me to create a folder since i am
granting all permissions to the owner wich is the file creator? regards.

-
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: Any tips on what I am doing wrong? (ACL)

2005-11-24 Thread Miguel Figueiredo

Hello Michael,

 The bug I was mentioning refers _also_ when an owner of a directory cannot
create files inside it, and it was clearly granted write permissions to the
owner of that directory.

 This bug appears in other forms, for example: I forbid read privilege to
directory a/, and grant read/write privileges on directory a/b/c. When I try
to create a file inside /a/b/c it's forbidden. Only if I allow read
privilege on directory a/ I can create a file inside.

 This bug is related with 'create' operations. 'update' operations work
well, if I remember correctly.

Best regards,
Miguel Figueiredo

-Original Message-
From: Michael Oliver [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 24 de Novembro de 2005 15:41
To: 'Slide Users Mailing List'
Subject: RE: Any tips on what I am doing wrong? (ACL)

You are saying the owner of a collection cannot create a collection under
the collection where the 'all' was granted?  Or another user cannot create a
collection under the collection with the 'all' granted to the owner and
read/write not iheritable granted to all other users?

I believe you are mistaken about the use of 'owner'  it is related to the
resource involved.  For example if /files/mystuff/ was owned by john2 with
all permissions granted and inherited and read/write granted to the user
'john' and not inherited.  Then the owner could create a new collection at
/files/mystuff/new folder/ but john could not because his write permissions
are not inherited to children of /files/mystuff/ but john could write to the
live properties of /files/mystuff/ because he was granted write permission
on that resource.

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)953-8949
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Crespillo, Matias [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 24, 2005 7:17 AM
To: Slide Users Mailing List
Subject: RE: Any tips on what I am doing wrong? (ACL)

cool ty :)

-Mensaje original-
De: Michael Oliver [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 24 de Noviembre de 2005 12:14
Para: 'Slide Users Mailing List'
Asunto: RE: Any tips on what I am doing wrong? (ACL)


Ok, thanks for the clarification.  I will see what I can see but I am not a
committer yet so I may not be able to fix in the release but may have a
patch.


Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)953-8949
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Crespillo, Matias [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 24, 2005 7:00 AM
To: Slide Users Mailing List
Subject: RE: Any tips on what I am doing wrong? (ACL)

but it may just be I don't
understand what you are doing specifically enough to say.
It think it is the case here, the problem is as follow if a collection has
write/read permissions for all NON inheritable AND owner permission all
inheritable  you should be able to create a collection wich should end up
having owner permissions all but not read/write permissions for all.
But since slide checks for permissions on the child folder before actually
assigning an owner to that collection, it is as if no one had permissions to
write that collection ergo.

P.S. i think i owe you a couple periods and a comma or 2.

What would be the point of granting write on a collection without
inheritable being true?

Creating a resource of either type in a collection is writing to that
collection so you must have write permission to do that.

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)953-8949
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Crespillo, Matias [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 24, 2005 4:36 AM
To: Slide Users Mailing List
Subject: RE: Any tips on what I am doing wrong? (ACL)

I know what you mean about time things. Thanks a bunch for the tip. You just
saved me a whole day of researching slide core :) have a nice day.

-Mensaje original-
De: Miguel Figueiredo [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 24 de Noviembre de 2005 09:38
Para: 'Slide Users Mailing List'
Asunto: RE: Any tips on what I am doing wrong? (ACL)



Hello Matias,

 No I didn't. I tried to correct the bug... but it's damn hard to figure
what to do inside Slide's core. Our workaround was to create a super user
that can do everything starting on /files namespace. That solved some
problems but the bug persisted, and it's quite annoying sometimes.

Since time is limited, I moved on to other tasks before even scratch at a
possible resolution.

Best regards,
Miguel Figueiredo


-Original Message-
From: Crespillo, Matias [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 24 de Novembro de 2005 12:01
To: Slide Users Mailing List
Subject: RE: Any tips on what I am doing wrong? (ACL)

Thanks

RE: help: can not get version information

2005-11-08 Thread Miguel Figueiredo

Hello Lixin,

 Seems good code from where I stand. Can you get the report method work now?

Best regards,
Miguel 

-Original Message-
From: Lixin Chu [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 8 de Novembro de 2005 4:15
To: Slide Users Mailing List
Subject: Re: help: can not get version information


  it seems ok, I have checked slide.properties in slide-kernel-2.1b2.jar,
  and the setting is :

 org.apache.slide.versioncontrol=true
 so i assume deltaV is on.
 and also, I can upload a new version with this code:

if (webdavResource.versionControlMethod(path)) {
webdavResource.setPath(path);
succeeded = webdavResource.checkoutMethod();
if (succeeded)
succeeded = webdavResource.putMethod(path, in);
succeeded = webdavResource.checkinMethod();
..
}



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



RE: how open a document in application web in Jakarta slide

2005-11-07 Thread Miguel Figueiredo
Title: Vinu Varghese












 Hello Veronica,



 I dont believe its
possible to do what you want unless the software that interprets the document
is webdav-enabled. The solution Vinu presented is enough to open the document,
but the problem you would face next is catching automatically the output
stream, and writing it to the server. Word for example, can do it while
browsing with webfolders and locking the document in the process, but if you
try to open a jpg file the same way, youll only be viewing it in read-only
mode, not the wanted read-write mode.



 There is software, like
webdrive, that makes the opening in read-write mode transparent. If you have
more specific needs than webdrive offers, then you shall have to write code to
catch the outputstream and sending it to the server, and maybe have the locking
and versioning features also enabled



Hope this helps,

Miguel Figueiredo

 







From: Vinu Varghese
[mailto:[EMAIL PROTECTED] 
Sent: sábado, 5 de Novembro de
2005 0:59
To: Slide
 Users Mailing List
Subject: Re: how open a document
in application web in Jakarta
slide





Hi,
I think u need the clients to open the doc on clicking on some link or
like on a web page - right?.
If that is the case then u can create an OutputStream of the InputStream. Then
u can set the content type of the response to application/word and
write the entire doc into the ServletOutputStream.
Some thing like 
 response.setContentType(application/word);
 response.getOutputStream().write() to write the contents

Hope this helps

Thanks 
Vinu

veronica ballarta wrote: 


Ok..but with this method can i open the file with the correct program?..for
example if i have a doc in word in slide and in my web application i have the
access to this ..this file will be open with word program withh that method?? 




From: Vinu Varghese [EMAIL PROTECTED] 
Reply-To: Slide Users Mailing List
slide-user@jakarta.apache.org

To: Slide Users Mailing List slide-user@jakarta.apache.org

Subject: Re: how open a document in application web in Jakarta slide 
Date: Sat, 05 Nov 2005 03:46:49 +0530 

Hi 

You can use getMethodData() on a WebResource link
http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavResource.html#getMethodData%28%29

also there are other methods that might be usefull
getMethodData(String path) 
 getMethodDataAsString(); 
 getMethodDataAsString(String path) 

Hope this helps 

Thanks 
Vinu 
|* http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavResource.html#getMethodData%28%29*|veronica
ballarta wrote: 





Somebody knows the method to open a document in jakarta slide at web..for example
to put and get is: 

to get:webdavresource.getMethod(filename); 
to put:webdavresource.putMethod(path,filename); 
but to open()?? 




From: Laurent
Michenaud [EMAIL PROTECTED]

Reply-To: Slide Users Mailing List
slide-user@jakarta.apache.org

To: Slide Users Mailing List
slide-user@jakarta.apache.org

Subject: RE: Word documents in read-only with OpenOffice 
Date: Thu, 3 Nov 2005 13:57:37 +0100 

Yes, the file is in read-only mode. 

I'm using : 
Slide 2.2 on Windows 2003 Server 

My workstation : Windows XP SP2 + OpenOffice 1.1.3 

And you ? 


-Message d'origine- 
De : Martin Delgado [mailto:[EMAIL PROTECTED]]

Envoyé : jeudi 3 novembre 2005 13:24 
À : Slide Users Mailing List 
Objet : RE: Word documents in read-only with OpenOffice 

Are you sure the files are read only in Open Office? 
I just tried to update an open office doc and it 
worked. However, it still gave me a secondary 
prompt when saving because it was saving to a doc file 
and not open office. 

BTW, to implement Web Folders, Open Office should be 
using the OLE DB Provider for Internet Publishing. 

http://msdn.microsoft.com/library/default.asp?url="">




--- Laurent Michenaud [EMAIL PROTECTED]
wrote: 

 The user has write permission on the web folder. 
 If I open the document with Word, I can update it. 
 If I open the document with OO, I can't because 
 It is read only. 
 
 
 -Message d'origine- 
 De : Martin Delgado [mailto:[EMAIL PROTECTED]]

 Envoyé : jeudi 3 novembre 2005 12:48 
 À : Slide Users Mailing List 
 Objet : Re: Word documents in read-only with 
 OpenOffice 
 
  
  
  1) When i opened word documents with OpenOffice ( 
  via web folder ), they 
  are in read-only. 
  
  Is it a slide issue or an openoffice issue ? 
 
 It's probably a permissions issue with your system. 
 How are you running Slide/Tomcat? The user that 
 Slide's running as has to have write privileges for 
 the files it wants to write. 
 
  
  2) I can't open openoffice document using web 
  folders. Do I have to 
  configure something 
  
  in slide ? 
 
 OpenOffice doesn't support Webdav properly inside MS 
 Windows. To use it, you have to set 
 Tools/Options/General Use OpenOffice.org dialogs. 
 Then you have to punch in the URL. It doesn't 
 support 
 browsing. 
 
 I think there's some kind of Mim

RE: New webdav server - survey of interest

2005-09-30 Thread Miguel Figueiredo

Hello,

 Regarding the webdav features, our partners are really interested on the
basic webdav, ACL, Versioning, Binding and DASL features. Besides that,
event triggering is a real plus on Slide although its not part of the webdav
specs.

 We felt that the TxStore is a solid and consistent way to persist our
content and metainformation despite Slide's lack of performance (we tested
different DB stores against TxStore and, after the resources are loaded into
memory, every store has the same performance). We have the feeling that
Slide's frightening core architecture and the poor implementation of ACL
(perhaps forced by the architecture) is the main reason of slide's less than
optimal performance.
 We didn't felt necessary to use slide transactions features, although we
have the feeling that this feature really helps on Slide's internal
consistency.

 Like Michael Oliver said earlier, the ability to configure different stores
might be important for integration purposes with other document management
systems. What's missing on slide is a standard way of doing it... perhaps
designing a SPI, or even  better, support the JSR 170 for storage
[southbound] (and while we are on it for interfacing with other software
[northbound] would be really cool)

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Jarrah Hands [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 30 de Setembro de 2005 2:13
To: 'Slide Users Mailing List'
Subject: RE: New webdav server - survey of interest

Davenport isn't too bad for small scale/ease of use, especially now that
JCIFS is at version 1.2.4 and a little more stable. Not as customizable as
slide though (very easy to set up and tie in with windows domains/samba
shares though)

Jarrah Hands
Software Engineer (Business Applications)
The University of Notre Dame Australia
19 Mouat Street (PO Box 1225)
Fremantle, Western Australia 6959
Tel: +61 9 9433 05287
Email: [EMAIL PROTECTED]

-Original Message-
From: V K [mailto:[EMAIL PROTECTED] 
Sent: Friday, 30 September 2005 7:39 AM
To: Slide Users Mailing List; [EMAIL PROTECTED]
Subject: RE: New webdav server - survey of interest

What are the recommendations on existing WebDAV products besides Slide?
 
VK

Michael Oliver [EMAIL PROTECTED] wrote:
On the surface it sounds interesting.

To me the features of slide that I value the most are the custom stores that
allow me to integrate with the outside world most easily and the TxFile
stores are great, but I can extend them because they are open source to
accommodate my needs.

The only complaints I have center on performance (mostly because they save
way too much redundant metadata) and on some details that seem less than
fully thought out, like member-list attributes and consistency.

So a commercial product that solves the problems while preserving the power
and flexibility would indeed be interesting. 


Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: KR [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 29, 2005 2:59 PM
To: slide-user@jakarta.apache.org
Subject: New webdav server - survey of interest

Hi,
I'm trying to get an idea of the needs of developers using webdav-based
solutions. We are building a webdav server with the following
characteristics and would like to get an idea of interest from this group in
using something like this.

Features:
- Webdav server supporting versioning but not deltaV
- Simple java API to tie your apps directly (API will be similar to
java.io.File api - direct and intuitive)
- Meta-data stored in database, files on distributed file servers with
redundant storage (every file stored on n-server nodes; automatic
replication if node fails; dynamically add any number of server nodes).
- Focus on performance, performance, performance (one of the shortcomings of
slide is that it tries to be too generic).
- Externally managed user definition with user and security API (not ACL
protocol, but ACL/permission based security)
- Every user has their own home dir. Ability to map to other directories,
ability to soft-link to any directory (a windows-like network-folder model)

Future versions will support full-text search and other features. This would
be a commercial product.
Your feedback is appreciated.




__
Yahoo! for Good
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 


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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has

RE: sub-folders not displaying

2005-08-16 Thread Miguel Figueiredo

Hello folks,

 I use PROPFIND method, and all goes well.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Burnside, Phillip (UK - Glasgow)
[mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 16 de Agosto de 2005 9:22
To: Slide Users Mailing List
Subject: RE: sub-folders not displaying

Owen,
 
I remember encountering this problem.
 
I *think* you need to use the Report method...but it is a while since I've
looked at it.
 
I'll have a look later in the week and get back to you,
 
Rgrds
Phil

-Original Message- 
From: Owen Byrne [mailto:[EMAIL PROTECTED] 
Sent: Tue 16/08/2005 09:05 
To: slide-user@jakarta.apache.org 
Cc: 
Subject: sub-folders not displaying



Hi,

 I'm developing a web-dav client and I can't seem to view
sub-folders using
the slide webdavclient library (version 2.1).

(on the server side I'm running Apache/2.0.54 DAV/2 ) I can connect
to a
webdav folder just fine and the *files* within folders display just
fine.
However, sub-folders,

although they do exist, do not display! I've verified that
everything is
ok on the server side through the use of

alternative webdav clients such as windows web folders and Dav
Explorer
which (don't use the slide libraries)

and these clients list files  sub-directories as expected.



eg directory structure:



   webdav-folder

|

|---sub-folder1

|   |

|   |--sub-folder1-1

|   |

|   |--sub-folder1-2

|   |

|   |--file3

|   |

|   |--file4   

|

|---sub-folder2

|

|---file1

|

|---file2





Using the slide client libraries, I connect to
http://localhost/webdav-folder
and perform a WebdavResource.list() -this will return the names of

 file1 and file2 but *not* sub-folder1 or sub-folder2. Other methods
such
as getChildResources(), listWebdavResources() -also only return
*file* resources!





If I know that sub-folder1 exists, I can connect to
http://localhost/webdav-folder/sub-folder1
and successfully list file3 and file4, but there's no sign of
sub-folder1-1
or sub-folder1-2 !



I've also tried the commandline jakarta slide client which produces
the same
wrong results. What's frustrating is that other web-dav clients

such as DAV Explorer (which doesn't use slide) work fine.





A similar question was asked on this forum recently which received
some replies,
but alas not a solution. Has anyone

else encountered this, or can point me in the right direction?



Many Thanks for your help,

Owen




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
IMPORTANT NOTICE
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to the statement
below or contact the sender.
This communication is from Deloitte  Touche LLP.   Deloitte  Touche LLP is
a limited liability partnership registered in England and Wales with
registered number OC303675.   A list of members' names is available for
inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR,
United Kingdom, the firm's principal place of business and registered
office.   Deloitte  Touche LLP is authorised and regulated by the Financial
Services Authority.
This communication and any attachments contain information which is
confidential and may also be privileged.   It is for the exclusive use of
the intended recipient(s).  If you are not the intended recipient(s) please
note that any form of disclosure, distribution, copying or use of this
communication or the information in it or in any attachments is strictly
prohibited and may be unlawful.  If you have received this communication in
error, please return it with the title received in error to
[EMAIL PROTECTED] then delete the email and destroy any copies
of it.
E-mail communications cannot be guaranteed to be secure or error free, as
information could be intercepted, corrupted, amended, lost, destroyed,
arrive

RE: My dirty solution to set non-inheritable privileges using webdav client

2005-07-25 Thread Miguel Figueiredo
 

Good morning,

 

 Have you checked the following parameter?

 

 parameter name=acl_inheritance_type[path|0|1|...]/parameter

 

 It’s configurable in the Domain.xml

 

 Hope this helps,

 Miguel Figueiredo

 

 

-Original Message-
From: Maximo Gurmendez [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 25 de Julho de 2005 5:20
To: Slide Users Mailing List
Subject: My dirty solution to set non-inheritable privileges using webdav
client

 

I've modified the createNodePermissionList method from
org.apache.slide.webdav.method.AclMethod class as pasted below.

For doing this I send through webdav a new privilege read-noninheritable
or write-noninheritable, and it works fine.

 

Example, for client:

 

Ace a = new Ace(/users/auser);

a.setInherited(false);

a.addPrivilege(new
Privilege(ECADEMICUS:,read-noninherited,inherit));

a.setProtected(false);

a.setNegative(false);

Ace[] aces = new Ace[1];

aces[0]=a;

boolean ok = res.aclMethod(/files/afolder,aces);

 

Maybe it is not the best, but it was suggested as a posibility. Maybe
someone knows of a better way.

 

Many thanks,

 Máximo

 

Ing. Máximo Gurméndez

IT Applications Integrator

The British Schools, Montevideo

Máximo Tajes 6400

Tel. 6003421 int. 136

email: [EMAIL PROTECTED]

 

 




 

 

 

private List createNodePermissionList( Element aceElm ) throws
PreconditionViolationException, SlideException, JDOMException {

List result = new ArrayList();

String objectUri = resourcePath;

String subjectUri = null;

String actionUri = null;

boolean negative = false;

boolean invert = false;



// ACE principal

Element principalElm = aceElm.getChild(E_PRINCIPAL, DNSP);

if (principalElm == null) {

Element invertElm = aceElm.getChild(E_INVERT, DNSP);

if (invertElm != null) {

invert = true;

principalElm = invertElm.getChild(E_PRINCIPAL, DNSP);

}

}

if (principalElm != null) {

subjectUri = createSubjectUri(principalElm);

}

else {

throw new PreconditionViolationException(

new ViolatedPrecondition(missing-ace-principal,
WebdavStatus.SC_BAD_REQUEST), resourcePath

);

}



// ACE grant and deny

Element grantDenyElm = null;

Element grantElm = aceElm.getChild(E_GRANT, DNSP);

Element denyElm = aceElm.getChild(E_DENY, DNSP);

if (grantElm != null  denyElm == null) {

grantDenyElm = grantElm;

}

else if (grantElm == null  denyElm != null) {

negative = true;

grantDenyElm = denyElm;

}

else if(grantElm != null  denyElm != null) {

throw new PreconditionViolationException(

new ViolatedPrecondition(only-grant-or-deny-allowed,
WebdavStatus.SC_BAD_REQUEST), resourcePath

);

}

else if(grantElm == null  denyElm == null) {

throw new PreconditionViolationException(

new ViolatedPrecondition(missing-grant-or-deny,
WebdavStatus.SC_BAD_REQUEST), resourcePath

);

}

Iterator privilegeIt = grantDenyElm.getChildren(E_PRIVILEGE,
DNSP).iterator();



while (privilegeIt.hasNext()) {

Element privilegeElm = (Element)privilegeIt.next();

actionUri = createActionUri(privilegeElm);

if (actionUri == null) {

throw new PreconditionViolationException(

new ViolatedPrecondition(not-supported-privilege,
WebdavStatus.SC_BAD_REQUEST), resourcePath

);

}

else {

//begin add ecademicus

boolean inherit=true;

if (actionUri.endsWith(-noninherited)) {

inherit=false;

actionUri=actionUri.replaceAll(-noninherited,);

}

//end add ecademicus





//NodePermission np = new NodePermission(objectUri,
subjectUri, actionUri, true, negative);

// mod ecademicus

NodePermission np = new NodePermission(objectUri,
subjectUri, actionUri, inherit, negative);

np.setInvert(invert);

result.add(np);

}

}



   



return result;

}



RE: getting PROTOCOL_NOT_SUPPORTED error using IE and navigateFrame

2005-07-01 Thread Miguel Figueiredo
 

 Hello Edmund,

 

 That problem is similar with one I saw in this mailing list some months
ago. In short, it's an M$ problem in obeying HTTP specification, and
stubbornness of tomcat's team to follow a slightly different behaviour where
HTTP spec is kind of shallow.

 

 If it is what I'm thinking, it's a problem with the interpretation of the
expect-continue http header witch, M$ sends to the server, but instead of
waiting for de 100-continue response, it just starts to send the body of the
message. When the server receives the request with expect header, and it's
body, the server thinks the body is another HTTP request, witch obviously is
not. Result: server returns PROTOCOL_NOT_SUPPORTED http code.

 

 How to solve this? Turn off expect-header in M$ side or keep-alive
connections (auch).

 

 Hope this helps,

 Miguel Figueiredo

 

 

-Original Message-
From: Edmund Urbani [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 1 de Julho de 2005 9:46
To: slide-user@jakarta.apache.org
Subject: getting PROTOCOL_NOT_SUPPORTED error using IE and navigateFrame

 

 

Hi!

 

I'm trying to use an IE specific feature to access the slide server

directly as a webfolder from a html page. to do this I'm using the

javascript method navigateFrame. this does work with an old webdav

repository here (tomcat 4.1 + some slide 2.1 beta) but it won't work on

other systems with more recent tomcat+slide (tomcat 5.0.x and slide

2.1/slide 2.2pre1). i'm not sure whether the versions have anything to

do with the problem. it could also be something about tomcat's/slide's

configuration. i have not really been able to narrow it down.

 

the navigateFrame method returns OK for the old repository and

PROTOCOL_NOT_SUPPORTED for the other ones i tried. when it works i get

the webfolder view in a new window, when it does not the window (which i

created with javascript window.open) remains empty.

 

any ideas? anyone seen this kind of error before?

 

 Edmund

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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



RE: Adding users/roles manually to filesystem

2005-06-16 Thread Miguel Figueiredo

Hello Brandon,

 That's probably because of the store's cache: it doesn't need to read the
.def.xml files for some time after they have been read the first (or
subsequente) time. Maybe if you remove the node from the cache, the node to
witch the .def.xml is it's content.

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Brandon Dove [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 15 de Junho de 2005 22:03
To: slide-user@jakarta.apache.org
Subject: Adding users/roles manually to filesystem

Hi -- I'm adding collections for users/roles manually -- i.e.
writing new .def.xml files for the user/roles to the filesystem
myself but it seems that Slide doesn't pick up the new
definitions without restarting. Any ideas on how to get around
this?

Cheers,

Brandon


Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
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: Re: Problems getting authentication working

2005-05-19 Thread Miguel Figueiredo

Hello Brandon,

 That's weird. The symptom for the log 

May 17, 2005 5:32:46 PM org.apache.catalina.realm.JAASRealm
authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration
at
com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97)

... is that the the file jaas.config does not exist in the path that it's
supposed to be. The default path is $TOMCAT_HOME/conf/.

If nothing about jaas is configured in the server.xml, maybe you should
check the /bin/startup.bat file also.

Best Regards,
Miguel Figueiredo

-Original Message-
From: Brandon Dove [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 18 de Maio de 2005 19:24
To: slide-user@jakarta.apache.org
Subject: RE: Re: Problems getting authentication working

 I believe that one distribution of slide comes with jaas
 integration. It seems to be your case, so, I believe that you
only need to
 delete the JAASRealm pointing to a slide configuration on
server.xml of
 tomcat.

I've looked for any references to JAAS in my configuration and
can see nothing. I've done the following in $TOMCAT_HOME:

grep -i jass $(find .)

and find no matches other than in the binary file
$TOMCAT_HOME/webapps/slide/WEB-INF/slide-jaas-2.1.jar.

Cheers,

Brandon


Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
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: Binding store rename accents

2005-05-18 Thread Miguel Figueiredo

Hia folks,

 I'm using binding store also, and had this similar problem last week. Can
you confirm in server.xml that the http connector has the
«URIEncoding=UTF-8» property ?

Best regards,
Miguel Figueiredo

-Original Message-
From: Jacob Lund [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 18 de Maio de 2005 9:12
To: Slide Users Mailing List
Subject: Re: Binding store  rename  accents

Forgot to mention: I am using 2.1 and the filestore with bindings. Encoding 
set to UTF-8.

The move shown below will move /files/test to /files/testéàù on my slide 
instance.

/jacob

- Original Message - 
From: Jacob Lund [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org
Sent: Wednesday, May 18, 2005 10:00 AM
Subject: Re: Binding store  rename  accents


 Try to use a trace program to see what data is sent from the client to the

 server. The request from the client should look something like this:

 MOVE /files/test HTTP/1.1
 Host: localhost:82
 Connection: TE
 TE: trailers
 Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9

 /jacob

 PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/

 - Original Message - 
 From: Laurent Michenaud [EMAIL PROTECTED]
 To: Slide Users Mailing List slide-user@jakarta.apache.org
 Sent: Wednesday, May 18, 2005 9:38 AM
 Subject: RE: Binding store  rename  accents


 I have already configured -Dfile.encoding=UTF-8.

 I have seen that some methods need the parameters to be UTF-8 encoded, 
 others don't.
 The move method doesnot need the parameters to be encoded.

 I don't have the problem with the standard store.

 -Message d'origine-
 De : Jacob Lund [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 18 mai 2005 09:32
 À : Slide Users Mailing List
 Objet : Re: Binding store  rename  accents

 If you are using the files based store and windows then you have to have
 following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise
 java will use local characterset instead of unicode in IO operations.

 I am not familiar with the client lib, but I don't think that lib will do
 the UTF-8 conversion for you. If I am correct the you will have to change
 /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9.

 /jacob


 - Original Message - 
 From: Laurent Michenaud [EMAIL PROTECTED]
 To: Slide Users Mailing List slide-user@jakarta.apache.org
 Sent: Wednesday, May 18, 2005 9:06 AM
 Subject: RE: Binding store  rename  accents


 Slide 2.1
 Encoding : UTF-8
 Client : Java Webdavlib
 Store : BindingStore

 The code :

 HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;);
 oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD);
 WebdavResource oWebdavResource = new WebdavResource(oHttpURL);
 oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT );
 if ( oWebdavResource.moveMethod(
 /slide/files/test, /slide/files/testéàù)) {
 oWebdavResource.commitTransaction();
 }
 else oWebdavResource.abortTransaction();
 oWebdavResource.close();


 -Message d'origine-
 De : Jacob Lund [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 18 mai 2005 08:57
 À : Slide Users Mailing List
 Objet : Re: Binding store  rename  accents

 Sounds like an encoding problem!

 What version of slide are you using? What client? What encoding have you
 configured?

 /jacob

 - Original Message - 
 From: Laurent Michenaud [EMAIL PROTECTED]
 To: Slide Users Mailing List slide-user@jakarta.apache.org
 Sent: Tuesday, May 17, 2005 12:18 PM
 Subject: Binding store  rename  accents


 Hi,



 I use the binding store.



 If I try to rename a resource and the new resource name contains
 accents, then

 my resource disappears. I can't see it anymore.



 In the console, I can see when I access the parent folder of my resource
 :

 http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal
 Server Error, 16 ms, /files/workspaces



 Any idea ?



 Thanks



 -
 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: Binding store rename accents

2005-05-18 Thread Miguel Figueiredo

Yes it does, I don't have an encoding problem after setting that property to
UTF8... Also, from the client side I have default configurations so I didn't
have the opportunity to mess them up.

Miguel

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 18 de Maio de 2005 11:24
To: Slide Users Mailing List
Subject: RE: Binding store  rename  accents

Yes, the property is configured.

Does it work for u now ?

-Message d'origine-
De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 18 mai 2005 12:22
À : 'Slide Users Mailing List'
Objet : RE: Binding store  rename  accents

Hia folks,

 I'm using binding store also, and had this similar problem last week. Can
you confirm in server.xml that the http connector has the
«URIEncoding=UTF-8» property ?

Best regards,
Miguel Figueiredo

-Original Message-
From: Jacob Lund [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 18 de Maio de 2005 9:12
To: Slide Users Mailing List
Subject: Re: Binding store  rename  accents

Forgot to mention: I am using 2.1 and the filestore with bindings. Encoding 
set to UTF-8.

The move shown below will move /files/test to /files/testéàù on my slide 
instance.

/jacob

- Original Message - 
From: Jacob Lund [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org
Sent: Wednesday, May 18, 2005 10:00 AM
Subject: Re: Binding store  rename  accents


 Try to use a trace program to see what data is sent from the client to the

 server. The request from the client should look something like this:

 MOVE /files/test HTTP/1.1
 Host: localhost:82
 Connection: TE
 TE: trailers
 Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9

 /jacob

 PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/

 - Original Message - 
 From: Laurent Michenaud [EMAIL PROTECTED]
 To: Slide Users Mailing List slide-user@jakarta.apache.org
 Sent: Wednesday, May 18, 2005 9:38 AM
 Subject: RE: Binding store  rename  accents


 I have already configured -Dfile.encoding=UTF-8.

 I have seen that some methods need the parameters to be UTF-8 encoded, 
 others don't.
 The move method doesnot need the parameters to be encoded.

 I don't have the problem with the standard store.

 -Message d'origine-
 De : Jacob Lund [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 18 mai 2005 09:32
 À : Slide Users Mailing List
 Objet : Re: Binding store  rename  accents

 If you are using the files based store and windows then you have to have
 following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise
 java will use local characterset instead of unicode in IO operations.

 I am not familiar with the client lib, but I don't think that lib will do
 the UTF-8 conversion for you. If I am correct the you will have to change
 /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9.

 /jacob


 - Original Message - 
 From: Laurent Michenaud [EMAIL PROTECTED]
 To: Slide Users Mailing List slide-user@jakarta.apache.org
 Sent: Wednesday, May 18, 2005 9:06 AM
 Subject: RE: Binding store  rename  accents


 Slide 2.1
 Encoding : UTF-8
 Client : Java Webdavlib
 Store : BindingStore

 The code :

 HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;);
 oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD);
 WebdavResource oWebdavResource = new WebdavResource(oHttpURL);
 oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT );
 if ( oWebdavResource.moveMethod(
 /slide/files/test, /slide/files/testéàù)) {
 oWebdavResource.commitTransaction();
 }
 else oWebdavResource.abortTransaction();
 oWebdavResource.close();


 -Message d'origine-
 De : Jacob Lund [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 18 mai 2005 08:57
 À : Slide Users Mailing List
 Objet : Re: Binding store  rename  accents

 Sounds like an encoding problem!

 What version of slide are you using? What client? What encoding have you
 configured?

 /jacob

 - Original Message - 
 From: Laurent Michenaud [EMAIL PROTECTED]
 To: Slide Users Mailing List slide-user@jakarta.apache.org
 Sent: Tuesday, May 17, 2005 12:18 PM
 Subject: Binding store  rename  accents


 Hi,



 I use the binding store.



 If I try to rename a resource and the new resource name contains
 accents, then

 my resource disappears. I can't see it anymore.



 In the console, I can see when I access the parent folder of my resource
 :

 http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal
 Server Error, 16 ms, /files/workspaces



 Any idea ?



 Thanks



 -
 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

RE: Re: Problems getting authentication working

2005-05-18 Thread Miguel Figueiredo
Hello Brandon,

 Authentication is a process in witch a user makes himself unmistakably
known to the web application.
 Access Control is another process, in witch it's tested if an authenticated
user (also called a principal), has rights to perform an action on a
resource. You can configure default access control to principals in the
startup repository image that is created inside the data tag in
domain.xml, but the usual way to do it shall be in runtime, by using the
client side API.
 Uncommenting the security directives on web.xml, just enables the usage of
the default roles and users (principals), also configured in domain.xml, so
JAAS isn't needed now. My advice: messing up with jaas isn't for the feint
of heart, so I wouldn't sugest you to try it just yet ;)

Best regards,
Miguel Figueiredo

-Original Message-
From: Brandon Dove [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 18 de Maio de 2005 15:21
To: Jacob Lund
Subject: Re: Re: Problems getting authentication working

I've been following the online documentation but I guess I'm not
 clear on the difference between access control and
authentication and where/how it should be applied. As I
understand it access control determines the permissions that a
user has for certain actions. These access controls are
specified in Domain.xml correct?

So how does authentication differ? Reading the Security section
of the online docs it simply indicates that to enable
authentication one should uncomment the indicated lines in
web.xml but doesn't indicate any further JAAS setup is required.
 I have quite limited experience with this so any
help/clarification is much appreciated.

Cheers,

Brandon





Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


 On Wed, 18 May 2005, Jacob Lund ([EMAIL PROTECTED]) wrote:

 What realm do you want to use? If you want to use users and
groups defined 
 in slide the have a look at:
 http://jakarta.apache.org/slide/howto-jaas.html
 
 /jacob
 
 - Original Message - 
 From: Brandon Dove [EMAIL PROTECTED]
 To: slide-user@jakarta.apache.org
 Sent: Tuesday, May 17, 2005 11:21 PM
 Subject: Problems getting authentication working
 
 
  I've enabled authentication (by uncommenting the lines
indicated
  in web.xml) but subsequent attempts to log in fail using any
  login/password (including root/root). The logs indicate the
  following error:
 
  SEVERE: Unexpected error
  java.lang.SecurityException: Unable to locate a login
  configuration
 
 
  Can anyone offer some help? I'm using Slide 2.1 with Tomcat
  5.5.4.
 
  Cheers,
 
  Brandon
 
  
  Get your own 800 number
  Voicemail, fax, email, and a lot more
  http://www.ureach.com/reg/tag
 
 
-
  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: Re: Problems getting authentication working

2005-05-18 Thread Miguel Figueiredo
Hello Brandon,

 See my responses inline.

Best regards,
Miguel Figueiredo

-Original Message-
From: Brandon Dove [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 18 de Maio de 2005 16:28
To: slide-user@jakarta.apache.org
Subject: RE: Re: Problems getting authentication working

Miguel -- thanks for the clarification. So access control deals
with principals and the rights they have to perform actions on
resources and authentication deals with granting a user access
to the webapp itself. Reading the documentation is it not
authentication that's enabled/disabled in web.xml and not access
control? 

Miguel that is correct


At any rate I've followed the basic steps outlined in the
security documentation but get the following error in my logs:

May 17, 2005 5:32:46 PM org.apache.catalina.realm.JAASRealm
authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login
configuration
at
com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97)

Any ideas why I'd be getting this error? I've never
intalled/setup anything to do with JAAS on this server (and I've
setup the server from scratch and been the sole adminstrator
since then) so I'm a little confused as to why I'd see mention
of the JAASRealm in the logs.

Miguel I believe that one distribution of slide comes with jaas
integration. It seems to be your case, so, I believe that you only need to
delete the JAASRealm pointing to a slide configuration on server.xml of
tomcat.

Cheers,

Brandon


 On Wed, 18 May 2005, Miguel Figueiredo
([EMAIL PROTECTED]) wrote:

 Hello Brandon,
 
  Authentication is a process in witch a user makes himself
unmistakably
 known to the web application.
  Access Control is another process, in witch it's tested if an
authenticated
 user (also called a principal), has rights to perform an
action on a
 resource. You can configure default access control to
principals in the
 startup repository image that is created inside the data tag
in
 domain.xml, but the usual way to do it shall be in runtime, by
using the
 client side API.
  Uncommenting the security directives on web.xml, just enables
the usage of
 the default roles and users (principals), also configured in
domain.xml, so
 JAAS isn't needed now. My advice: messing up with jaas isn't
for the feint
 of heart, so I wouldn't sugest you to try it just yet ;)
 
 Best regards,
 Miguel Figueiredo
 
 -Original Message-
 From: Brandon Dove [mailto:[EMAIL PROTECTED] 
 Sent: quarta-feira, 18 de Maio de 2005 15:21
 To: Jacob Lund
 Subject: Re: Re: Problems getting authentication working
 
 I've been following the online documentation but I guess I'm
not
  clear on the difference between access control and
 authentication and where/how it should be applied. As I
 understand it access control determines the permissions that a
 user has for certain actions. These access controls are
 specified in Domain.xml correct?
 
 So how does authentication differ? Reading the Security
section
 of the online docs it simply indicates that to enable
 authentication one should uncomment the indicated lines in
 web.xml but doesn't indicate any further JAAS setup is
required.
  I have quite limited experience with this so any
 help/clarification is much appreciated.
 
 Cheers,
 
 Brandon
 
 
 
 
 
 Get your own 800 number
 Voicemail, fax, email, and a lot more
 http://www.ureach.com/reg/tag
 
 
  On Wed, 18 May 2005, Jacob Lund ([EMAIL PROTECTED]) wrote:
 
  What realm do you want to use? If you want to use users and
 groups defined 
  in slide the have a look at:
  http://jakarta.apache.org/slide/howto-jaas.html
  
  /jacob
  
  - Original Message - 
  From: Brandon Dove [EMAIL PROTECTED]
  To: slide-user@jakarta.apache.org
  Sent: Tuesday, May 17, 2005 11:21 PM
  Subject: Problems getting authentication working
  
  
   I've enabled authentication (by uncommenting the lines
 indicated
   in web.xml) but subsequent attempts to log in fail using
any
   login/password (including root/root). The logs indicate
the
   following error:
  
   SEVERE: Unexpected error
   java.lang.SecurityException: Unable to locate a login
   configuration
  
  
   Can anyone offer some help? I'm using Slide 2.1 with
Tomcat
   5.5.4.
  
   Cheers,
  
   Brandon
  
   
   Get your own 800 number
   Voicemail, fax, email, and a lot more
   http://www.ureach.com/reg/tag
  
  

-
   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

RE: telling the binded resource from the original

2005-05-10 Thread Miguel Figueiredo

On Tuesday 10 May 2005 13:04, Julian Reschke wrote:
 Marco Ferretti wrote:
  Hi all.
 
  I wonder if there's a way, using slide client API, to tell a link ( a
  binded resource ) from the one the resource points to .

 There is no difference. That's the whole point of having that feature.

 Best regards,

 Julian

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


Julian 

thanks for ypur quick reply.
I wouldn't be so sure : in fact If I set a notification listener on the
link 
and then I modify the source I don't get a notification trigger... but
that's 
might be a feature o something server side I don't understand...
-- 
Don't sweat it -- it's only ones and zeros.
-- P. Skelly
___

Hello Skelly,

 Perhaps the notification trigger knows only about URIs: if the notification
is listening to changes on a given resource, identified by an URI, it
shouldn't actuate on other resources with different URIs.
 Anyway, one thing is certain: if you change the link's properties or
content, the original resource will change accordingly.

Hope this helps,
Miguel


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



RE: Versioning Acl via Webdav

2005-04-27 Thread Miguel Figueiredo

Hello Larent,

 Yes you can: you only need to use slide's client API.

Best regards,
Miguel



 I'm watching you! 

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 27 de Abril de 2005 10:30
To: Slide Users Mailing List
Subject: Versioning  Acl via Webdav

I want to manipulate Acl and Versioning in Slide but

from another webapp ( and maybe from another server ).

 

So, I can't use directly the slide API.

 

I have looked at Projector. I can create user/role using it,

but I don't think I can manipulate Acl and Versioning with it

 

How can I do ?

 

Is it possible to send Webdav requests to slide to manipulate

Versioning  Acl ?



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



RE: Versioning Acl via Webdav

2005-04-27 Thread Miguel Figueiredo

 Hello again,

 Instructions in how to install and configure slide are available at these
addresses:
http://jakarta.apache.org/slide/installation.html 
http://jakarta.apache.org/slide/conf-lib.html 

Relevant configurations for versioning must also be configured, and they are
available at this address:
http://jakarta.apache.org/slide/howto-deltav.html 

Information on how to use the client API is available at wiki site:
http://wiki.apache.org/jakarta-slide/ and the javadocs:
http://jakarta.apache.org/slide/clientjavadoc/index.html 

 Start reading those and you will be on the right track.

 Hope this helps.



Can u explain me how to use it ?

I mean configuration files and how to establish the communication
with the slide server.


-Message d'origine-
De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 27 avril 2005 11:37
À : 'Slide Users Mailing List'
Objet : RE: Versioning  Acl via Webdav

Hello Larent,

 Yes you can: you only need to use slide's client API.

Best regards,
Miguel

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 27 de Abril de 2005 10:30
To: Slide Users Mailing List
Subject: Versioning  Acl via Webdav

I want to manipulate Acl and Versioning in Slide but

from another webapp ( and maybe from another server ).

 

So, I can't use directly the slide API.

 

I have looked at Projector. I can create user/role using it,

but I don't think I can manipulate Acl and Versioning with it

 

How can I do ?

 

Is it possible to send Webdav requests to slide to manipulate

Versioning  Acl ?



-
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: ACL for files

2005-04-14 Thread Miguel Figueiredo

Hello Haipeng,

 Yes you can, that's the point of using the ACL feature.

Best regards,
Miguel Figueiredo

-Original Message-
From: haipeng du [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 13 de Abril de 2005 19:11
To: slide-user@jakarta.apache.org
Subject: ACL for files

Is that possible to configure acl for each file in slide at run time?
Everytime, when I put a file into slide, I want to put the acl
properties for that file. When I retrive file from slide, I will pass
a role to slide so that it can decide if file can be retrived (or I
can check the role before calling getMethod() ).
-- 
Haipeng Du
Software Engineer
Comphealth, 
Salt Lake City

-
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: Bind question ( Bound to be a file ? ;) )

2005-04-12 Thread Miguel Figueiredo
Hello,

 From my experience with the bind store, the first DAV:parent child in a
DAV:parent-set element is the 'real' or original resource. If a bind is
created to this same resource, a second DAV:parent child is added, but no
difference is made between them exists, witch is the justification of
Reschke statement. That's even worse: if you erase the ‘original’, only the
‘bind’ resource is left, so it becames the ‘original’ resource :P

 In my project we solved this problem by making a propatch before making a
bind of a resource, where we would store the original resource URI in the
resource to be binded. Since the properties are shared by all binds, that
means we can distinguish what is a bind and the original resource.

Hope this helps,
Miguel Figueiredo

___

-Original Message-
From: Julian Reschke [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 12 de Abril de 2005 17:13
To: Slide Users Mailing List
Subject: Re: Bind question ( Bound to be a file ? ;) )

Paul Hussein wrote:
 Hi,
 
 Was wondering if there was a quick way to know if a file/collection is 
 real collection/file or a link ( bind ) item.

As far as the BIND spec is concerned, there is no difference.


Best regards, Julian

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


RE: Circular folders in Windows XP

2005-04-07 Thread Miguel Figueiredo

Hello,

 This is an issue with M$ webfolder client. When you create a new folder,
the default behaviour of the webfolder is to create a new directory with the
displayname and uri to New Folder. When you give in your name, or rename
the folder, webfolder only makes a propatch to the displayname witch, in the
end, results in the display you encountered: new folders inside newfolders,
inside newfolders... The problem maybe would not show up if when making
copies or moves from one side to another in webfolder, the displayname
wouldn't revert to New Folder again.

 The solution: use other client to manage folders.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Paul Dorman [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 7 de Abril de 2005 1:41
To: slide-user@jakarta.apache.org
Subject: Circular folders in Windows XP

Hi all,

we have a simple WebDAV repository set up and our primary clients are
Windows XP machines. I can get around the issue of domain passwords by
using this format when setting up a new webfolder:

http://webdav:/slide/

The colon seems to help nicely :o)

The problem now is that when you create a new folder (collection) in
Windows XP, you see the same folder inside itself over and over again.
So:

New folder-New folder-New folder...

If I look at the properties in Windows it never stops telling me how
many subfolders there are. But in DAVExplorer or Nautilus I only see the
one collection.

Has anyone seen this problem before? It's bizarre to say the least! On
top of that, hitting 'refresh' seems to kill the behaviour in an
inconsistent way (sometimes works, sometimes doesn't).

One other note, is there any way to improve auto-versioning
compatibility with Windows XP?

Cheers,
Paul


-
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: Optical/RO Stores with Slide?

2005-04-04 Thread Miguel Figueiredo

 Hello Darren,

 I don't know if it is that simple as your configuration seems to be.
Anyway, could you try and add the drive letter for the workpath also?
Perhaps it gives a different error :)

 Best regards,
 Miguel



Hi Miguel,
Thank you for your input.  Unfortunately, I already considered the
transaction-nature of these stores, and the work/'metadata' and
work/'content' related directories are still on regular filesystem, not
pointing to the read-only CD/DVD.

Example:
parameter name=rootpathe:/kbstore/metadata/parameter
parameter name=workpathwork/metadata2/parameter

This is where e:/ is the CD drive, and 'work' is still the relative BIN
path of Tomcat with r/w access.

Unfortunately, one of the concerns is that I purposely want to keep the
DAV properties metadata that is stored via TxXMLFileDescriptorsStore. I
think SimpleStore only handles files/content, not the metadata.  And I
do not know of any metadata stores that can read the files generated by
TxXMLFileDescriptorsStore.

Hopefully I'm wrong?  Any feedback please!

-D

 

 -Original Message-
 From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 04, 2005 6:39 AM
 To: 'Slide Users Mailing List'
 Subject: RE: Optical/RO Stores with Slide?
 
 
 Hello Darren,
 
  I believe you are having read-only problems. First of all, 
 stores should have read-write access or strange things might 
 happen. In your case, I bet that the domain.xml file is 
 pointing to the transient files (like transaction 
 information) also know as the 'work' directory, to the same 
 base directory of the 'store' directory. This would explain 
 the error you describe.
  The solution is to define very well these store parameters 
 (presented here is the default conf of domain.xml):
 
 parameter 
 name=rootpathstore/metadata/parameter
 parameter 
 name=workpathwork/metadata/parameter
 
  I don't know how you could do it but: what you want is the 
 rootpath in the DVD, but you need the workpath with write 
 access for accessing the roothpath through slide.
 
  I believe there are also simpler file stores, that don't 
 need to store transient files (SimpleStore rings me a bell). 
 Perhaps is good spot for you to search also.
 
  Hope this helps,
  Miguel Figueiredo
 

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


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



RE: Using slide to access MS Exchange

2005-04-01 Thread Miguel Figueiredo
Hello Ruan,

 

 From what I've read in this mailing list, you'll only need to use the
client  wevdav package, but that is not enough because M$ might have added
proprietary extensions on the exchange access, and forbidden the usage of
the standard one. :P

 I believe you should start by looking M$ documentation about webdav
alternate commands (like BPROPFIND or so) to access exchange, and search on
this mailing list history for anything to do with exchange.

 

 Best regards,

 Miguel Figueiredo

 

  _  

From: Ebersohn, Mr R [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 1 de Abril de 2005 10:06
To: slide-user@jakarta.apache.org
Subject: Using slide to access MS Exchange

 

Hi my name is Ruan; I am a postgraduate student at the Nelson Mandela
Metropolitan University. I am currently doing a project where I need access
to MS exchange server so to be able to get information about appointments
and tasks of a user in Java. I have just downloaded slide. I don't know the
first place to start and I have been researching this for days now. It seems
Slide is the way to go, can you by any chance give me any pointers on how to
use slide and any documentation for coding using slide to connect to
exchange. I am running an apache server currently.

 

 

Your help would be greatly appreciated.

 

Thank you 

 

 

Mr Ruan Ebersohn

Department of Computer Science and Information Systems

Nelson Mandela Metropolitan University

PO Box 77000

Port Elizabeth 6031

SOUTH AFRICA

Tel.: 27-41-504 2093

Email:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

 

 

 

 

 

 

NOTICE: Please note that this eMail, and the contents thereof, 
is subject to the standard NMMU eMail disclaimer which may be found at: 

http://www.nmmu.ac.za/disclaimer/email.htm 



RE: DASL questions

2005-03-16 Thread Miguel Figueiredo

Hello Luke,

 See some comments inline below.

May the force be with you,
Miguel Figueiredo


-Original Message-
From: Luke Noel-Storr [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 16 de Março de 2005 12:34
To: Slide Users Mailing List
Subject: DASL questions

Hi,

Sorry if this has been asked an answered previously, only there no 
longer seems to be a search feature on the mail asrchive, and searching 
it with Google returned nothing helpful.

Miguel   There is a site that is taking care of it now. It's independent
Miguel from Apache, but it's better than nothing. Also I believe that the
Miguel archive at http://www.archivum.info/slide-user@jakarta.apache.org/
Miguel only contains the last six months... again, it's better than
Miguel nothing. The development mailing list is also being archived.

Anyway, I have a couple of problems using DASL:

Firstly setting the depth to infinity, seem to actually set it to 
somewhere around 3, rather than infinity.  For example, if I have the 
following:

D:scope
D:hrefproject/Demo/data/funds/D:href
D:depthinfinity/D:depth
/D:scope

no results are returned, but if I use:

D:scope
D:hrefproject/Demo/data/funds/1002/D:href
D:depthinfinity/D:depth
/D:scope

two results are returned.

Am I doing something wrong, or is this a bug (or just how it works)?


Miguel I believe you're using it correctly. Check the depth-limit parameter
Miguel in the WEB-INF\web.xml file of slide webapp:
Miguel  This init-parameter determines the depth limit for PROPFIND and
Miguel othermethods, to avoid performance hits on the server for
Miguel requests with infinite depth. The default value is '3'.

Next, when I've tried to use database powered DASL serach by adding the 
following line to my config

parameter name=use-rdbms-expression-factorytrue/parameter

I get the following warning:

16 Mar 2005 12:30:46 - org.apache.slide.common.Domain - WARNING -
http8080-Processor25, 16-Mar-2005 12:30:46, luke, SEARCH, 400 Bad 
Request, 750 ms, /files

and no results.  The line above in my log files shows the SQL that was 
being executed, and it seems the problem is that it isn't Oracle 
friendly.  Any suggestions?

Miguel Hmm... that's the trick part. Are you using the oracle rdbms
Miguel adapter?

Cheers

Luke.
-




-
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: Version numbering?

2005-03-15 Thread Miguel Figueiredo

 Hello Warwick,

 I believe that the BASELINE webdav-versioning method is the one to use.
Unfortunally, Slide doesn't implement the advanced versioning features, in
witch the baseline methods is included, along with methods like fork and
merge.

 Best regards,
 Miguel 
_

Warwick Burrows wrote:
 Hi guys,
  
 What is the idea behind the version numbering in Slide (or is it
 WebDAV). The versions start at 1.0 and keep incrementing -- never
 reaching 2.0 as far as I can tell. When the UPDATE method is used to
 select an earlier branch (the closest thing to deleting a revision that
 Slide seems to have) then the revisions will branch.  Can a 2.0 version
 ever be reached? Is the version number design part of the WebDAV spec or
 just Slide's implementation?

It's implementation-specific.

Best regards, Julian

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


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



RE: Create a webdav resource on the server side

2005-03-04 Thread Miguel Figueiredo

Hello David,

 That is an interesting question. In response I ask you other questions ;) :

 * Do you have software that produces that desired Jpeg metainformation?
 * If so, does it produce XML data?
 * If so, is it ok to save that XML data WITH the Jpeg file?

 If these entire questions are true, I would give you a suggestion: When
saving a jpeg file into the webdav repository, make a PROPPATCH dav command
in sequence (or atomically by using Slide's transaction features) to a
property of the file like

UR.NS:JpegMeta

and making the its value the XML metainfo obtained from your metadata
producer.

 Hope this helps,
 Miguel

___

Hello,

Like many others I'm new on Slide/Webdav, so I discover his fabulous
capabilities step by step.

We are trying to do a content management system for JPeg images. While
putting a new file on the server I would like to extract metadata
information contained in the image file and store this in a separate XML
file also in the server repository. I've search in the documentation,
API and source code but without success for the moment. I can trigger
event on the PUT method, extract the data with an extractor, but I don't
how to inject my data in the repository.

How can I do this ?  Is it the right way for doing this ?

Thanks,

David



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


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



RE: Create a webdav resource on the server side

2005-03-04 Thread Miguel Figueiredo

Hello David,

 From your response I believe that you can use my suggestion. The property
can be modified, of course. You can't index the property using only slide,
but there are some initiatives to integrate Lucene. I didn't tried it yet,
but from what I've listened it's not trivial: you must get your hands dirty.

 The proppatch command is done in the client side, that is correct, using
Slide's client API. You will notice that in the API you have a
'startTransaction' and a 'commitTransaction', witch means you can aggregate
several commands in a single go. It's not difficult to use, just observe the
WebdavResource class javadocs and you can start doing your stuff :)

Best regards,
Miguel Figueiredo

__

Hello Miguel,

Thanks for the quick replies.

I can reply yes certainly to the 2 first questions. I think the reply of 
the third question is yes also. By WITH you mean store the XML data in a 
property associated with this Webdav JPEG resource ?
The reply is yes if this property could be modified and indexed, that's 
exactly what we want to do !

I think making a PROPPATCH dav command is to be done on the client side, 
isn't it ?

What do you mean by or atomically by using Slide's transaction features ?

Where could I find some examples ? I've search in the mailing list and 
in documentation, but I've find nothing.

David

Miguel Figueiredo wrote:

Hello David,

 That is an interesting question. In response I ask you other questions ;)
:

 * Do you have software that produces that desired Jpeg metainformation?
 * If so, does it produce XML data?
 * If so, is it ok to save that XML data WITH the Jpeg file?

 If these entire questions are true, I would give you a suggestion: When
saving a jpeg file into the webdav repository, make a PROPPATCH dav command
in sequence (or atomically by using Slide's transaction features) to a
property of the file like

   UR.NS:JpegMeta

and making the its value the XML metainfo obtained from your metadata
producer.

 Hope this helps,
 Miguel

___

Hello,

Like many others I'm new on Slide/Webdav, so I discover his fabulous
capabilities step by step.

We are trying to do a content management system for JPeg images. While
putting a new file on the server I would like to extract metadata
information contained in the image file and store this in a separate XML
file also in the server repository. I've search in the documentation,
API and source code but without success for the moment. I can trigger
event on the PUT method, extract the data with an extractor, but I don't
how to inject my data in the repository.

How can I do this ?  Is it the right way for doing this ?

Thanks,

David



-
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: LDAP Connection Error

2005-02-28 Thread Miguel Figueiredo

Hello Jacob,

 The JNDIStore does not look for anything here. The configuration u give to
her, tells her 'what is what, and where is it' ... Hmmm, with others words,
the configuration tells the LDAP/Active Directory server what kind of
objects she is looking for, and where she expects to be found. When you
start configuring it, you will get more insightful regarding this statement.

 When the JNDIStore asks something to the server, it asks by means of a bind
request, and the server shall have the responsibility to find objects, in
the configured places, that match the bind request. 'Modus Operandis' of the
LDAP or Active Directory is exactly the same regarding the bind operation,
the difference comes in the schemas they offer: standard schemas with LDAP,
proprietary but standard-based schema on Active Directory (M$ strikes again
:P ).

 Also, as you correctly stated, most companies split users and groups in
several OUs. I'm glad to report that the JNDIStore is generic enough to
adapt it's configuration to any deployment choices (at least we did not
found any trouble in its configuration until now).

Hope this helps,
Miguel Figueiredo

 

-Original Message-
From: Jacob Lund [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 28 de Fevereiro de 2005 8:46
To: Slide Users Mailing List
Subject: Re: LDAP Connection Error

Well - you mentioned exactly what I have been wondering about!

Most companies split users and groups in several OUs (Organizational units).

Can the JNDIStore search through the AD and fetch all users and groups, also

how will that affect the performance?

I have an AD with several OU ready for testing, but I have not had the time 
to look into this deeper yet!

/jacob

- Original Message - 
From: John Gilbert [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org; Slide Users

Mailing List slide-user@jakarta.apache.org
Sent: Friday, February 25, 2005 4:14 PM
Subject: RE: LDAP Connection Error


There isn't much to say. I just follow the instructions I found in the 
comment block of the source code and the postings to the user group. There 
was nothing too special for AD.

Here is a link to a posting by James Mason.
http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/conf/webapp/JNDI-Domain.
xml?rev=1.2view=auto

I did have to play with the jndi.attributes.groupmemberset and 
jndi.search.filter settings settings.
Just use any old ldap browser to browse the schema.

One thing I have found is that AD admins seem to like spreading their groups

and people around in the tree, instead of having a single people root and a 
single groups root. I don't think the JNDIPrincipalStore handles this case, 
but I didn't have time to test it thoroughly. It might have to do with the 
jndi.search.scope setting.

Also having the passwords in cleartext has been a battle.





From: Jacob Lund [mailto:[EMAIL PROTECTED]
Sent: Fri 2/25/2005 5:53 AM
To: Slide Users Mailing List
Subject: Re: LDAP Connection Error



Hi John!

I would like to create a Wiki on how to integrate slide with an AD!

Would you mind sharing your configuration of the JNDIPrincipalStore, realm
and other experiences on this integration?

Thanks
/Jacob

- Original Message -
From: John Gilbert [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org
Sent: Thursday, February 24, 2005 4:33 PM
Subject: LDAP Connection Error


I am using the JNDIPrincipalStore to connect to Active Directory to
retrieve Users and Roles. Everything works fine for a while.

Then it eventually gets a connection error and I have to restart the
Slide war. I have several other applications connecting to the same

Active Directory instance and they are not experiencing any problems or
may be they are handling the error and reconnecting automatically.



Has anyone had this problem?

Is the JNDIPrincipalStore supposed to gracefully reconnect? There is
nothing for this in the code. Is this handled by the framework?



Thanks

John



-
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: custom authentication with slide and httpclient

2005-02-09 Thread Miguel Figueiredo

Hello Aaron,

 Lately I have been very upset by that 'expect: continue' handshake. I'll
just link you with my results in this urls:


http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet
.frameworkmid=a515168f-df63-4ff3-8e2b-ec7f6fb76c0a

http://issues.apache.org/bugzilla/show_bug.cgi?id=31567 

In short, there seems to be an exploit Micro$oft found about to make their
http 1.1 implementation incompatible with tomcat 5.0.28 (at least this
version it's true). Seems like M$ uses the 'expect: continue' header for
authentication handshake but instead of waiting for the response, from the
remote server, before starting to send the body content, it starts to send
the body content anyway. That is bad because tomcat replies with an obvious
401 Unauthorized, and for the following HTTP request it uses the data from
the body content from the previous request as the start of the following
request. That results in another error response 505 HTTP Version Not
Supported.

 In those links I complained to M$ and they just told me to disable the
'expect' headers (LOL), and to Tomcat, Remy just wasn't very reasonable to
make an enhancement (discard the data of the invalid content body) witch I
though it was the right thing to do...

 It was just a warning about the expect headers.
 Best regards,
 Miguel Figueiredo



Hi Aaron,

See my comments in-line

On Mon, 2005-02-07 at 10:49 -0500, Aaron Hamid wrote:
 Hi folks, sorry for the cross posting but I think this issue is relevant 
 to both projects.
 

snip

 There are two problems I have found, one in http client, one in Slide.  
 First, it seems that CredentialsProvider ONLY is called upon a challenge 
 from the server (HttpMethodDirector, 'promptForCredentials'), and never 
 pre-emptively, even if I setAuthenticationPreemptive(true).  My 
 expectation would be that if I set preemptive authentication than my 
 registered CredentialsProvider should be called prior to the request 
 being made.  Our custom auth doesn't use an HTTP challenge, so the creds 
 are required to be there to begin with.

I can explain this. The problem is that only Basic authentication can be
used preemptively and required by HTTP spec for compatibility reasons.
All other schemes either cannot be used preemptively (NTLM) or should
not be used preemptively (Digest to some extent).

Firstly, challenge-less authentication schemes are inherently insecure,
because they allow the authentication credentials to be sent to an
unknown party. Even if the credentials are encrypted using a predefined
encryption algorithm, one can still easily pull off a 'man in the
middle' type of exploit.

Secondly, the so called 'expect: continue' handshake renders the
preemptive authentication virtually superfluous. For a fairly small
price one gains a lot in terms of security.

Bottom line, if your web server supports HTTP/1.1, which is a
commonplace these days, disable the preemptive authentication, enable
the 'expect: continue' handshake and live happily ever after.

 
 In addition, it seems that the HTTP Method implementations of Slide use 
 a default AuthState (in HttpMethodBase).  Apparently it uses BASIC auth 
 as the default scheme, and does not pick up the global defaults (I tried 
 registering my parameters on the DefaultParams* singleton after 
 discovering this, to see if they would be picked up, but they are not).
 

I do not know much about Slide's inner working, but I'll be willing to
take a look at the Slide source code, should this be required.


 I think the first quick fix is to update HttpMethodDirector so it uses 
 CredentialsProvider preemptively (if one is defined, and 
 setAuthenticationPreemptive is set).
 

See above.

 I'm not sure how to handle the second problem because I am not 
 thoroughly familiar with the design decisions and abstractions behind 
 HttpClient and expected usage.  I would think either the Slide 
 WebdavResource should expose the HttpClient with the real AuthState it 
 will use (I know I can get HttpClient through 
 WebdavSession.getSessionInstance... but it appears the default AuthState 
 in the Method overrides anything I set), or have the default authstate 
 inherit global defaults (perhaps lazily).
 

See above.

Cheers,

Oleg


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


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



RE: How to get file size for download

2005-02-01 Thread Miguel Figueiredo

Hello Clive,

 I believe that you can't get the content length from WebDavResource: not
until you download it. In your case, you should do a PROPFIND to the
resource URL, and from the response extract the DAV:contentlength property.

Best regards,
Miguel Figueiredo

-Original Message-
From: Clive Borrageiro [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 1 de Fevereiro de 2005 8:06
To: Slide Users Mailing List
Subject: How to get file size for download

Hi,

I need to get the size of a file on the server for download so that I can do
progress.
I tried 
long fileSize = webDavResource.getContentLength();

But this returns '0'. I also tried setting the full path and relative paths

webDavResource.setPath(http://localhost:8080/slide/files/Test.txt;);
or webDavResource.setPath(/files/Test.txt);

And I get 'URIException: invalid port number' - but it is the correct port
and
'HttpException' respectively.
How can I get the file size before downloading it.

Any help will be much appreciated!
Thanks.
Clive


-
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: Another performance question

2005-01-18 Thread Miguel Figueiredo

Hello Pontus,

 First of all, many thanks for your performance enquiries to the slide
mailing list: I've been consuming them avidly.
 For user aggregation on groups, and group2user or user2group traversal for
authentication/authorization purposes, I would suggest to publish that
information in a LDAP or Active Directory servers. These kinds of servers
are optimized for just doing that work and the biggest performance cost
associated with requesting a service to these authentication servers, would
be the establishment of a tcp connection. Hope this helps.

 Best regards,
 Miguel Figueiredo

-Original Message-
From: Pontus Strand [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 18 de Janeiro de 2005 9:21
To: Slide Users Mailing List (E-mail)
Subject: Another performance question

Hello again,

This time I want to ask about users. Are there any known problems with large
numbers of users and/or groups? And are there any nice parameters that we
should know about that improves user management? We haven't tested this yet,
mostly because the somewhat complex user management in Slide. My fear is
that adding large numbers of users to a group could lead to slow user access
verifications, is that a correct assumption?

Regards,
Pontus

-
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: Another performance question

2005-01-18 Thread Miguel Figueiredo

Hello,

 We have been using openldap as an authentication server without any issues
so far (windows distribution). As far as I learned it's a relatively active
open-source unix project, and you probably should already know about those
unix-geeks: they are perfectionists: P.
 I haven't made any performance tests on the openldap server, but I feel
confident it should handle quite well, at least comparable with commercial
implementations. Anyway, it's better than parsing XML documents (like it is
done by slide) and if the openldap performance isn't good enough, you can
still migrate to a commercial implementation (good thing about using
standards!). Last remark... OpenLdap is GPL.

 Now, the instructions of slide configuration to take advantage of an
LDAP/Active directory server are already on the slide documentation, witch
also makes some references to the tomcat documentation pages. It's all about
org.apache.catalina.realm.JNDIRealm realm on the web container side
(server.xml) and org.apache.slide.store.txjndi.JNDIPrincipalStore on the
slide webapp (domain.xml).

 Although it has been quite discussed in this mailing list, I'm attaching my
domain.xml and server.xml as examples. Also, when adding user info to the
LDAP server, I found quite useful the JExplorer tool. Finally, this are only
tips from where you can start learning.

Best Regards,
Miguel Figueiredo

PS: Is it possible to post your code patches for the 'limit' feature? Many
Thanks!




-Original Message-
From: Pontus Strand [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 18 de Janeiro de 2005 11:34
To: 'Slide Users Mailing List'
Subject: RE: Another performance question

Hello Miguel,

Thank you for you response. The problem with LDAP is that none of us in the
project has worked with LDAP. We will look into it, of course, so any
pointers you may have would be useful to us. For instance, is OpenLDAP any
good or should we look at a commercial LDAP-server? How should we setup
Slide to use LDAP?

Regards,
Pontus

 -Original Message-
 From: Miguel Figueiredo [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 18, 2005 11:04 AM
 To: 'Slide Users Mailing List'
 Subject: RE: Another performance question
 
 
 
 Hello Pontus,
 
  First of all, many thanks for your performance enquiries to the slide
 mailing list: I've been consuming them avidly.
  For user aggregation on groups, and group2user or user2group 
 traversal for
 authentication/authorization purposes, I would suggest to publish that
 information in a LDAP or Active Directory servers. These 
 kinds of servers
 are optimized for just doing that work and the biggest 
 performance cost
 associated with requesting a service to these authentication 
 servers, would
 be the establishment of a tcp connection. Hope this helps.
 
  Best regards,
  Miguel Figueiredo
 
 -Original Message-
 From: Pontus Strand [mailto:[EMAIL PROTECTED] 
 Sent: terça-feira, 18 de Janeiro de 2005 9:21
 To: Slide Users Mailing List (E-mail)
 Subject: Another performance question
 
 Hello again,
 
 This time I want to ask about users. Are there any known 
 problems with large
 numbers of users and/or groups? And are there any nice 
 parameters that we
 should know about that improves user management? We haven't 
 tested this yet,
 mostly because the somewhat complex user management in Slide. 
 My fear is
 that adding large numbers of users to a group could lead to 
 slow user access
 verifications, is that a correct assumption?
 
 Regards,
 Pontus
 
 -
 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]
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by 
   including your own mbean-descriptor file(s), and setting the 
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className

RE: Slide search performance issues

2005-01-18 Thread Miguel Figueiredo


Many Thanks Pontus! :)

Miguel

-Original Message-
From: Pontus Strand [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 18 de Janeiro de 2005 13:17
To: 'Slide Users Mailing List'
Subject: RE: Slide search performance issues

Ok, it seems that zip-files aren't approved by our mailserver ...

In the file AbstractRDBMSStore this was added:

// TODO: Added method. Maybe a bad idea to expose this variable?
public RDBMSAdapter getAdapter() {
return adapter;
}



In the file RDBMSExpressionFactory this method was modified:

protected ComparableResourcesPool getRequestedResourcePool() {
if (requestedResourcePool == null) {
// TODO: Add comment here.
// TODO: Add more pools here if need be ...
if (_store.getAdapter() instanceof MySql41RDBMSAdapter) {
requestedResourcePool = new
MySql41ComparableResourcesPool(_store, _context, getQuery());
}
else {
requestedResourcePool = new
RDBMSComparableResourcesPool(_store, _context, getQuery());
}
}
return requestedResourcePool;
}

--

The file MySql41ComparableResourcesPool.java was created and looks like
this:

/*
 * $Header:
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/MySql41
ComparableResourcesPool.java,v 1.10.2.4 2004/10/27 12:58:41 unico Exp $
 * $Revision: 1.10.2.4 $
 * $Date: 2004/10/27 12:58:41 $
 *
 * 
 *
 * Copyright 1999-2004 The Apache Software Foundation 
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package org.apache.slide.store.impl.rdbms;

import java.lang.reflect.Constructor;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import org.apache.slide.common.PropertyName;
import org.apache.slide.common.RequestedProperties;
import org.apache.slide.common.RequestedProperty;
import org.apache.slide.common.RequestedPropertyImpl;
import org.apache.slide.common.ServiceAccessException;
import org.apache.slide.common.SlideException;
import org.apache.slide.common.SlideRuntimeException;
import org.apache.slide.content.NodeProperty;
import org.apache.slide.search.BadQueryException;
import org.apache.slide.search.PropertyProvider;
import org.apache.slide.search.QueryScope;
import org.apache.slide.search.SearchQuery;
import org.apache.slide.search.SearchToken;
import org.apache.slide.search.basic.ComparableResourceImpl;
import org.apache.slide.search.basic.ComparableResourcesPool;
import org.apache.slide.search.basic.IBasicQuery;
import org.apache.slide.security.AccessDeniedException;
import org.apache.slide.store.impl.rdbms.expression.RDBMSExpressionFactory;
import org.apache.slide.store.impl.rdbms.expression.RDBMSQueryContext;
import org.apache.slide.structure.ObjectNode;
import org.apache.slide.util.logger.Logger;

/**
 */
public class MySql41ComparableResourcesPool extends
RDBMSComparableResourcesPool {

private final AbstractRDBMSStore _store;
private final RDBMSQueryContext _context;
private final IBasicQuery _query;
private final SearchToken _token;
private final QueryScope _scope;
private final Map _selectProperties;
private final PropertyProvider _provider;

private Set _pool;

public MySql41ComparableResourcesPool(AbstractRDBMSStore store, 
RDBMSQueryContext context,
IBasicQuery query) {
super(store, context, query);
_store = store;
_context = context;
_query = query;
_token = _query.getSearchToken();
_scope = _query.getScope();
_selectProperties = new HashMap();
_provider = new RDBMSPropertyProvider(_query.getPropertyProvider(),
_selectProperties);

if (_query instanceof SearchQuery) {
final RequestedProperties props = ((SearchQuery)
_query).requestedProperties();
if (!props.isAllProp()) {
final Iterator iter = props.getRequestedProperties();
while (iter.hasNext()) {
final RequestedProperty property = 

RE: ldap securitystore / problem configuring simple example JAASAuthentication

2005-01-18 Thread Miguel Figueiredo

Hello folks,

 I have a comment about out-of-box software ldap-enabled. It is very good to
have a ldap implementation distributed alongside with our software, but will
the clients want it? I believe most enterprises have already an
authentication server, and they won't feel right to have another server to
configure and maintain, just because our software needs it.

 To solve this, one solution could be to distribute our software with easy
LDAP configuration GUIs, that would connect our software with the client's
enterprise Active Directory/LDAP server. Another solution would be to ship
with our software an ldap cached proxy. The configuration GUI would still be
needed but the good thing is that our software wouldn't slow down because of
the remote ldap server and that same remote ldap server wouldn't slow down
because of our software.

 Anyway, the first solution means that we don't need to distribute any ldap
server implementation! ;)

 Best regards,
 Miguel Figueiredo



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 18 de Janeiro de 2005 16:53
To: Slide Users Mailing List
Subject: Re: ldap securitystore / problem configuring simple example
JAASAuthentication

Hi Jason,

First of all, I want to thank you for your prompt and clear answers! 
Thanks!

 LDAP is a good candidate for this. It is a standard and fairly well
 supported, so integrating third-party applications should be easier than
 with a custom solution.
I taught about it as well, but our application is completely 
self-contained and written in native Java. So if we choose LDAP as user 
base, we have to provide a (fully configured) LDAP server as well, because 
we can't make knowledge about LDAP a requirement for our product. It 
should work out-of-the-box. Our product is available for lots of 
platforms, so we have to find LDAP servers on all the platforms, or a 
fully implemented LDAP server in Java. As far as I know there aren't any 
java open source LDAP servers, except the JavaLDAP project of Clayton 
Donley (not finished) and the commercialization of it.

 If you can store your user and role information in a location Slide
 understands, that will make your life easier. 
Which locations does Slide understand?
- LDAP (via JNDIPrincipalStore)
- ...

Thanks!

David.


--
Inventive Designers' Email Disclaimer:

http://www.inventivedesigners.com/email-disclaimer


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



RE: NotificationListener subscribe Authorization

2005-01-11 Thread Miguel Figueiredo

Hello Zoltán,

 That's correct behaviour as per HTTP Specification :)
 Don't worry about the second call, since the first did not succeed.
Problems can occur if you try to call a PUT http method of more than 
MB, since the PUT method would take forever to be uploaded the first time,
fail, and take a second eternity to execute properly with the authorization
header. My advice is to make a HEAD http method (small footprint) on the
remote resource to make sure you have the connection authenticated b4 you
make a 'big' method call.

Best regards,
Miguel Figueiredo

-Original Message-
From: Zoltán Lörincz [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 11 de Janeiro de 2005 8:22
To: Slide Users Mailing List
Subject: NotificationListener subscribe  Authorization

Hello,

i found an unwanted behavoir related to the WebDav notifications and
authorization.
The problem is that the SUBSCRIBE  method is called twice. The first
time without the Authorization: header, and only when a HTTP/1.1 401
Unauthorized
response was received then the Authorization: header is inserted to
the request.
The same thing happens for every POLL and  UNSUBSCRIBE method too.

Is this a normal behavoir?  Does somebody know what do i have to
change to have the Authorization header included the first time into
the requests?

Thank you.

I am using the following code fragment to create a subscribtion:

 success = true;
HttpURL rootUrl = davManager.getCurrentURL();
UsernamePasswordCredentials credentials = new
UsernamePasswordCredentials(rootUrl.getUser(), rootUrl.getPassword());

listener = new NotificationListener(, 0, 
davManager.getRepositoryHost(), 
davManager.getRepositoryPort(), 
Protocol.getProtocol(http), 
credentials, 
davManager.getProjectRootPath(), 
pollInterval, false);

success = listener.subscribe(Update/newmember, ,
DepthSupport.DEPTH_INFINITY,
pollInterval, 100, newMemberSubscriber,
credentials);

success = success?listener.subscribe(Delete, ,
DepthSupport.DEPTH_INFINITY,
pollInterval, 100, deleteSubscriber,
credentials):false;

-
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: auto-version-values

2004-12-07 Thread Miguel Figueiredo

 Hello Stefan,

 Adding to Tim's response, the propatch commands does not change the file
content, but just it's metadata, witch is also being versioned but in the
associated xml file of versioning, inside the metainfo store. It's pretty
easy to confirm this if your metadata store is a txfilestore.

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Tim Frank [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 7 de Dezembro de 2004 14:38
To: Slide Users Mailing List
Subject: Re: auto-version-values

Stefan,

If you leave the auto-version parameter blank, empty, no value then 
NOTHING will happen automatically. I will mention that you should be 
careful with understanding how these parameters work with dumb webdav 
clients such as Windows WebFolders. The dumb behaviour is to 
automatically overwrite whatever is live as there is no 
checkout/checking issued. I would recommend using the checkout option 
for that reason, as a safeguard.

There is a duplicate of the file created in history to allow the 
uncheckout command to function. Uncheckout is like undo. You can 
checkout a file, do 20 changes on it, then decide No, I really don't 
want to save those changes for this version, so you issue the 
uncheckout command to rollback to the last good copy from the history.

Hope that helps.

Tim

Stefan Burkard wrote on 07/12/04 09:23 AM:
 hi slide-users
 
 ok, because my post about versioning ends up in a huge discussion about 
 other things, i make a new one :-)
 
 
 i'm now a step ahead (thanks to warwick burrows). i set the following in 
 domain.xml:
 parameter name=auto-versioncheckout/parameter
 parameter name=auto-version-controltrue/parameter
 
 when i put a new file in the repository i do a put, and right after 
 that, i'm doing about 20 proppatches. finally, i do a manual checkin.
 
 result: 2 (equal) versions in history and a current one in files. i 
 guess that i always have the current version in history too, have i?
 
 question: why have i got two equal versions in history? are they created 
 on (automatical) checkout and (manual) checkin?
 
 and second question: warwick burrows wrote ... disable auto-versioning 
 altogether and do both checkout and checkin yourself...
 how can i do this? set auto-version-control to false or auto-version 
 to an empty string?
 
 thanks and 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]


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



RE: Force authentication on edit of webdav document ?

2004-11-18 Thread Miguel Figueiredo



 Hello Nick,

 Actually, if you have authentication activated, tomcat (and slide) always
expects you to be authenticated. If your're not, the server and client
negotiate with witch other for authentication. More or less this is what
happens:

1) client: gimme this file
2) server: you are not authorized, you must authenticate using this
encryption algorithm using credentials of this realm
3) authenticated client: ok, now I'm this guy, gimme this file
4) server: ok, your credentials are confirmed, here is what you've requested



What is happening when a client is always requested for credentials? A clear
symptom is that the http application in the client side is not very smart,
because it's always discarding the credentials introduced in previous
negotiations.

So a quick answer is: slide and tomcat always need someone to be
authenticated before interaction can occur, so you don't have a problem
there; what you probably need to satisfy that requisite is a dumb http
application in the client side.

Hope this helps,
Miguel Figueiredo


-Original Message-
From: Nick Longinow [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 18 de Novembro de 2004 14:02
To: 'Slide Users Mailing List'
Subject: Force authentication on edit of webdav document ?

Hi

 

I notice that when I edit a document that is retrieved from the Slide webdav
server, ie via a web folder, in

an application like Word, it will ask for authentication the first time and
then not after.  Seems to be caching the credentials.  For other apps, like
Excel, the authentication is required every time the document is edited.
With other webdav servers I have accessed, they seem to require the
authentication with each and every request.  This would tell me that its not
a browser setting, since I am not accessing the document from a browser.

Is there a way to force Slide's webdav server to request authentication
every time a document is retrieved ?   

Nick



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



RE: Force authentication on edit of webdav document ?

2004-11-18 Thread Miguel Figueiredo


np :)

-Original Message-
From: Nick Longinow [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 18 de Novembro de 2004 14:35
To: 'Slide Users Mailing List'
Subject: RE: Force authentication on edit of webdav document ?

Ok, so then its not a Tomcat or Slide issue.  That's what I needed to know.
It will have to be tracked down on the client side, then.  Thanks Miguel
Nick

-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 9:25 AM
To: 'Slide Users Mailing List'
Subject: RE: Force authentication on edit of webdav document ?




 Hello Nick,

 Actually, if you have authentication activated, tomcat (and slide) always
expects you to be authenticated. If your're not, the server and client
negotiate with witch other for authentication. More or less this is what
happens:

1) client: gimme this file
2) server: you are not authorized, you must authenticate using this
encryption algorithm using credentials of this realm
3) authenticated client: ok, now I'm this guy, gimme this file
4) server: ok, your credentials are confirmed, here is what you've requested



What is happening when a client is always requested for credentials? A clear
symptom is that the http application in the client side is not very smart,
because it's always discarding the credentials introduced in previous
negotiations.

So a quick answer is: slide and tomcat always need someone to be
authenticated before interaction can occur, so you don't have a problem
there; what you probably need to satisfy that requisite is a dumb http
application in the client side.

Hope this helps,
Miguel Figueiredo


-Original Message-
From: Nick Longinow [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 18 de Novembro de 2004 14:02
To: 'Slide Users Mailing List'
Subject: Force authentication on edit of webdav document ?

Hi

 

I notice that when I edit a document that is retrieved from the Slide webdav
server, ie via a web folder, in

an application like Word, it will ask for authentication the first time and
then not after.  Seems to be caching the credentials.  For other apps, like
Excel, the authentication is required every time the document is edited.
With other webdav servers I have accessed, they seem to require the
authentication with each and every request.  This would tell me that its not
a browser setting, since I am not accessing the document from a browser.

Is there a way to force Slide's webdav server to request authentication
every time a document is retrieved ?   

Nick



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



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


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



RE: class for BpropFindMethod

2004-10-01 Thread Miguel Figueiredo


Hia folks,

 Again, don't remember correctly in witch context someone said that slide
would try to be MS-Compatible. At least I believe they meant
MS-interoperable.

 Also, I too agree with Julian and you folks. What's the point in supporting
MS extensions if they can change it over night? Worse! Poorly written and
bug-enabled!
 That's the strength in industry standards, in witch we should depend: only
the best thinkers contribute to a standard, making it mature. Also, a
standard is used by everyone, not just by one big company, improving
interoperability and reusability.

 I don't like monopolist entities, but Microsoft as cool products, really
productive tools when .net came our way. Wouldn't mind programming .net if
they would continue to support standards as they seemed to do these last
years: but these Microsoft 'standard' extensions make me feel like I belong
in the open source community, and that there will be a never ending fight
between them and us, despite how cool their tools look like.


 Best regards,
 Miguel



IndianAtTech wrote:
 Miguel Wrote:
 
 I don't know if Slide is supporting this MS webdav extension, but if
 I remember correctly someone said that slide was trying to be
MS-compatible.

What's the definition of MS-compatible? Which MS product? And how 
compatible? In that it's interoperating, or so that it supports 
MS-specific extensions?

 kranga wrote:
 Its their typical arrogant way of working and I say
 that Slide should NEVER EVER support these M$ extensions.

I'd say that if Slide wants to support MS extensions, it would make 
sense to document them in an IETF document (after community review).

  ...

Julian


-- 
green/bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

-
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: ACL - how to prevent browsing into a collection ?

2004-09-30 Thread Miguel Figueiredo


Hello Nick,

 By default, a collection does not have any ACL definitions upon creation.
The ones you are obtaining are the inherited ones. So changing an inherited
ACL doesn't feel right for me. Perhaps slide mandates that to change an ACL,
you must act upon the right resource (collection in this case).

 I would try this approach: get a WebdavResource instance of the 'folder'
collection, and execute the AclMethod adding your read-deny ACE, for the
right Principals (i.e. /roles/users/). If you are using root account, don't
forget that root also makes part of the /roles/root/ Principal.

 Hope this helps,
 Miguel Figueiredo
 
_
Hi

 

I want to prevent users from browsing into a collection (folder) that
contains

documents, and so am trying to adjust the ACL for the collection.

My method is to retrieve the ACL for the collection and then set the

'negative' property to true (deny), where it had been false by default.

 

But, I can still login to the repository as a /roles/user member and see
things,

in fact, delete elements of the collection.

 

What am I doing wrong ?

 

Nick



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



RE: class for BpropFindMethod

2004-09-30 Thread Miguel Figueiredo

That's interesting... don't remember about BPROPFIND in RFC 2518.

___

Hello All,

I have found slide has support for PROPFIND method. Just looking at
the class that supports BPROPFIND method.

What is the class I need to use. Or I need to write my own class

I found the procedure to send the request to server regarding BROPFIND
method here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_
webdav_bpropfind.asp


Thanks  Best Regards
Sudhakar

-
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: class for BpropFindMethod

2004-09-30 Thread Miguel Figueiredo

 Don't know if BPROPFIND is implemented in slide, but if it's not in RFC
2518, then it's not webdav...  or at least should not share the DAV:
namespace...

 Examining you msdn URL reference, I see that the request is a BPROPFIND
HTTP method witch contains a PROPFIND webdav xml element: hey, perhaps it's
another of those Microsoft 'standard' extensions :)) 
 Again, I don't know if Slide is supporting this MS webdav extension, but if
I remember correctly someone said that slide was trying to be MS-compatible.

 Last, the PROPFING method does support multiple-fetch of proprieties of a
resource in a single call. For instance, take a look at RFC 2518, section
8.1.1.

 Best regards,
 Miguel



So you mean, this class is not Implemented. But i feel this is
necessary because I found that is much faster. There is no need  to
send the requests multiple times to server. With single BROPFIND
method request I can get more than one response information which
increase the performance of client application.

Thanks Suhdakar


On Thu, 30 Sep 2004 17:54:06 +0100, Miguel Figueiredo
[EMAIL PROTECTED] wrote:
 
 That's interesting... don't remember about BPROPFIND in RFC 2518.
 
 ___
 
 
 
 Hello All,
 
 I have found slide has support for PROPFIND method. Just looking at
 the class that supports BPROPFIND method.
 
 What is the class I need to use. Or I need to write my own class
 
 I found the procedure to send the request to server regarding BROPFIND
 method here

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_
 webdav_bpropfind.asp
 
 Thanks  Best Regards
 Sudhakar
 
 -
 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 store

2004-09-28 Thread Miguel Figueiredo

 Hia,

 That's the file you have stored through the
org.apache.slide.store.txfile.TxFileContentStore. If you don't want to
access it through slide, you can always copy the file to a different
location, renaming it in the process so it removes the '_*' part.

 Best regards,
 Miguel

___

How i can got in store/content/files/console.tar.gz ?
If i'm disable DeltaV in slide and put by cadaver console.tar.gz
I'm got in store/content/files/console.tar.gz_1_0 :(
It's impossible ?

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

2004-09-28 Thread Miguel Figueiredo

 I believe so, anyway that was the first objective of the webdav protocol.
 You can start configuring your slide published webapp by examining the
web.xml file.

 Hint: read the 'directory-browsing' init-param description.

 Best regards,
 Miguel

__

Miguel Figueiredo wrote:

 Hia,

 That's the file you have stored through the
org.apache.slide.store.txfile.TxFileContentStore. If you don't want to
access it through slide, you can always copy the file to a different
location, renaming it in the process so it removes the '_*' part.
  

Hey. I can't set slide for web publish ? Example put test.html in my 
root for http server?




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

2004-09-28 Thread Miguel Figueiredo


 You don't need to write a store for web publishing purposes. As Daniel said
in the other email, you can configure slide so it won't had the '_*' part on
your files, and then configure the content store for a path like
../webapp/webappname.
 Anyway if you don't feel comfortable with slide configuration files (I
admit it's not very user friendly), you can still create a virtual directory
in IIS through its friendly UI wizards, and set up your webapp in there.

 The thing in using IIS vs SLIDE is that, in IIS you loose versioning and
ACL capabilities (among others), witch I believe shouldn't be very important
for web publishing. The other thing is that, I'm not sure you can use JSP or
Java inside a IIS webapp...

 Best regards,
 Miguel



Miguel Figueiredo wrote:

 I believe so, anyway that was the first objective of the webdav protocol.
  

You use for others ? I'm not.

 Hint: read the 'directory-browsing' init-param description.
  

read :   
init-param
param-namedirectory-browsing/param-name
param-valuetrue/param-value
description
 Use the 'directory-browsing' init-parameter to turn off 
generation of
 HTML index pages that enable browsing of collections 
(by setting this
 parameter to 'false'), or to specify a web-app relative 
path to a
 template resource (a JSP page, for example) which 
should handle
 generation of the HTML index page. In the latter case, 
you can use a
 JSP page at WEB-INF/index.jsp by specifying 
'/WEB-INF/index.jsp' as
 value of this parameter.
 The default value is 'true'.
/description
   /init-param

and this turn on user defined html generate page for WebDAV. I'm need 
simple thing.
put index.html or others files in root http server. Or Slide can't this 
simple thing ? Need write
new store ?

-
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: Groups vs. Roles

2004-09-28 Thread Miguel Figueiredo

Hello nick,

 I too am interested in knowing the right answer to your question. From my
past experience, I fear that Slide does not recognize the 'Group of Users
Principal type'.

 Nevertheless ACL specification clearly states a distinction between Group
of Users (exactly as you clearly defined) and Users, but I did not find a
reference about 'Roles type of Principal'.

 So, it's kind of funny, but slide does not support Group of Users but
supports Roles, and the spec identifies Group of Users but nothing about
Roles :)

 Anyway, from a point of view you can always think about Roles as a Group of
Users, with the little difference that Roles can not contain other Roles:
just Users.

 Best regards,
 Miguel Figueiredo
 
__

Hi

I realize this has been posted and hashed out before, but
my reading of the posts wasn't clarifying.

Can anyone tell me the definition of these terms in the
context of DAV and Slide ?  

My take is that a Group is a principal and is itself simply
a collection of principals (users, or other groups), where the
membership in the group is set via the GROUP-MEMBER-SET property.
And, the Group has no concept of privileges or rights.  Its just
a bag, a collection. So, I'd create a group under the /users
branch of the tree.  ie, /slide/users/salesforce/eastregion

A Role would be set of defined rights on the repository and any
elements in that role would have those rights.

True ?

Nick


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


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



RE: Does slide support Digest authentication?

2004-09-24 Thread Miguel Figueiredo

Hello Mat,

 Yes you can. But, from what I've seen, it's not slide's responsibility to
digest the passwords, it's Tomcat's responsibility, or the web server you
using...
 You can check the web server documentation to do just that, but here is
something that works for me in tomcat 5.0.28, inside the server.xml
configuration file:

(you must place it inside the engine tag)

Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://miguel-desktop:389;
userPattern=uid={0},ou=people,dc=dominio,dc=pt
roleBase=ou=groups,dc=dominio,dc=pt
roleName=cn
roleSearch=(uniqueMember={0})
digest=SHA
/

This is a code snippet I found in slide's mailing list (if I remember
correctly), and it configures a authentication realm versus a ldap server.
In this case, the digest algorithm is the well known SHA.

 Hope this helps,
 Miguel

_

 
Can I connect to a server that requires Digest authentication?
 
If so, a snippet would be much appreciated.
 
Matt


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



RE: Simple question on opening a file (via webdav) for editing

2004-09-24 Thread Miguel Figueiredo

Hia folks,

 I too think it's too demanding to force people to always open a web folder
to open a file, so it should be their option to do it or not.
 I'm thinking of it more of another feature we can have in the browser
windows: a 'view in web folder' icon related with each shown collection. The
user would always have the option to open files in the browser, or open the
web folder view to open files in the dav mode (if that mode is available to
that particular file).

 Best regards,
 Miguel



I'm not sure that I like this idea. I currently click on a link, and
get the file opend with word, arcobat etc. directly.
With the FOLDER stuff I have to click the folder open I have to search the
file again and click again.
With the current state I can point people to a webdav document to read it,
and they dont need to know any about webdav.
May be we add it optional, with a parameter in web.xml?

best regards,
Stefan

Oliver Zeigermann wrote:

 No, maybe I got everything wrong again, but I was thinking of what you 
 see when you type something like http://localhost:8080/slide; in your 
 web browser. The HTML is generated by Slide and I was wondering if we 
 add the snipped to the generated HTML.
 
 Oliver
 
 Miguel Figueiredo wrote:
 
 Within javadocs? Hmmm... don't know... But inside
 http://jakarta.apache.org/slide/xp.html page could be useful!

 Best regards,
 Miguel
 

 I was wondering shouldn't we change the generated HTML to display this 
 snippet?

 Oliver

 Miguel Figueiredo wrote:


 Hello nick,

 Also, check out this code snippet I've found in slide's mailing list:

 // open web folder from IE (windows 2000/XP)

 body
 STYLE
 A {behavior: url(#default#AnchorClick);}
 /style

 A HREF = http://localhost:8080/storage/files/Survey.doc;;
 FOLDER =  http://localhost:8080/storage/files/;;
 TARGET = _blank
 
 Open in Web Folder View
 /a
 /body


 And this message 
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg06490.html
 witch gives an insight on how to open an Microsoft Office document in 
 edit
 mode, using Java code inside a JSP or servlet.

 You can open a document in edit mode, and then upload it to server, when
 performing save within webdav enabled editors. Examples include 
 Microsoft
 Office, OpenOffice.org and the Acrobate Writer, if I remember correctly.

 If you wanted to open every kind of documents (for example an autocad
 drawing, not just word documents) in edit mode AND upload changes 
 directly
 to the server, one solution is making your own web folder client or and
 'Windows Explorer' twin, witch is what my company team is working on
 nowadays. Other possible solutions are, like Oliver said, netdrive or
 similar products.


 Best regards,
 Miguel

 ___

 Hi Nick!

 If you are on Windows either mount Slide as described in 
 http://jakarta.apache.org/slide/xp.html or use a product like 
 NetDrive from Novell which can even map it to a drive letter.

 If you are on Mac have a look at 
 http://jakarta.apache.org/slide/osx.html. Be sure to adapt the 
 web.xml in this case as suggested in 
 http://jakarta.apache.org/slide/faq.html

 Oliver

 Nick Longinow wrote:


 Hi,



 I am just getting started with Slide, and have wrestled all day with 
 this
 one.

 Maybe you can hel p ?



 I have created a document collection and added (put) a document into 
 slide

 via java webdav client.  Now I want to get the file out in edit 
 mode, ie,
 this is
 a Word document, and I want Word to open up with the document loaded

 for editing.


 How do you do this ??



 Nick





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


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





 -
 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: ldap configuration

2004-09-23 Thread Miguel Figueiredo

Hello Oliver, sorry for taking so long, had wife and kids waiting :)

 Well, if I remove the old metadata and start tomcat all goes well. The
problem occurs if I restart tomcat: that's when that error occurs.

 I'm using the default Domain.xml configuration with the
TxXMLFileDescriptorsStore for nodestore and TxFileContentStore for content. 

 Miguel


Oliver Zeigermann wrote:

 Miguel, I have tried deleting the old meta-data...

Sorry, getting a little bit tired, read Miguel, have you tried deleting 
the old meta-data...

Oliver

-
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: Simple question on opening a file (via webdav) for editing

2004-09-23 Thread Miguel Figueiredo

Hello nick,

 Also, check out this code snippet I've found in slide's mailing list:

// open web folder from IE (windows 2000/XP)

body
STYLE
A {behavior: url(#default#AnchorClick);}
/style

A HREF = http://localhost:8080/storage/files/Survey.doc;;
FOLDER =  http://localhost:8080/storage/files/;;
TARGET = _blank

Open in Web Folder View
/a
/body


And this message 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06490.html 

witch gives an insight on how to open an Microsoft Office document in edit
mode, using Java code inside a JSP or servlet.

 You can open a document in edit mode, and then upload it to server, when
performing save within webdav enabled editors. Examples include Microsoft
Office, OpenOffice.org and the Acrobate Writer, if I remember correctly.

 If you wanted to open every kind of documents (for example an autocad
drawing, not just word documents) in edit mode AND upload changes directly
to the server, one solution is making your own web folder client or and
'Windows Explorer' twin, witch is what my company team is working on
nowadays. Other possible solutions are, like Oliver said, netdrive or
similar products.


Best regards,
Miguel

___

Hi Nick!

If you are on Windows either mount Slide as described in 
http://jakarta.apache.org/slide/xp.html or use a product like NetDrive 
from Novell which can even map it to a drive letter.

If you are on Mac have a look at 
http://jakarta.apache.org/slide/osx.html. Be sure to adapt the web.xml 
in this case as suggested in http://jakarta.apache.org/slide/faq.html

Oliver

Nick Longinow wrote:
 Hi,
 
  
 
 I am just getting started with Slide, and have wrestled all day with this
 one.
 
 Maybe you can hel p ?
 
  
 
 I have created a document collection and added (put) a document into slide
 
 via java webdav client.  Now I want to get the file out in edit mode, ie,
 this is 
 
 a Word document, and I want Word to open up with the document loaded
 
 for editing. 
 
  
 
 How do you do this ??
 
  
 
 Nick
 
 


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


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



RE: Simple question on opening a file (via webdav) for editing

2004-09-23 Thread Miguel Figueiredo

Hello Nick,

 Maybe you are... have you installed XP service pack 2, or, do you have a
popup blocker active?

 I tried to use that snipped to access a file in a slide repository and it
constantly opened it in 'http mode' instead of 'webdav mode'. An 'http mode'
symptom is having your word document opened inside IE.

 I temporarily disabled the built-in popup blocker of sp2 (allowing for
active content) and the response is as I expect: a web folder interface
window 'pops-up' in the designated folder showing all files and directories
currently available. If you double click the word document, then you can
open the document in 'davmode' and update it in the server by clicking save
:)

Best regards,
Miguel


-Original Message-
From: Nick Longinow [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 23 de Setembro de 2004 15:09
To: 'Slide Users Mailing List'
Subject: RE: Simple question on opening a file (via webdav) for editing

Thanks Miguel, this succeeds in opening the file in Word, 
and invokes authentication (username/pwd prompted).

But, when I change the document in Word, its not updated 
in the Slide repository.  Am I missing something ?

Nick

-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 23, 2004 5:35 AM
To: 'Slide Users Mailing List'
Subject: RE: Simple question on opening a file (via webdav) for editing


Hello nick,

 Also, check out this code snippet I've found in slide's mailing list:

// open web folder from IE (windows 2000/XP)

body
STYLE
A {behavior: url(#default#AnchorClick);}
/style

A HREF = http://localhost:8080/storage/files/Survey.doc;;
FOLDER =  http://localhost:8080/storage/files/;;
TARGET = _blank

Open in Web Folder View
/a
/body


And this message 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06490.html 

witch gives an insight on how to open an Microsoft Office document in edit
mode, using Java code inside a JSP or servlet.

 You can open a document in edit mode, and then upload it to server, when
performing save within webdav enabled editors. Examples include Microsoft
Office, OpenOffice.org and the Acrobate Writer, if I remember correctly.

 If you wanted to open every kind of documents (for example an autocad
drawing, not just word documents) in edit mode AND upload changes directly
to the server, one solution is making your own web folder client or and
'Windows Explorer' twin, witch is what my company team is working on
nowadays. Other possible solutions are, like Oliver said, netdrive or
similar products.


Best regards,
Miguel

___

Hi Nick!

If you are on Windows either mount Slide as described in 
http://jakarta.apache.org/slide/xp.html or use a product like NetDrive 
from Novell which can even map it to a drive letter.

If you are on Mac have a look at 
http://jakarta.apache.org/slide/osx.html. Be sure to adapt the web.xml 
in this case as suggested in http://jakarta.apache.org/slide/faq.html

Oliver

Nick Longinow wrote:
 Hi,
 
  
 
 I am just getting started with Slide, and have wrestled all day with this
 one.
 
 Maybe you can hel p ?
 
  
 
 I have created a document collection and added (put) a document into slide
 
 via java webdav client.  Now I want to get the file out in edit mode, ie,
 this is 
 
 a Word document, and I want Word to open up with the document loaded
 
 for editing. 
 
  
 
 How do you do this ??
 
  
 
 Nick
 
 


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


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



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



  1   2   >