Zeus Courtois | 2 Jul 18:33
Picon
Favicon

enabling authentication/authorization

Hi,

I have Slide 2.2pre1 running and would like to enable authentication/authorization.

I have created a file slide.properties and put in under $CATALINA_HOME/common/classes as stated on http://jakarta.apache.org/slide/howto-acl.html.
The file includes: org.apache.slide.security=true

I have uncommented the following XML segments from the Web.xml file:

<!-- Uncomment this to get authentication -->
        <security-role-ref>
                ......
         </security-role-ref>

AND

 <!-- Authetication for the WebDAV servlet -->
  <!-- Uncomment this to get authentication -->
    <security-constraint>
        <web-resource-collection>
                        .....
    </security-constraint>
     <login-config>
            .....
     </login-config>

I have also restarted Tomcat.

Am I missing something? What else should I do?

(Continue reading)

Stephane huette | 3 Jul 13:24
Picon
Favicon

Problem with bad fileName with a + =>%20 not %2B

Hi all,
I'm developping a Web application with Slide 2.0, to list, to download, to upload, to edit files.
I've a problem to list files when its name is with a "+". Exemple 'lost+found' on unix system.

WebdavResource[] tabWDresources =  wdr.listWebdavResources(); 

I  debug it and I saw that the displayedName was "lost%20found". 

But %20 is like a space %2B is "+" so the dispayedName should be "lost%2Bfound".

And i create a new folder "Shu+name", and the same problem happens.

I don't know how i can resolve it.

this code is How I list the filname from a folder :

 urlWebDavComplete = http://SERVER:PORT/folder1/temp

 public List listerElements(String urlWebDavComplete) throws ServicesException, Exception
 {
  logger.debug("<listerElements>");
  WebdavResource wdr = null;
  List listeElements = new ArrayList();

  try 
  {
   HttpURL hrl = new HttpURL(urlWebDavComplete);
   hrl.setUserinfo(getLoginWDServer(), getPwdWDServer());
   wdr = new WebdavResource(hrl);

(Continue reading)

Stephane huette | 3 Jul 16:21
Picon
Favicon

Re : Problem with bad fileName with a + =>%20 not %2B

Hi again,

Ok, i've a start of solution to list the good filename.

URLCodec urlCodec = new URLCodec();

........

    WebdavResource[] tabWDresources =  wdr.listWebdavResources();

    long wdLength = tabWDresources.length;
    WebdavResource currentResource = null;
    Element elt = null;
    for (int i = 0; i < wdLength; i++) 
    {
           ......
            elt.setName(urlCodec.encode(currentResource.getDisplayName()));
           .......
     }

but now il i want to see files in folder "lost+found"
so....
urlWebDavComplete = http://SERVER:PORT/folder1/temp/lost+found

that's doens't work => 404 Not found.
I tried to : urlWebDavComplete = "http://SERVER:PORT/folder1/temp/" + urlCodec.decode("lost+found");

but nothing....

thx for your help.
(Continue reading)

Clemens Renner | 12 Jul 11:33
Picon
Favicon

Directory listings from Document Mgmt System missing directories

Hi everyone,

I am trying to list the contents of a directory in a document mgmt
system (Xythos) which appears to be implementing WebDAV correctly as
tests e.g. using DAVExplorer (http://www.davexplorer.org) worked flawlessly.

What I am doing is simply a list() call on the WebDavResource
representing the directory in question. What I get as a result is a list
of file names within that directory, along with the directory name
itself. However, the directories contained within that directory are not
included in the ouput.

I have also tried using listWebdavResources() and getChildResources() --
but without success.

Do I need to set any specific parameter to have the sub-directories of
that directory included in the listing? Am I missing something? I have
also played with the DepthSupport options but to no avail.

An example:
Say you have this directory structure:
Dir1
  |-- file1
  |-- file2
  +-- SubDir1
  +-- SubDir2

Ignoring the full path names, I would expect list() to return
  { "file1", "file2", "SubDir1", "SubDir2" }
but instead I get
(Continue reading)

Clemens Renner | 12 Jul 12:34
Picon
Favicon

Re: Directory listings from Document Mgmt System missing directories

My apologies,

I see this has already been discussed in a bug report
http://issues.apache.org/bugzilla/show_bug.cgi?id=32886

and it appears that this issue has been fixed in 2.2pre1 (SVN).

Clemens
Mridu Rajkhowa | 13 Jul 07:12
Favicon

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
Miguel Figueiredo | 13 Jul 11:03
Picon
Favicon

RE: java client and slide connection with Encrypted password

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:mriduprajkhowa <at> rediffmail.com] 
Sent: sexta-feira, 13 de Julho de 2007 6:13
To: slide-user <at> 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
John Byrne | 17 Jul 12:08

Using subversion for slide version control

Hi,

Can anyone tell me how (or if it's possible) to use Subversion to handle 
the automatic version control in Slide? I know Apache mod_dav uses 
Subversion, but we'd prefer to use Slide because of the indexing and 
DASL support.

Also, what are the main differences between the "deltaV" version control 
in Slide and Subversion? Any info on either of these questions would be 
great.

Many thanks in advance!

John Byrne
Julian Reschke | 17 Jul 12:22
Picon
Picon

Re: Using subversion for slide version control

John Byrne wrote:
> Hi,
> 
> Can anyone tell me how (or if it's possible) to use Subversion to handle 
> the automatic version control in Slide? I know Apache mod_dav uses 
> Subversion, but we'd prefer to use Slide because of the indexing and 
> DASL support.

That's a misunderstanding. mod_dav doesn't *use* subversion out of the 
box. mod_dav has an API that allows replacing its internal file system 
store by something else, and that's what subversion does.

As far as I can tell, the same *could* be done in Slide (ignoring the 
language mismatch), but I don't think that exists. And if it would be 
done, you probably would loose the indexing/DASL support.

> Also, what are the main differences between the "deltaV" version control 
> in Slide and Subversion? Any info on either of these questions would be 
> great.

Subversion doesn't really implement DeltaV (as per RFC3253) -- only a 
minimal subset plus lots of custom extensions.

Best regards, Julian
Picon
Picon

Newbee: Understanding question WebDAV-Protocoll


Hello everybody,
I have the following problem: Since beginning of this week -in the course of
a new project- I deal with WebDAV. I never heard something about it before,
so I startet to read up on this protocoll. However now I have still some
understanding problems. A goal of the project is that it should be possible
to store data (physical files) including their describing meta-data over
WebDAV on a fileserver which also supported WebDAV. That means we have a
webapplication running with Tomcat and is implemented in Java. So I am
discovered the Slide project ;-) But now, I dont understand, what I have to
download for this request. Do I need the complete Slide environment, or does
I need only the WCK? All possible errorhandling and user authorization will
be done by our webapplication.
Or is there a completely different way (without Slide/WCK) how I can solve
this?

best regards from munich/germany
Mario Becker-Reinhold
--

-- 
View this message in context: http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf4102995.html#a11667860
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.

Gmane