Are you saying that due to the fact my database is fine in 6.5.1 but not in 6.6.3-SNAPSHOT implies my database is corrupt?
The database design hasn't been changed from 6.5.1. to 6.6.3. Instead, it might be that your database has been corrupted before, even if BaseX 6.5.1 doesn't complain.
Can you tell me what details you need? I won't be able to send you the XMLs forming this database.
It's difficult to give you serious feedback without a reproducible example (sscce). As an example, we have no idea what the getData.xq script does.
Did you manage to reproduce the behavior by redoing the relevant steps? C.
I can tell you, however, all I did
was run a query which retrieved one element (having several descendent elements) from a sub-collection. The JAX-RX query was like: http://localhost:8984/basex/jax-rx/?run=getData.xq&var=$databaseName=MyD...
The XMLs were loaded via JAX-RX POST to http://localhost:8984/basex/jax-rx/MyDB/SubPath/SubSubPath/dataFileN where dataFileN is the unique name of the data-file being loaded (dataFileOne, dataFileTwo etc.). The database was created using JAX-RX command invocation (param command=CREATE+DATABASE+MyDB)