Jump to content
Ketarin forum

Database seems to break when importing application definition with name that already existed but was deleted


McNetic
 Share

Recommended Posts

I'm sorry, I did post a bit too quick, and did the double check I made wrong (original post remains striked through below).

 

The source of the problem is quite different:

When importing an application xml, this xml can be malformed so that it produces an error on import and additionally seems to break the database, resulting in the application (and probably some/all others, didn't test that) not showing up any more and re-emitting the error on every start of ketarin.

In this special case, I manually edited the xml, duplicating a variable entry, renaming the "key" but missing to rename the "name" node, so the name was there two times. I think ketarin should discard anything tried to import when an error occurs on import to avoid the database being corrupted by this.

 

When I export one of my applications to a file, delete it, and re-import it afterwards, I get an error "Failed to import file: Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt" (german for "an element with the same key has already been added"). The same error message appears when exiting Ketarin afterwards, and starting it again. I did not look into the db file, but I suspect the application does not really get deleted in the first place but only marked as deleted, so the key (name) duplicates when reimporting.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.