Join GitHub today
Backup-restore failure : parsing errors #1620
What is the problem
During a simple backup - restore (no database cleanup in between), some files haven't been restored due to errors reported by the XML parser:
There is need a
<repo:meta xmlns="http://exist-db.org/xquery/repo" xmlns:repo="http://exist-db.org/xquery/repo" #unknown="http://exist-db.org/xquery/repo"> <repo:description>Shared resources used by other apps</repo:description> <repo:author>Wolfgang Meier</repo:author> <repo:website>https://github.com/eXist-db/shared-resources</repo:website> <repo:status>alpha</repo:status> <repo:license>GNU-LGPL</repo:license> <repo:copyright>true</repo:copyright> <repo:type>library</repo:type> <repo:target>shared-resources</repo:target> <repo:prepare/> <repo:finish/> <repo:permissions user="admin" group="dba" mode="0775"/>
What did you expect
A restore should work flawlessly
Describe how to reproduce or add a test
In the admin client, make a backup of a database (no special apps needed) and directly do restore from the backup.zip file.
Please always add the following information
@dizzzz I have heard from @duncdrum and @wolfgangmm that your steps to reproduce this do not cause the issue for them. Can you tell me did you start from a clean database, or did you have an existing database?
I would love to jump into this, can you give me exact steps to reproduce from a clean install?
Ok confirmed: how to reproduce:
@dizzzz Okay so there was an existing DOM bug in eXist-db prior to my DOM improvements (I am comparing against eXist-3.1.0) that meant that the
I have first fixed
Anyway long story short. There are several bugs, some pre-existing which were surfaced by improvements in the DOM, and some new as a result of improving the DOM.
referenced this issue
Nov 29, 2017
i can reproduce it for this configuration:
the package manager is reporting the "--" issue, but the XAR file gets installed.
the new XML file with -- is not present in the XAR file.
This means that I cannot get a file containing a -- into a backup file....