Re: [basex-talk] BaseX 10.1 bug in GET command?

2022-09-27 Thread Christian Grün
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
 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 world
> Resource(s) added in 2.25 ms.
> > add to goodbye.xml world
> Resource(s) added in 2.22 ms.
> > get hello.xml
> worldQuery executed in 0.18 ms.
> > get goodbye.xml
> worldQuery executed in 0.19 ms.
> > xquery db:get('sample','hello.xml')
> world
> Query "BaseX" executed in 0.64 ms.
> > xquery db:get('sample','goodbye.xml')
> world
> 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


[basex-talk] BaseX 10.1 bug in GET command?

2022-09-27 Thread Gabriel Lorenzo
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 world
Resource(s) added in 2.25 ms.
> add to goodbye.xml world
Resource(s) added in 2.22 ms.
> get hello.xml
worldQuery executed in 0.18 ms.
> get goodbye.xml
worldQuery executed in 0.19 ms.
> xquery db:get('sample','hello.xml')
world
Query "BaseX" executed in 0.64 ms.
> xquery db:get('sample','goodbye.xml')
world
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