WebDAV issue in BaseX 8, how to track down

Wednesday, 10 December 2014 · 3 messages
AJ
Andreas Jung10 Dec 2014 20:43 #
-----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-----
CG
Christian Grün10 Dec 2014 21:04 #
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/
Quoted text · Andreas Jung · 56 lines
On Wed, Dec 10, 2014 at 8:43 PM, Andreas Jung <lists at 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-----
AJ
Andreas Jung10 Dec 2014 21:28 #
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks, problem solved. Andreas
Quoted text · Christian Grün · 48 lines
Christian Grün wrote: > 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 at zopyx.com> > wrote: 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 >
- -- Regards Andreas Jung andreas at andreas-jung.com about.me/andreasjung -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJUiK0LAAoJEADcfz7u4AZjrasLv0UM48YYBV0pBBNZWflK7TgR VkI1QYMxWTFqkqjs57JQBfBcC/5NGRLYXgNYWGMMexXGsh8z/0IebFLUQm48U+R2 6Lfi2m3lwk2jItI9IMtmIsWlWoCer8LrGKB6JksOFV4aj7cIL174qWyECMNe3FIm oG9hH3wb9ywEXZrtnleMYvSiArnaPupkD0+eKQvkjeZNIIYJNSP8iGOBDjxe72Xi 5v5VHaNwaCCHACviLranWAHvI/ijJVq3S5BngY5Rr6mBdxdrHzbWAlT1VWJ33pzg JKf7MxZFjIvhoScRhIgh8jZClUEbK/+FjVhr+eWoi7+mJLL9IplZM6DE7rSdb2BQ 32dJsi9O5lYeeRYopwsd2hH477Z7vWjOm+G63GcADAep7vwzputiotSRoNYsvyzz Fq+hqRnfcNc9ScwizKF+9JTkrCzSfP7rZBVtRHfqhgvX0gaMqSLitmVEmTohcDh7 7rTMmDhz5ipNBtuPYIEZ2PoWFcP85CY= =iRxe -----END PGP SIGNATURE-----

⚡Generated with XQuery