UUDigitalHumanitieslab / GrETEL-upload

Upload treebanks for use in GrETEL
http://gretel.hum.uu.nl
MIT License
1 stars 0 forks source link

Consistent support for components with lengthy directory names #8

Closed oktaal closed 6 years ago

oktaal commented 7 years ago

Now components will be added to the Basex Server with the full name e.g. dpc-bal-001236-nl-sen, however they will be trimmed in the MySQL-database to 20 characters resulting in dpc-bal-001236-nl-se. Because the full length is used when saving the database in BaseX, but a trimmed name is used for accessing it, the database cannot be found and this results in an error.

[Wed Nov 08 11:20:08.221029 2017] [:error] [pid 19102:tid 140588036847360] [client 131.211.207.42:42040] FastCGI: server "/usr/lib/cgi-bin/fake-php5.fcgi" stderr: [bxerr:BXDB0002] Database 'LASSY-SMALL2_ID_DPC-CAM-001017-NL-SE' was not found.' in /hum/web/gretel.hum.uu.nl/htdocs/gretel3/basex-search-scripts/basex-client.php:185, referer: http://gretel.hum.uu.nl/gretel3/xps/tb-sel.php

oktaal commented 6 years ago

I manually changed the database columns on the gretel server to match the updated configuration. I didn't feel like adding a migration script because there is no other database yet to migrate anyway. When constructing the database from scratch the correct string lengths will be used.