Webdav issue with non ASCII characters

2005-04-11 Thread Fernando Salazar de Paz
I can PUT archives but I am not be able to read them anymore.

 

For example:

 

Archive:manualín.pdf

 

In WebdavServlet::service

 

protected void service(HttpServletRequest req, HttpServletResponse resp)

throws ServletException, IOException {

 

String method = req.getMethod();

 

if (debug  0) {

(1)log([ + req.getRequestURI() + ]);

String path = getRelativePath(req);

(3)  log([ + method + ]  + path);

}

 

The output:

 

INFO: webdav: [/webdav/manual%C3%ADn.pdf]  (1)

 

DefaultServlet::getRelativePath   request.getPathInfo() (2)

INFO: webdav: DefaultServlet::getRelativePath.
request.getPathInfo()=/manualín.pdf

 

INFO: webdav: [HEAD] /manualín.pdf  (3)

 

 

In NTFS Tomcat has written manualín.pdf instead of manualín.pdf

 

 

I have tried with DefaultServlet’s languageEncoding init parameter using
UTF-8 with no result. 

 

 

Thanks in advance



RE: Webdav issue with non ASCII characters

2005-04-11 Thread Fernando Salazar de Paz
Internet Explorer uses UTF-8 to encode URLs and Tomcat tries ISO-8859-1 in
decoding. The result is a wrong filename.

String fileName = URLEncoder.encode(manualín.pdf, ISO-8859-1);

*1
System.out.println(fileName+ produce +URLDecoder.decode(fileName,
UTF-8));

fileName = URLEncoder.encode(manualín.pdf, UTF-8);

*2
System.out.println(fileName+ produce +URLDecoder.decode(fileName,
ISO-8859-1));

- OUTPUT follows -
*1 manual%EDn.pdf produce manual?n.pdf
*2 manual%C3%ADn.pdf produce manualín.pdf


manualín.pdf=  manualín.pdf


Other browsers uses ISO-8859-1 but we need to be compatible with IE.


Thanks and regards



-Mensaje original-
De: Fernando Salazar de Paz [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 11 de abril de 2005 10:24
Para: tomcat-user@jakarta.apache.org
Asunto: Webdav issue with non ASCII characters

I can PUT archives but I am not be able to read them anymore.

 

For example:

 

Archive:manualín.pdf

 

In WebdavServlet::service

 

protected void service(HttpServletRequest req, HttpServletResponse resp)

throws ServletException, IOException {

 

String method = req.getMethod();

 

if (debug  0) {

(1)log([ + req.getRequestURI() + ]);

String path = getRelativePath(req);

(3)  log([ + method + ]  + path);

}

 

The output:

 

INFO: webdav: [/webdav/manual%C3%ADn.pdf]  (1)

 

DefaultServlet::getRelativePath   request.getPathInfo() (2)

INFO: webdav: DefaultServlet::getRelativePath.
request.getPathInfo()=/manualín.pdf

 

INFO: webdav: [HEAD] /manualín.pdf  (3)

 

 

In NTFS Tomcat has written manualín.pdf instead of manualín.pdf

 

 

I have tried with DefaultServlet’s languageEncoding init parameter using
UTF-8 with no result. 

 

 

Thanks in advance



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



RE: Webdav issue with non ASCII characters

2005-04-11 Thread Fernando Salazar de Paz
Using URIEncoding parameter, at Server.xml, PUT and DELETE methods works ok.
I am still having trouble with GET method.


!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
port=8080   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true
URIEncoding=UTF-8 /


--- Tomcat log 
INFO: webdav: [HEAD] /última-guía.pdf
11-abr-2005 16:31:32 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveResource:  Serving resource
'/última-guía.pdf' headers only
11-abr-2005 16:31:32 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [PUT] /última-guía.pdf
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [GET] /última-guía.pdf
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveResource:  Serving resource
'/última-guía.pdf' headers and data
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveFile:  contentType='application/pdf'
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveFile:  contentLength=202259
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [GET] /?ltima-gu?a.pdf
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveResource:  Serving resource
'/?ltima-gu?a.pdf' headers and data
11-abr-2005 16:31:57 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [DELETE] /última-guía.pdf
--- Tomcat log 



-Mensaje original-
De: Fernando Salazar de Paz [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 11 de abril de 2005 14:36
Para: 'Tomcat Users List'
Asunto: RE: Webdav issue with non ASCII characters

Internet Explorer uses UTF-8 to encode URLs and Tomcat tries ISO-8859-1 in
decoding. The result is a wrong filename.

String fileName = URLEncoder.encode(manualín.pdf, ISO-8859-1);

*1
System.out.println(fileName+ produce +URLDecoder.decode(fileName,
UTF-8));

fileName = URLEncoder.encode(manualín.pdf, UTF-8);

*2
System.out.println(fileName+ produce +URLDecoder.decode(fileName,
ISO-8859-1));

- OUTPUT follows -
*1 manual%EDn.pdf produce manual?n.pdf
*2 manual%C3%ADn.pdf produce manualín.pdf


manualín.pdf=  manualín.pdf


Other browsers uses ISO-8859-1 but we need to be compatible with IE.


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



RE: Webdav issue with non ASCII characters

2005-04-11 Thread Fernando Salazar de Paz
The problem arises with pdf files, for example. Although I am using IE (it
uses UTF-8 in the encoding process), when I request a PDF file a new
(second) request is made by Acrobat Reader. Acrobat Reader uses ISO-8859-1
and Tomcat will not be able to decode the uri properly. What is the reason
for the second request ?, with ZIP files, txt files I have no problem.

I am getting mad :0 


It's a client issue, but what can I do at server side to provide
compatibility ? can I guess the encoding at servlet's service method ?

Thanks in advance


-Mensaje original-
De: Fernando Salazar de Paz [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 11 de abril de 2005 16:41
Para: 'Tomcat Users List'
Asunto: RE: Webdav issue with non ASCII characters

Using URIEncoding parameter, at Server.xml, PUT and DELETE methods works ok.
I am still having trouble with GET method.


!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
port=8080   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true
URIEncoding=UTF-8 /


--- Tomcat log 
INFO: webdav: [HEAD] /última-guía.pdf
11-abr-2005 16:31:32 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveResource:  Serving resource
'/última-guía.pdf' headers only
11-abr-2005 16:31:32 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [PUT] /última-guía.pdf
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [GET] /última-guía.pdf
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveResource:  Serving resource
'/última-guía.pdf' headers and data
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveFile:  contentType='application/pdf'
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveFile:  contentLength=202259
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [GET] /?ltima-gu?a.pdf
11-abr-2005 16:31:40 org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.serveResource:  Serving resource
'/?ltima-gu?a.pdf' headers and data
11-abr-2005 16:31:57 org.apache.catalina.core.ApplicationContext log
INFO: webdav: [DELETE] /última-guía.pdf
--- Tomcat log 





-
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: Webdav Webfolder issue when container security enabled

2005-04-06 Thread Fernando Salazar de Paz
Now, my web.xml looks like

- C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml --

  !-- The mapping for the webdav servlet --
  servlet-mapping
servlet-namewebdav/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping

- C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml --


But I am still having the same problems. I cannot see file listings
Am I modifying the wrong mapping ?


1. Run Internet explorer
2. Navigate to http://localhost:8080/webdav
3. Auth dialog
4. Follow BizObj.pdf link

Works

1. Run Internet Explorer
2. Navigate to http://localhost:8080/webdav/BizObj.pdf
3. Auth dialog

Fails

Cheers,

Fer



-Mensaje original-
De: Mark Thomas [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 05 de abril de 2005 23:32
Para: Tomcat Users List
Asunto: Re: Webdav Webfolder issue when container security enabled

Use /* as the servlet mapping. This will override any welcome file 
processing etc.

Let me know which test fail with this mapping.

Cheers,

Mark

Fernando Salazar de Paz wrote:
 Thanks for your help, Mark
 
 I have uncommented the servlet's readonly init parameter and security
 constraints for testing. I have tried to comment welcome-file-list, but
 web.xml in C:\Tomcat 4.1\conf have the same welcome-file-list, finally
 I have removed index.html (I think I am doing something wrong). 
 
 In my last test I have removed mime-types and welcome-file-list in 
 C:\Tomcat 4.1\webapps\webdav\web.xml, with the same result (it could take
 the defaults defined in C:\Tomcat 4.1\conf\web.xml, right ? )
 
 
  C:\Tomcat
4.1\webapps\webdav\web.xml---
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 
   display-nameWebdav Content Management/display-name
   description
  Webdav Content Management
   /description
 
   servlet
 servlet-namewebdav/servlet-name
  
 servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value0/param-value
 /init-param
 init-param
   param-namelistings/param-name
   param-valuetrue/param-value
 /init-param
 !-- Uncomment this to enable read and write access --
 init-param
   param-namereadonly/param-name
   param-valuefalse/param-value
 /init-param
 load-on-startup1/load-on-startup
   /servlet
 
   !-- The mapping for the webdav servlet --
   servlet-mapping
 servlet-namewebdav/servlet-name
 url-pattern//url-pattern
   /servlet-mapping
 
   !-- Establish the default MIME type mappings --
   mime-mapping
 extensiontxt/extension
 mime-typetext/plain/mime-type
   /mime-mapping
   mime-mapping
 extensionhtml/extension
 mime-typetext/html/mime-type
   /mime-mapping
   mime-mapping
 extensionhtm/extension
 mime-typetext/html/mime-type
   /mime-mapping
   mime-mapping
 extensiongif/extension
 mime-typeimage/gif/mime-type
   /mime-mapping
   mime-mapping
 extensionjpg/extension
 mime-typeimage/jpeg/mime-type
   /mime-mapping
   mime-mapping
 extensionjpe/extension
 mime-typeimage/jpeg/mime-type
   /mime-mapping
   mime-mapping
 extensionjpeg/extension
 mime-typeimage/jpeg/mime-type
   /mime-mapping
   mime-mapping
 extensionjava/extension
 mime-typetext/plain/mime-type
   /mime-mapping
   mime-mapping
 extensionbody/extension
 mime-typetext/html/mime-type
   /mime-mapping
   mime-mapping
 extensionrtx/extension
 mime-typetext/richtext/mime-type
   /mime-mapping
   mime-mapping
 extensiontsv/extension
 mime-typetext/tab-separated-values/mime-type
   /mime-mapping
   mime-mapping
 extensionetx/extension
 mime-typetext/x-setext/mime-type
   /mime-mapping
   mime-mapping
 extensionps/extension
 mime-typeapplication/x-postscript/mime-type
   /mime-mapping
   mime-mapping
 extensionclass/extension
 mime-typeapplication/java/mime-type
   /mime-mapping
   mime-mapping
 extensioncsh/extension
 mime-typeapplication/x-csh/mime-type
   /mime-mapping
   mime-mapping
 extensionsh/extension
 mime-typeapplication/x-sh/mime-type
   /mime-mapping
   mime-mapping
 extensiontcl/extension
 mime-typeapplication/x-tcl/mime-type
   /mime-mapping
   mime-mapping
 extensiontex/extension
 mime-typeapplication/x-tex/mime-type
   /mime-mapping
   mime-mapping
 extensiontexinfo/extension
 mime-typeapplication/x-texinfo/mime-type
   /mime-mapping
   mime-mapping
 extensiontexi/extension
 mime-typeapplication/x-texinfo/mime-type
   /mime-mapping
   mime-mapping
 extensiont/extension
 mime-typeapplication/x-troff/mime-type
   /mime-mapping
   mime-mapping
 extensiontr/extension
 mime-typeapplication/x-troff/mime-type
   /mime-mapping
   mime-mapping
 extensionroff/extension
 mime-typeapplication/x

RE: Webdav Webfolder issue when container security enabled

2005-04-05 Thread Fernando Salazar de Paz
Thanks for your help, Mark

I have uncommented the servlet's readonly init parameter and security
constraints for testing. I have tried to comment welcome-file-list, but
web.xml in C:\Tomcat 4.1\conf have the same welcome-file-list, finally
I have removed index.html (I think I am doing something wrong). 

In my last test I have removed mime-types and welcome-file-list in 
C:\Tomcat 4.1\webapps\webdav\web.xml, with the same result (it could take
the defaults defined in C:\Tomcat 4.1\conf\web.xml, right ? )


 C:\Tomcat 4.1\webapps\webdav\web.xml---
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  display-nameWebdav Content Management/display-name
  description
 Webdav Content Management
  /description

  servlet
servlet-namewebdav/servlet-name
 
servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param
!-- Uncomment this to enable read and write access --
init-param
  param-namereadonly/param-name
  param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet

  !-- The mapping for the webdav servlet --
  servlet-mapping
servlet-namewebdav/servlet-name
url-pattern//url-pattern
  /servlet-mapping

  !-- Establish the default MIME type mappings --
  mime-mapping
extensiontxt/extension
mime-typetext/plain/mime-type
  /mime-mapping
  mime-mapping
extensionhtml/extension
mime-typetext/html/mime-type
  /mime-mapping
  mime-mapping
extensionhtm/extension
mime-typetext/html/mime-type
  /mime-mapping
  mime-mapping
extensiongif/extension
mime-typeimage/gif/mime-type
  /mime-mapping
  mime-mapping
extensionjpg/extension
mime-typeimage/jpeg/mime-type
  /mime-mapping
  mime-mapping
extensionjpe/extension
mime-typeimage/jpeg/mime-type
  /mime-mapping
  mime-mapping
extensionjpeg/extension
mime-typeimage/jpeg/mime-type
  /mime-mapping
  mime-mapping
extensionjava/extension
mime-typetext/plain/mime-type
  /mime-mapping
  mime-mapping
extensionbody/extension
mime-typetext/html/mime-type
  /mime-mapping
  mime-mapping
extensionrtx/extension
mime-typetext/richtext/mime-type
  /mime-mapping
  mime-mapping
extensiontsv/extension
mime-typetext/tab-separated-values/mime-type
  /mime-mapping
  mime-mapping
extensionetx/extension
mime-typetext/x-setext/mime-type
  /mime-mapping
  mime-mapping
extensionps/extension
mime-typeapplication/x-postscript/mime-type
  /mime-mapping
  mime-mapping
extensionclass/extension
mime-typeapplication/java/mime-type
  /mime-mapping
  mime-mapping
extensioncsh/extension
mime-typeapplication/x-csh/mime-type
  /mime-mapping
  mime-mapping
extensionsh/extension
mime-typeapplication/x-sh/mime-type
  /mime-mapping
  mime-mapping
extensiontcl/extension
mime-typeapplication/x-tcl/mime-type
  /mime-mapping
  mime-mapping
extensiontex/extension
mime-typeapplication/x-tex/mime-type
  /mime-mapping
  mime-mapping
extensiontexinfo/extension
mime-typeapplication/x-texinfo/mime-type
  /mime-mapping
  mime-mapping
extensiontexi/extension
mime-typeapplication/x-texinfo/mime-type
  /mime-mapping
  mime-mapping
extensiont/extension
mime-typeapplication/x-troff/mime-type
  /mime-mapping
  mime-mapping
extensiontr/extension
mime-typeapplication/x-troff/mime-type
  /mime-mapping
  mime-mapping
extensionroff/extension
mime-typeapplication/x-troff/mime-type
  /mime-mapping
  mime-mapping
extensionman/extension
mime-typeapplication/x-troff-man/mime-type
  /mime-mapping
  mime-mapping
extensionme/extension
mime-typeapplication/x-troff-me/mime-type
  /mime-mapping
  mime-mapping
extensionms/extension
mime-typeapplication/x-wais-source/mime-type
  /mime-mapping
  mime-mapping
extensionsrc/extension
mime-typeapplication/x-wais-source/mime-type
  /mime-mapping
  mime-mapping
extensionzip/extension
mime-typeapplication/zip/mime-type
  /mime-mapping
  mime-mapping
extensionbcpio/extension
mime-typeapplication/x-bcpio/mime-type
  /mime-mapping
  mime-mapping
extensioncpio/extension
mime-typeapplication/x-cpio/mime-type
  /mime-mapping
  mime-mapping
extensiongtar/extension
mime-typeapplication/x-gtar/mime-type
  /mime-mapping
  mime-mapping
extensionshar/extension
mime-typeapplication/x-shar/mime-type
  /mime-mapping
  mime-mapping
extensionsv4cpio/extension
mime-typeapplication/x-sv4cpio/mime-type
  /mime-mapping
  mime-mapping
extensionsv4crc/extension
mime-typeapplication/x-sv4crc/mime-type
  /mime-mapping
  mime-mapping

RE: Webdav Webfolder issue when container security enabled

2005-04-04 Thread Fernando Salazar de Paz
Win XP Professional, SP2 (Firewall disabled)
J2SDK 1.4.2_06

Installing Tomcat 4.1.31 
Install type:   Normal
NT Service: Checked
Dir:C:\Tomcat 4.1
Port:   8080

FILES:
File A: BizObj.pdf  391.413/393.216 bytes   
(MS Patterns andpractices)

File B: user-guide.pdf  202.259/204.800 bytes   
(Axis User's guide)

File C: manual-a4.pdf   7.045.780/7.049.216 bytes
(MySql manual)


In Windows
New Network Site -- http://localhost:8080/webdav

1. 
I can browse webdav dir
PROPFIND GET works ok
I can not PUT, I have to make some changes in
C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml

--
Changes in C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml
(Uncomment the following)
init-param
  param-namereadonly/param-name
  param-valuefalse/param-value
/init-param
--

2. Uncommenting servlet's readonly init parameter:
I can PUT files
I can GET recently putted files. PDFs files work ok I can read them
directly from webdav folder


--
Enabling container security

Changes in C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml
(Uncomment the following)

  security-constraint
web-resource-collection
  web-resource-nameThe Entire Web Application/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-nametomcat/role-name
/auth-constraint
  /security-constraint

  login-config
auth-methodBASIC/auth-method
realm-nameTomcat Supported Realm/realm-name
  /login-config

  security-role
description
  An example role defined in conf/tomcat-users.xml
/description
role-nametomcat/role-name
  /security-role

--


3. enabling security

I can PUT files, but

I can't read any file (FILE A, FILE B) directly from webfolders.

3.a Directly from webfolder
3.a.1 Double-click in webfolder link
3.a.2 Folder opens showing all files
3.a.3 double-click on file a or b
3.a.4 A new iexplore window opens to show the file
3.a.5 Authentication dialog (using tomcat/tomcat)
3.a.6 Iexplore tries to download the file: dialog open or save
I can't either open or save. IE says the site cannot be
found
It's like an activex control


3.b From IE 
3.b.1   In IE http://localhost:8080/webdav
3.b.2 Shows auth dialog (tomcat/tomcat)
3.b.3 Redirects IE to http://localhost:8080/webdav/index.html 
(welcome file)
3.b.4 Trying http://localhost:8080/webdav/BizObj.pdf (changing
The URL) FAILS ¿? (I am confused). The same error as in 3.a


3.c Copy  Paste from webfolder
3.c.1 Double-click in webfolder link
3.c.2 Copy (FILE b)
3.c.2 (in desktop) Paste
Works, I can read pdf file double-clicking it in desktop


Restarting Tomcat 4.1 service has no effect

I don't know why I cannot get listings for http://localhost:8080/webdav
Prior to this test I think I could see the files and IE worked ok.
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param


Disabling authentication, Webfolders, IE,... works fine












-Mensaje original-
De: Mark Thomas [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 01 de abril de 2005 20:23
Para: Tomcat Users List
Asunto: Re: Webdav Webfolder issue when container security enabled

Put together some full step-by-step instructions (from a clean install 
of 4.1.x or 5.5.x) and I'll take another look.

Mark

Fernando Salazar de Paz wrote:
 Another thing
 
 I have problems using tcpmon from Axis. Index Out of Bounds exceptions
 when I put the files, and so on.
 
 I have used ethereal to sniff network traffic.
 
 
 -
 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: Webdav Webfolder issue when container security enabled

2005-04-04 Thread Fernando Salazar de Paz
Deleting C:\Tomcat 4.1\webapps\webdav\index.html listings were ok
If I comment welcome-files in web.xml I think it should take welcome-files
defined In C:\Tomcat 4.1\conf\web.xml  or not ?

Now I can open PDF files with IExplore


After several restarts changing webdav\WEB-INF\web.xml

i. I could open previously uploaded PDF files (PUT) directly
from webfolders ¿?¿

ii. I can PUT files dragging them into the webfolder

iii. I can't do is open a previously uploaded file
directly from webfolder (I can only open files uploaded where auth
were disabled)


iv. I can't get the PDF file directly from IExplore. I have to direct IE
previously to http://localhost:8080/webdav

If I run IE using directly http://localhost:8080/webdav/BizObj.pdf it will
not work

But if I run IE using http://localhost:8080/webdav i get the directory
listing and after that I follow BizObj.pdf link it works

Using other file types (for example ZIP files) I have the same problem



-
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: Webdav Webfolder issue when container security enabled

2005-04-01 Thread Fernando Salazar de Paz
I have tried the following:

a)
Apache/2.0.49 (Win32) DAV/2 mod_jk/1.2.3-devsecurity enabled
WWW-Authenticate: Basic realm=ByPassword

Works fine (I can edit open PDFs, ZIPs, etc from webfolder)

b)
Apache Tomcat 4.1.31 / 5.5.7   security disabled

Works fine 

c)
Apache Tomcat 4.1.31 / 5.5.7   security enabled

c.1)
If I try to open a previously uploaded file (when security were disabled)
It works fine. 

c.2)
Fails (with PDFs, ZIPs, etc) if I drag a file into the webfolder and next
I'll try to open the same file double-clicking it into the webfolder. It
works with Office files ¿?¿ (I have tried miss-spain.ppt, for example ;)  ).

Using Explorer I have no problem. Also, I can read the file if I drag it
From the webfolder to another directory.

Disabling security and restarting Tomcat all works fine again.


I am very confused. Do you think it could be a problem when I post ¿? (the
file is not corrupted) ¿? Some type of locking ¿?  (Restarting tomcat
service doesn't seem to correct the problem).




-Mensaje original-
De: Mark Thomas [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 01 de abril de 2005 0:50
Para: Tomcat Users List
Asunto: Re: Webdav Webfolder issue when container security enabled

I have done some testing with the latest TC4.1.x source from CVS, WinXP 
SP2,  and tcpmon from the Axis project so I can look at the request and 
responses.

I have a web folder and IE open on http://localhost:8080/webdav

As a result of my tests I noted the following:
1. If I drag a .pdf to the web folder, I can then view it in IE.
2. If I drag the .pdf from the web folder to my desktop I can then open
it using Acrobat.
3. I can't open the .pdf using Acrobat directly from the web folder.
4. Authentication seems to make no difference to behaviour.

Given 1  2, I don't believe Tomcat is corrupting the file.
Given 4, I think authentication is a red herring.

3. The MS webdav client seems to be copying the file to the temp 
internet files directory and then opening it. Maybe Acrobat doesn't like 
something about this. Notepad, Paint and OpenOffice don't seem to mind 
even with similar sized documents to the .pdf I was using.

The webdav servlet hasn't changed significantly since 4.1.31 so I 
suggest trying 4.1.31 and seeing what results you get.

Mark

-
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: Webdav Webfolder issue when container security enabled

2005-04-01 Thread Fernando Salazar de Paz
Another thing

I have problems using tcpmon from Axis. Index Out of Bounds exceptions
when I put the files, and so on.

I have used ethereal to sniff network traffic.


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



Webdav Webfolder issue when container security enabled

2005-03-31 Thread Fernando Salazar de Paz
Using Windows XP SP 2 , Net Framework 1.1,MSDAIPP.DLL 11.0.5510.0

 

Tomcat version  4.1.21   5.5.7

JDK version  1.4.2_06   

 

I cannot open pdf files, zip files, . (with office files, image files. it
works fine) inside webfolders when basic authentication is enabled.

I have the same problem using tomcat's webdav app;

in such case I can read, at server's console, the following:

 

[Fatal Error] :-1:-1: Premature end of file. 

 

The problem arise when I try to open recently uploaded files. 

 

Disabling container's security all works fine

 

I don't know if line breaks in the response could affect webfolder client.
In the following example file

I have found several diffs when auth is enabled. Mime types, content-length
etc all OK in both responses.

 

 

Example PDF file

- authentication disabled. All works


%PDF-1.3

%

340 0 obj

 

/Linearized 1

.

.

.

353 0 obj

 /S 1720 /Filter /FlateDecode /Length 354 0 R 

 

- authentication disabled. All works


 

- authentication enabled. Fails


 

%PDF-1.3

%

340 0 obj

 

/Linearized 1

.

.

.

353 0 obj

 /S 1

720 /Filter /FlateDecode /Length 354 0 R 

- authentication enabled. Fails


 

 

 

Thanks in advance