Hi Stephan, I remember that another user encountered a similar issue in the recent past. Could you please check out if the problem also happens with the latest stable snapshot [1]?
Thanks in advance, Christian [1] http://files.basex.org/releases/latest/ On Mon, Sep 3, 2018 at 3:21 PM Stephan van Hugten <stephan.vanhug...@theapsgroup.com> wrote: > > In our software we’re using a Basex database and integrate with it via the > Java library. We’re currently using 8.0.3, but attempted to upgrade to the > latest version (9.0.2) when we encountered a breaking issue. The REPLACE > command class now interprets all XML with an attribute as a path. I can > reproduce this in the basex command line client, but not the GUI. > > > > Reproducer case: > > > > BaseX 9.0.2 [Client] > > Try 'help' to get more information. > > > create db test > > Database 'test' created in 25.24 ms. > > > open db test > > Database 'db' was not found. > > > open test > > Database 'test' was opened in 1.57 ms. > > > REPLACE com.example.model.user.Account-2397 "<text > > version="draft"><title>Chapter</title></text>" > > Resource "C:/Java/basex902/bin/"<text > version=draft><title>Chapter</title></text>"" not found. > > > REPLACE com.example.model.user.Account-2397 <text > > version="draft"><title>Chapter</title></text> > > Resource "C:/Java/basex902/bin/"<text > version=draft><title>Chapter</title></text>"" not found. > > > REPLACE com.example.model.user.Account-2397 <text > > version='draft'><title>Chapter</title></text> > > Resource "C:/Java/basex902/bin/"<text > version='draft'><title>Chapter</title></text>"" not found. > > > REPLACE "com.example.model.user.Account-2397" <text > > version='draft'><title>Chapter</title></text> > > Resource "C:/Java/basex902/bin/"<text > version='draft'><title>Chapter</title></text>"" not found. > > > REPLACE "com.example.model.user.Account-2397" "<text > > version='draft'><title>Chapter</title></text>" > > Resource "C:/Java/basex902/bin/"<text > version='draft'><title>Chapter</title></text>"" not found. > > > REPLACE top.xml "<text version='draft'><title>Chapter</title></text>" > > Resource "C:/Java/basex902/bin/"<text > version='draft'><title>Chapter</title></text>"" not found. > > > REPLACE top.xml <xml/> > > 0 resource(s) replaced in 29.71 ms. > > > REPLACE top.xml <xml version='draft'/> > > Resource "C:/Java/basex902/bin/"<xml version='draft'/>"" not found. > > > > > > > Storing the XML in a file and replacing that works: > > > REPLACE com.example.model.user.Account-95 test.xml > > 1 resource(s) replaced in 5.03 ms. > > > xquery //account > > <account uuid="83ff82e4-01b1-4624-969e-2ba7e7deeb29" id="10095"><x/></account> > > > > Can you assist in solving this mystery? > > '************************************************************************************************** > This E-mail and any files transmitted with it are private and confidential > and are solely for the use of the addressee. It may contain material which > is legally privileged. If you are not the addressee, be advised that you > have received this E-mail in error and that any use of it is strictly > prohibited. > > If you have received this E-mail in error, please notify APS on +44 (0)161 > 495 4500, or E-mail administra...@theapsgroup.com. > Any opinions expressed in the E-mail are those of the individual writer of it > and not necessarily the Company unless specifically stated otherwise. There > is no intention to create any legally binding contract or other commitment > through use of this E-mail > > We cannot accept any liability for any loss or damage sustained as a result > of software viruses. It is your responsibility to carry out such virus > checking as is necessary before downloading this E-mail and any attachments > onto your computer system. > > Allied Publicity Services (Manchester) Ltd Registered Office: Allied > Publicity Services (Manchester) Ltd, Chetham House, Bird Hall Lane, Cheadle > Heath, Cheshire, SK3 0ZP Company Registration No: 681528 England > > APS Group Secure Solutions Limited. Registered Office: Chetham House, Bird > Hall Lane, Stockport, Cheshire, SK3 0ZP Company Registration No: 07007434 > England > APS Group (Scotland) Ltd. Registered Office: APS Group (Scotland) Ltd, 21. > Tennant Street, Edinburgh, EH6 5NA Company Registration No: SC369510 Scotland > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit https://www.symantec.com > ______________________________________________________________________