ANNIS icon indicating copy to clipboard operation
ANNIS copied to clipboard

Corpora with version metadatum create duplicate resolver entries on import with overwrite

Open amir-zeldes opened this issue 7 years ago • 2 comments

What is the used ANNIS version? 3.5.0-SNAPSHOT (rev. 39d5ba46d0, built 2016-12-09 10:30:36)

What browser and operating system did you use? Chrome, Win 7 64

What steps will reproduce the problem?

  1. Import GUM
  2. Increment the version datum and reimport + overwrite
  3. Open any example query

What is the expected result? Normal visualizers as defined by resolver_vis_map

What happens instead? All visualizers are duplicated (again and again, for each import+overwrite)

Please provide any additional information below. Also please add a screenshot if possible. It seems on import corpus metadata containing the string 'version' is recognized and the version field in corpus.annis is filled. Once a new version of the corpus is imported, the old version is overwritten, but old entries in resolver_vis_map are not deleted. Instead, the new entries are appended, creating duplicate visualizations.

amir-zeldes avatar Jan 12 '17 20:01 amir-zeldes

This seems to persist even if I delete and then import the corpus fresh.

amir-zeldes avatar Jan 13 '17 17:01 amir-zeldes

I've just encountered the same issue (v. 3.6.0). I confirm it is caused by a "version" metadatum in the corpus. and fixed by removing it. Also the most serious issue I've encountered working with ANNIS, since it corrupts the resolver_vis_map table in the database and the only fixes I found were (i) reset the whole database or (ii) never use the corpus name again, neither of which are convenient workarounds!

rainsfordtm avatar Jul 26 '21 13:07 rainsfordtm