korpling / ANNIS

ANNIS is an open source, versatile web browser-based search and visualization architecture for complex multilevel linguistic corpora with diverse types of annotation.
http://corpus-tools.org/annis/
Apache License 2.0
69 stars 25 forks source link

Existence of directory is not checked when saving corpus properties #336

Closed larilampen closed 10 years ago

larilampen commented 10 years ago

By default ANNIS (service) saves corpus properties in the directory .annis/data under the user's home directory. It does not ensure that the directory exists, nor do the installation instructions for public servers give any suggestion to create it. So the first time a user attempts to import a corpus, a FileNotFoundException is raised and the corpus.properties file is not saved. The fix is trivial.

thomaskrause commented 10 years ago

Thank you for reporting this. Whenever a user already imported a corpus which has binary files (like the example pcc2 corpus) the directory was actually created, thus this bug was not discovered yet. We will include the fix in the upcoming 3.2.0 release of ANNIS. We also might release a bugfix-only 3.1.7 version earlier, this depends on how long the 3.2.0 release will take to be finished.