Hello
The following works on Basex 10.7 but fails on Basex 11.1.
The command I'm trying to run is:
/opt/basex/bin/basex -v -c'OPEN mydb; ADD "/tmp/ZTH4ZRO.xml"'
I've attached the XML file.The output I'm getting:
Database 'mydb' was opened in 54.52 ms. Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 11.1 Java: Ubuntu, 11.0.19 OS: Linux, amd64 Stack Trace: java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -1 is negative at java.base/java.lang.System.arraycopy(Native Method) at org.basex.util.Array.insert(Array.java:99) at org.basex.util.list.ObjectList.insert(ObjectList.java:153) at org.basex.index.resource.Docs.insert(Docs.java:166) at org.basex.index.resource.Resources.insert(Resources.java:71) at org.basex.data.Data.indexAdd(Data.java:1098) at org.basex.data.Data.insert(Data.java:836) at org.basex.query.up.atomic.Insert.apply(Insert.java:44) at org.basex.query.up.atomic.AtomicUpdateCache.applyUpdates(AtomicUpdateCache.java:291) at org.basex.query.up.atomic.AtomicUpdateCache.execute(AtomicUpdateCache.java:275) at org.basex.core.cmd.Add.lambda$run$0(Add.java:62) at org.basex.core.cmd.ACreate.update(ACreate.java:90) at org.basex.core.cmd.Add.run(Add.java:56) at org.basex.core.Command.run(Command.java:233) at org.basex.core.Command.execute(Command.java:93) at org.basex.api.client.LocalSession.execute(LocalSession.java:131) at org.basex.api.client.Session.execute(Session.java:36) at org.basex.core.CLI.execute(CLI.java:94) at org.basex.core.CLI.execute(CLI.java:78) at org.basex.core.CLI.execute(CLI.java:65) at org.basex.BaseX.<init>(BaseX.java:82) at org.basex.BaseX.main(BaseX.java:44)