proycon / flat

FoLiA Linguistic Annotation Tool -- Flat is a web-based linguistic annotation environment based around the FoLiA format (http://proycon.github.io/folia), a rich XML-based format for linguistic annotation. Flat allows users to view annotated FoLiA documents and enrich these documents with new annotations, a wide variety of linguistic annotation types is supported through the FoLiA paradigm.
GNU General Public License v3.0
110 stars 15 forks source link

[regression] Error upon submitting new metadata #155

Closed proycon closed 5 years ago

proycon commented 5 years ago

Upon adding a new metadata field and saving the result, FLAT says:

Editor submission failed: FoLiA Document Server error: The server encountered an unexpected condition which prevented it from fulfilling the request.

The query doesn't seem to make it to foliadocserve, FLAT returns a HTTP 403 with the above message.

proycon commented 5 years ago

Issue reproduces also with the current development builds of FLAT and foliadocserve:

[15/Aug/2019:17:08:58] HTTP 
Traceback (most recent call last):
  File "/data2/dev/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 628, in respond
    self._do_respond(path_info)
  File "/data2/dev/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 687, in _do_respond
    response.body = self.handler()
  File "/data2/dev/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/data2/dev/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/data2/dev/lib/python3.7/site-packages/foliadocserve/foliadocserve.py", line 633, in query
    if doc.metadatatype == folia.MetaDataType.NATIVE:
AttributeError: module 'folia.main' has no attribute 'MetaDataType'
proycon commented 5 years ago

Fixed in foliadocserve v0.7.1