HN44 / pywebdav

Automatically exported from code.google.com/p/pywebdav
0 stars 0 forks source link

namespaceErr raises during copying a directory #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am getting this exception every time I am trying to copy a directory. I use 
PyFilesystem as a client like this:

from fs.contrib.davfs import DAVFS
fs = DAVFS('http://localhost:8888')
fs.makedir('dir1')
# the directory should be non-empty inorder to reproduce the bug
fs.setcontents('dir1/file1.txt', data='a')
fs.copydir('dir1', 'dir2')

The exception raises after executing the above code.

Here is the stack trace:

Exception happened during processing of request from ('127.0.0.1', 34880)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File 
"/home/yoda/work/scramsoft/filesync/new-env279/local/lib/python2.7/site-packages
/pywebdav/lib/WebDAVServer.py", line 636, in do_COPY
self.copymove(COPY)
File 
"/home/yoda/work/scramsoft/filesync/new-env279/local/lib/python2.7/site-packages
/pywebdav/lib/WebDAVServer.py", line 692, in copymove
res = cp.tree_action()
File 
"/home/yoda/work/scramsoft/filesync/new-env279/local/lib/python2.7/site-packages
/pywebdav/lib/davcopy.py", line 87, in tree_action
doc = domimpl.createDocument(None, "D:multistatus", None)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1393, in createDocument
"illegal use of prefix without namespaces")
NamespaceErr: illegal use of prefix without namespaces 

Original issue reported on code.google.com by asmatic...@gmail.com on 7 Aug 2015 at 8:49