Hi Andreas,
Wirh the newest snapshot [1], it should once again be possible to open files via WebDAV.
Thanks for the report, Christian
[1] http://files.basex.org/releases/latest/
On Wed, Dec 10, 2014 at 8:43 PM, Andreas Jung lists@zopyx.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi there,
I have a bunch Python code that runs with unittests perfectly against exist-db. However I have some issues with the WebDAV implementation of Base-X (tested against the latest 8.0 beta snapshot).
In my case I am trying to read a file that exists over WebDAV
(Pdb) print z_filename foo/index.html (Pdb) handle.listdir() [u'foo'] (Pdb) handle.listdir('foo') [u'index.html', u'index.xml']
But trying to open and read the file gives me a 400 error
(Pdb) handle.open(z_filename) *** OperationFailedError: Server Error: 400
The BaseX log tells me about a 200 response:
20:37:05.917 0:0:0:0:0:0:0:1:56453 admin REQUEST [GET] http://localhost:8984/webdav/testing/foo/index.html 20:37:05.921 0:0:0:0:0:0:0:1:56453 admin 200 3.84 ms
However I see this on the console:
Stopped at ., 1/112: [XQST0109] Character map 'webdav' is not defined.
Using Wireshark I can see that BaseX really responds with a 400 response.
Bug?
Andreas
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJUiKJXAAoJEADcfz7u4AZjNHILwI24MILvLMEHV+UmNen83v6e OwjgtfZfVXZlFNTBiWwaAq/JqzBCaEaaYkmqz5uzBDyzMgkzP/XxqiGNjwgfvy+z sIEasvwhfOfEpsf0W8GFEVpnqoT8sdpaZenozz53HTeOzVgwXBct9gSP8+/0/h6C pfy9Vcj9Nm4PX6Ed5uAEuHvLFO1gmAXKHsx+qXjAMUwXFvmznJYYTTNnoXRvrBjS b7dkXPIyBQU3j6c3L6oCBMWn6f6vCoEFs3i4aqfl+uUSBoNoR/TixhyS8/kfJCCT mK6wabjLdGnI6HcM7ll27S/TrWAmKNbY08LfAfJqtu/CwYy5paeW5qjGF3CGInr9 Da634m0LaNfqGcJPkcH5+s5q7GQMj3kF1sZIPLGv3o34VZFiLzPwoh/+Ei9RASXW JesluV+bXiRsZlLf3Uly9PSn8xc/PNECCLDF1F/6J0dJAn4//oHrXHrHEom3vSsZ eqFy3niG6lXnTBMJUYhc/KlvliKSrdc= =PG2F -----END PGP SIGNATURE-----