You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Bita Shadgar <sh...@compsci.bristol.ac.uk> on 2001/08/15 10:04:24 UTC

Domain.xml and Webdav programming

Hi ,

First of all, I should appreciate for new documents in the FAQ, which
are very helpful.

Indeed, I would like to know about subject="~" and subject="nobody" in
Domain.xml.
What are they and what they mean.

And also, I don't know why when I am trying to put a file by the command
webdav program ( client/bin/run.sh) , the program will be locked and I
have to exit program (ctrl+c) and again run it. However It puts my files
and even I can see the file through the web and by file system. What's
wrong? I don't have such these problem with other commands like mkcol,
propfind, proppatch, acl, options,lock,...

Thanks for any hints.
Bita.




Re: put command locks slide client (was: Re: Domain.xml and Webdav programming)

Posted by Dirk Verbeeck <di...@pandora.be>.
Bita Shadgar wrote:

> Sorry I foget to attach Domain.xml.
>
> Bita.

The is a extra --> behind the jdbc configuration, don't you get erors on that?

You are using now oracle as a database
can you test if you also get the error with hsqldb ?

Just elimenating possible causes...

Dirk


Re: put command locks slide client (was: Re: Domain.xml and Webdav programming)

Posted by Bita Shadgar <sh...@compsci.bristol.ac.uk>.
Sorry I foget to attach Domain.xml.

Bita.



Re: put command locks slide client (was: Re: Domain.xml and Webdav programming)

Posted by Bita Shadgar <sh...@compsci.bristol.ac.uk>.
> Very strange, never had problems with that command.
>
> Some more info:
>
> Other special things ?   (you enabled security ?)

If I wait after enter put command about 5 minutes and don't exit program I recive these message:

[LOCALHOST] /slide/files/ $ put run.sh mine.txt
Uploading  'run.sh' to '/slide/files/mine.txt': Reopen connection :
Host:localhost Port:8080

PUT /slide/files/mine.txt HTTP/1.1
Authorization: Basic Z3Vlc3Q6bXlndWVzdHB3
Host: localhost:8080
Cookie: $Version=1;JSESSIONID=rcgauj1mx1; $Path=/slide;
$Domain=lama.cs.bris.ac.uk
User-Agent: Jakarta HTTP Client/1.0


HTTP/1.0 500 Internal Server Error
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.2;
SunOS 5.7 sparc; java.vendor=Sun Microsystems Inc.)

Closing connection
failed.
Internal Server Error (500)
[LOCALHOST] /slide/files/ $


In this case, I can't see my file via the web and it will be treated like a directory. I mean when I click on my

file name on the web page, the Directory listing for /files/mine.txt  page will be shown.

After enter any command  like mkcol, when I try to see mine.txt, I receive an netscape error box which says:

The document contains no data.

Again I try to put somthing:

[LOCALHOST] /slide/files/ $ put run.bat third.txt
Uploading  'run.bat' to '/slide/files/third.txt': Reopen connection :
Host:localhost Port:8080

PUT /slide/files/third.txt HTTP/1.1
Authorization: Basic Z3Vlc3Q6bXlndWVzdHB3
Host: localhost:8080
Cookie: $Version=1;JSESSIONID=rcgauj1mx1; $Path=/slide; $Domain=localhost
User-Agent: Jakarta HTTP Client/1.0


HTTP/1.0 500 Internal Server Error
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.2;
SunOS 5.7 sparc; java.vendor=Sun Microsystems Inc.)

Closing connection
failed.
Internal Server Error (500)
[LOCALHOST] /slide/files/ $

Now, when I try to see third.txt on the Directory listing for /files page, I get no data box, with out any behavior like directory.

Bita.











Re: put command locks slide client (was: Re: Domain.xml and Webdav programming)

Posted by Bita Shadgar <sh...@compsci.bristol.ac.uk>.
Dirk Verbeeck wrote:

Very strange, never had problems with that command.
Some more info:

>Servlet container ?  tomcat 3/4
  tomcat 3.2.3

>client & server platform   OS ?
  unix platform SunOS 5.7

>Is the file exactly transferred ?   to the last byte ?
  yes. It is. I can see my file via the web perfectly.

>Any messages on the server console ?
 After I exit program I receive these message on the consol:
     15 Aug 2001 14:32:42 - INFO - PUT (time: 14318 ms)
URI=/files/secondcopy.txt
     2001-08-15 14:32:42 - ContextManager: SocketException reading request,
ignored - java.net.SocketException: Connection reset by peer
             at java.net.PlainSocketImpl.socketAvailable(Native Method)
             at java.net.PlainSocketImpl.available(Compiled Code)
             at java.net.SocketInputStream.available(Compiled Code)
             at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
Code)
             at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
             at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
             at java.lang.Thread.run(Compiled Code)




>Does this happen with other files as well ?
  yes.

>Try putting them on the server with different names ?
   It doesn't make any sence.

>What stores are you using with slide ?
  I am using all five stores. my Domian.xml is attached.

>Other special things ?   (you enabled security ?)
  I am using security. I add three more roles in tomcat-user.xml; guest,
user and root. I enter
  userid and password for guest to access files directory.

>Can you test with the latest version ?
  Sure. I am trying. I'll inform you later. Until then, I just send other
information.

Thanks indeed,
Bita.



put command locks slide client (was: Re: Domain.xml and Webdav programming)

Posted by Dirk Verbeeck <di...@pandora.be>.
Bita Shadgar wrote:
> And also, I don't know why when I am trying to put a file by the
command
> webdav program ( client/bin/run.sh) , the program will be locked and I

> have to exit program (ctrl+c) and again run it. However It puts my
files
> and even I can see the file through the web and by file system. What's

> wrong? I don't have such these problem with other commands like mkcol,

> propfind, proppatch, acl, options,lock,...

> Dirk Verbeeck wrote:
>
>> Version of slide ?
>> Try "set debug on" and do the command, send me the logging.
>
> It is Slide1 .0.11.  And the result is like this:
>
> [LOCALHOST] /slide/files/ $ set debug on
> The debug flag is on (level=all).
> [LOCALHOST] /slide/files/ $ put run.sh bita.txt
> Uploading  'run.sh' to '/slide/files/bita.txt': Reopen connection :
> Host:localhost Port:8080
> PUT /slide/files/bita.txt HTTP/1.1
> Authorization: Basic Z3Vlc3Q6bXlndWVzdHB3
> Host: localhost:8080
> Cookie: $Version=1;JSESSIONID=ofgn9pzsl1; $Path=/slide;
> $Domain=localhost
> User-Agent: Jakarta HTTP Client/1.0
>
> ^Cbin%
>
>
> Thanks indeed, Bita.
>

Very strange, never had problems with that command.

Some more info:
Servlet container ?   tomcat 3/4
client & server platform   OS ?
Is the file exactly transferred ?   to the last byte ?
Any messages on the server console ?
Does this happen with other files as well ?
Try putting them on the server with different names ?
Can you test with the latest version ?
What stores are you using with slide ?
Other special things ?   (you enabled security ?)


Dirk


Re: Domain.xml and Webdav programming

Posted by Bita Shadgar <sh...@compsci.bristol.ac.uk>.
Dirk Verbeeck wrote:

>
> Version of slide ?
> Try "set debug on" and do the command, send me the logging.

It is Slide1 .0.11.  And the result is like this:

[LOCALHOST] /slide/files/ $ set debug on
The debug flag is on (level=all).
[LOCALHOST] /slide/files/ $ put run.sh bita.txt
Uploading  'run.sh' to '/slide/files/bita.txt': Reopen connection :
Host:localhost Port:8080
PUT /slide/files/bita.txt HTTP/1.1
Authorization: Basic Z3Vlc3Q6bXlndWVzdHB3
Host: localhost:8080
Cookie: $Version=1;JSESSIONID=ofgn9pzsl1; $Path=/slide; $Domain=localhost
User-Agent: Jakarta HTTP Client/1.0

^Cbin%


Thanks indeed, Bita.



RE: Domain.xml and Webdav programming

Posted by Peter Hawkins <pe...@globalvision.com.au>.
I added the "~" and "nobody" answers to the FAQ.
http://faq.globalvision.com.au/cgi-bin/fom?auth=ck72691456058d&editCmds=
show&file=93

Peter



Re: Domain.xml and Webdav programming

Posted by Dirk Verbeeck <di...@pandora.be>.
Bita Shadgar wrote:

> Hi ,
>
> First of all, I should appreciate for new documents in the FAQ, which
> are very helpful.
>
> Indeed, I would like to know about subject="~" and subject="nobody" in
> Domain.xml.
> What are they and what they mean.

"~" means "self"      like in the rule you may change /users/bita if you are
/users/bita

"nobody" means "everybody" (all users)
Remy named it "nobody" because the statement :
- "everybody has role nobody" is true
- "everybody has role all" is false (since otherwise, everybody would have
root also)

> And also, I don't know why when I am trying to put a file by the command
> webdav program ( client/bin/run.sh) , the program will be locked and I
> have to exit program (ctrl+c) and again run it. However It puts my files
> and even I can see the file through the web and by file system. What's
> wrong? I don't have such these problem with other commands like mkcol,
> propfind, proppatch, acl, options,lock,...

Version of slide ?
Try "set debug on" and do the command, send me the logging.

> Thanks for any hints.
> Bita.

Dirk