httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8241] - DELETE operation returns response code 500 but file is deleted
Date Wed, 03 Jul 2002 21:48:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8241>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8241

DELETE operation returns response code 500 but file is deleted

benoit.tanguy@solucom.fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Other                       |Windows NT/2K
            Version|2.0.35                      |2.0.39



------- Additional Comments From benoit.tanguy@solucom.fr  2002-07-03 21:48 -------
I did investigate on the bug on NT/2000 OS.
The problem seem to be linked to an error number problem when mod_dav try to 
remove the file property file (for instance  
c:\apache\htdocs\file\.DAV\my_file.txt.dir )
In fact if you create the directory .DAV it works. So the problem is only when 
it try to remove a file from a directory that does not exist.

Here are some information I collect when debuggingI
Teh problem is in repos.c : the functiuon dav_fs_deleteset call apr_file_remove.
Then it test the status code (OK or no file) and continue.
But in our case (NT 2000) when the directory where it try to remove the file 
does not exist the return code is not well treated (code 225003)
In fact it the apr file_io functions seems to use Unix error code.
But in our case the error code after the deleting of a file is seems to be 
specific to windows (Code 3 ERROR_PATH_NOT_FOUND).

So I have find a solution (I did modify repos.c to test the code). But it's not 
a clean one. It may be better to change the way APR fucntion treat Windows 
error code.
It's the first time I'm debugging apache. I would like to have a suggestion 
from someone experimented.
Thanks for your help.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message