-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi there,
me again :-)
This is the root of my BaseX installation:
dav:/webdav/> ls Listing collection `/webdav/': succeeded. Coll: BaseX80 0 Feb 15 17:20 Coll: all 0 Feb 22 17:22 Coll: lib 0 Feb 15 17:21 Coll: my-onkopedia 0 Feb 15 17:24 Coll: onkopedia-p 0 Feb 15 17:32 Coll: onkopedia 0 Feb 21 16:00 Coll: scripts
I upload a a file 'README.rst' using cadaver and BaseX creates a collection 'README' instead of a resource:
dav:/webdav/> put README.rst Uploading README.rst to `/webdav/README.rst': Progress: [=============================>] 100.0% of 2772 bytes succeeded. dav:/webdav/> ls Listing collection `/webdav/': succeeded. Coll: BaseX80 0 Feb 15 17:20 Coll: README 0 Feb 22 17:34 Coll: all 0 Feb 22 17:22 Coll: lib 0 Feb 15 17:21 Coll: my-onkopedia 0 Feb 15 17:24 Coll: onkopedia-p 0 Feb 15 17:32 Coll: onkopedia 0 Feb 21 16:00 Coll: scripts 0 Feb 20 20:25 dav:/webdav/>
I assume that resources should be allowed within the root folder.
Andreas
Hi Andreas,
me again :-)
Welcome ;)
I upload a a file 'README.rst' using cadaver and BaseX creates a collection 'README' instead of a resource:
This was indeed a deliberate decision: With BaseX you'll find databases on top level – and a resource cannot be stored outside a database. Instead, a new database will be created, and the file will be stored in that database.
In the past, we already wondered if we shouldn't disallow users to copy files on root level instead of automagically creating a new database. However, some tests indicated that this behavior wouldn't be 100% intuitive neither.
Hope this helps? Christian
dav:/webdav/> put README.rst Uploading README.rst to `/webdav/README.rst': Progress: [=============================>] 100.0% of 2772 bytes succeeded. dav:/webdav/> ls Listing collection `/webdav/': succeeded. Coll: BaseX80 0 Feb 15 17:20 Coll: README 0 Feb 22 17:34 Coll: all 0 Feb 22 17:22 Coll: lib 0 Feb 15 17:21 Coll: my-onkopedia 0 Feb 15 17:24 Coll: onkopedia-p 0 Feb 15 17:32 Coll: onkopedia 0 Feb 21 16:00 Coll: scripts 0 Feb 20 20:25 dav:/webdav/>
I assume that resources should be allowed within the root folder.
Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJU6gVpAAoJEADcfz7u4AZjF64LwLGdkp7w+Dwniz/8MYGlWX+R ngO1Dwmcev75PN9I9KQzMEYlQxzVLajYP9DoCAsziBgSLqZZJQyxInhh1KdoZvPO od4ESTCVhAGbnSjws4tiZ0gUFMkrkf8yJu+JgRGBBpOskon3/9HjbnBoKJIzQTsU /6Cm81gszNy12lkDDqoEjGtXzCnu1bl5vHrLESmoQ/Mrb1lx/qAXOrcpnR7RKJSu aG0CcmhZKRWZK+ipwT6FaV7HJDZYu/twOnpES8howKDmJk1e03HW6lmf54Wwo4MM hcvjYmN+PnFzNj/WKAZJHWr+6lwWdiUp3EkTX2t4GqfyeMfflaX1J/prhc/FKGIA nWF+qQKh6ogtxpHhiWIizxDfN3ppiB6Nz1f51m1ePB+ea3qg3cVghqw5KQLWncwK nXSHwcrUHzbIqvyawFTyhTQLdTs/CIEniT1fFB4u572blnNHHw2P8LqftEOovyZP NATSv1cw3LxPYrLxK+RL1Z3yIcU104Q= =cI7q -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Christian Grün wrote:
Hi Andreas,
me again :-)
Welcome ;)
I upload a a file 'README.rst' using cadaver and BaseX creates a collection 'README' instead of a resource:
This was indeed a deliberate decision: With BaseX you'll find databases on top level ? and a resource cannot be stored outside a database. Instead, a new database will be created, and the file will be stored in that database.
In the past, we already wondered if we shouldn't disallow users to copy files on root level instead of automagically creating a new database. However, some tests indicated that this behavior wouldn't be 100% intuitive neither.
Perhaps this decision and the "magic" should be described here:
http://docs.basex.org/wiki/WebDAV
Andreas
Perhaps this decision and the "magic" should be described here: http://docs.basex.org/wiki/WebDAV
Done. By the way, if you want to help out, I invite you to get a BaseX Wiki account. ;) Christian
Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJU6gnWAAoJEADcfz7u4AZj7OwLwJN+jNqkTCEbpfKZtyaYiJuR xR1kPZBq9Y3ItC4JrsIO1ZAH1fn8QzBZqON1c2fMBq9R0Oh5pvwzz7AUM3QxzPV5 KHB486p0EGLbtWj6FvBYuRwMvNpeYNygCZzrmnYLDYTSmInph/qLOONRS/zRopJ6 cPn9mTN4fHX1BcluQSWhJAwqYQonJsLneNufm/xHRDiwiQgnM9pdZoxhgoHrQigA 4e6ducqbPko3VpUfEqHNapGJZlEhkHXbsHTDXpFTUXKl0H+1Q65iWBWndC8d/pTU 9JMCjBBpt4+82WZDjMbsVCnutOU7ERhxXaoJRanSFTbpVM16eQ3WtKyJHOzHRzwk NpP9Jx5XqB/rII6+BDo9De49x7Hn9LfqIGoLArJYRWOOxoSRlL/u3s7otJDAUsj9 YHPO0ckEXHyR19V+YhClJejzGwS0zd6+IB/hlxa7tRO3EpgIgCyxXsP6qBlv46n9 5dnM5VeEGQAoium/UGgiXmpVxZi1HIc= =A81u -----END PGP SIGNATURE-----
basex-talk@mailman.uni-konstanz.de