BaseX 10.1 bug in GET command?
Hello, I think I've found a possible bug. When I use the GET command the document retrieved is not always the same I requested. It only happens with the GET command, as using db:get() from xquery always works as expected. I haven't observed it happening with BINARY GET. I've reproduced it with the simplest example: BaseX 10.1 [Client]Try 'help' to get more information.
create db sample Database 'sample' created in 14.0 ms. open sample Database 'sample' was opened in 0.03 ms. add to hello.xml <hello>world</hello> Resource(s) added in 2.25 ms. add to goodbye.xml <goodbye>world</goodbye> Resource(s) added in 2.22 ms. get hello.xml <goodbye>world</goodbye>Query executed in 0.18 ms. get goodbye.xml <hello>world</hello>Query executed in 0.19 ms. xquery db:get('sample','hello.xml') <hello>world</hello> Query "BaseX" executed in 0.64 ms. xquery db:get('sample','goodbye.xml') <goodbye>world</goodbye> Query "BaseX" executed in 0.23 ms.
I'm using BaseX 10.1 on Windows 10 with OpenJDK Temurin-17.0.4.1+1 Regards, Gabriel Lorenzo
Thanks, Gabriel, for the reproducible example. A new snapshot is online [1]. BaseX 10.2 will be released later this week. – Best, Christian [1] https://files.basex.org/releases/latest/ On Tue, Sep 27, 2022 at 9:33 AM Gabriel Lorenzo <jglorenzo@protonmail.com> wrote:
Hello,
I think I've found a possible bug. When I use the GET command the document retrieved is not always the same I requested. It only happens with the GET command, as using db:get() from xquery always works as expected. I haven't observed it happening with BINARY GET.
I've reproduced it with the simplest example:
BaseX 10.1 [Client]Try 'help' to get more information.
create db sample Database 'sample' created in 14.0 ms. open sample Database 'sample' was opened in 0.03 ms. add to hello.xml <hello>world</hello> Resource(s) added in 2.25 ms. add to goodbye.xml <goodbye>world</goodbye> Resource(s) added in 2.22 ms. get hello.xml <goodbye>world</goodbye>Query executed in 0.18 ms. get goodbye.xml <hello>world</hello>Query executed in 0.19 ms. xquery db:get('sample','hello.xml') <hello>world</hello> Query "BaseX" executed in 0.64 ms. xquery db:get('sample','goodbye.xml') <goodbye>world</goodbye> Query "BaseX" executed in 0.23 ms.
I'm using BaseX 10.1 on Windows 10 with OpenJDK Temurin-17.0.4.1+1
Regards, Gabriel Lorenzo
participants (2)
-
Christian Grün -
Gabriel Lorenzo