Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B5391200BBE for ; Fri, 11 Nov 2016 11:45:26 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B4095160AF5; Fri, 11 Nov 2016 10:45:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 075BA160AE4 for ; Fri, 11 Nov 2016 11:45:25 +0100 (CET) Received: (qmail 27604 invoked by uid 500); 11 Nov 2016 10:45:24 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 27593 invoked by uid 99); 11 Nov 2016 10:45:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2016 10:45:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 063B6C2367 for ; Fri, 11 Nov 2016 10:45:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id aaQDfiY11YLc for ; Fri, 11 Nov 2016 10:45:21 +0000 (UTC) Received: from thor.wissensbank.com (thor.wissensbank.com [81.169.250.120]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 598EC5F246 for ; Fri, 11 Nov 2016 10:45:21 +0000 (UTC) Received: from thor.wissensbank.com (localhost [127.0.0.1]) by thor.wissensbank.com (Postfix) with ESMTP id F3F6315A60BB9 for ; Fri, 11 Nov 2016 11:45:12 +0100 (CET) Received: by thor.wissensbank.com (Postfix, from userid 500) id E77DA15A60F58; Fri, 11 Nov 2016 11:45:12 +0100 (CET) Received: from [192.168.245.129] (pd956abfc.dip0.t-ipconnect.de [217.86.171.252]) (Authenticated sender: andre.warnier@ice-sa.com) by thor.wissensbank.com (Postfix) with ESMTPA id 0C41B15A60BB9 for ; Fri, 11 Nov 2016 11:45:09 +0100 (CET) From: =?UTF-8?Q?Andr=c3=a9_Warnier_=28tomcat=29?= Subject: Re: Using WebDAV in Tomcat 7.0.45 To: users@tomcat.apache.org References: Message-ID: <5825A135.2000007@ice-sa.com> Date: Fri, 11 Nov 2016 11:45:09 +0100 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP archived-at: Fri, 11 Nov 2016 10:45:26 -0000 Hi. On 11.11.2016 09:08, Arno Schfer wrote: > Hi all, > > I have activated WebDAV in my web app to be able to show some log files directly in the browser and to edit some special XML files in a special editor.. > In my first attempt I can read all this files and show it in the editor and in the browser, but I failed to save them, after I have changed them. > I think that you are missing a piece of the puzzle. Let me try to explain in relatively simple terms : The "DAV protocol" is an addition to the standard HTTP protocol. What it does, is to enable some additional HTTP "command verbs", which are understood by additional "handlers" on the webserver side. A standard webserver understands the HTTP command "GET" and "POST", and all browsers are capable to send these commands to the webserver. But to upload a page or file from a HTTP client to a webserver, using DAV, the client has to be able to send this file to the webserver using a "PUT" command. (That is your "HTTP save request" as you mention below). This command is not supported by a standard browser. You need a special "DAV client" program for that. As examples of such special DAV clients : - many HTML editors have such a feature built-in (e.g. DreamWeaver) - the Windows Explorer program includes such a feature (if you create a "Web Folder" in your "Network Locations")(see for example here : http://www.howtogeek.com/203432/how-to-access-ftp-and-webdav-sites-in-any-operating-systems-file-manager/)(or here : https://www.webdavsystem.com/server/access/windows/windows/) - some commercial Windows add-on programs like WebDrive (https://southrivertech.com/products/webdrive/) Of course, because with DAV, any DAV client can upload and/or overwrite files on the server, you must be careful of the permissions aspect. On the server side, the DAV module runs within the webserver, thus under the user-id and with the permissions of that webserver. So in order to be able to read and possibly write to some file, that file (and its directory) needs to be so that the webserver user-id has the permission to read/write it. That is dangerous, and should be considered very carefully. > Can someone provide me a good tutorial or a short example, what I have to do, to get it running. I am using the standard WebdavServlet from > the catalina.jar and the WebdavFixFilter for now. From the documentation I do not understand, how I have to request the single methods of the > implemented interfaces. Do I have to implement my own servlet or filter to handle all interfaces what I need for saving files? Also an example of > a possible HTTP save requests would be very helpfull. > > Thanks in advance, > best regards > Arno > _________________________________________________________ > > Vorsitzender des Aufsichtsrats: David Bellin > Vorstand: Diederik Vos (CEO) ? Ralph Gillessen (COO) ? Ren Gawron (CFO) > Martin Hodgson (Executive Director Management Consulting) > SQS AG ? Stollwerckstrae 11 ? 51149 Kln > Sitz der Gesellschaft: Kln ? Amtsgericht Kln, HRB 12764 > > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient > (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. > Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org