aces / Loris

LORIS is a web-accessible database solution for longitudinal multi-site studies.
GNU General Public License v3.0
145 stars 173 forks source link

[DQT] Cannot save a query with a space in the query name #8174

Closed laemtl closed 1 year ago

laemtl commented 2 years ago

On LORIS v23, attempting to save a query with a name containing a space gives a 500 error:

PHP Fatal error:  Uncaught LorisException: Decoded JSON data returned null. Cannot continue. in
/var/www/Loris/php/libraries/CouchDB.class.inc:542\nStack trace:\n#0
/var/www/Loris/modules/dataquery/ajax/saveQuery.php(44): CouchDB->getDoc()\n#1
/var/www/Loris/htdocs/AjaxHelper.php(112): require('/var/www/Loris/...')\n#2 {main}\n  thrown in
/var/www/Loris/php/libraries/CouchDB.class.inc on line 542, referer: https://inhance.loris.ca/dataquery/

If this is expected, the user should be notified to not use spaces on the save panel.

ridz1208 commented 1 year ago

@laemtl can you check if this happens on 24.1 ?

laemtl commented 1 year ago

It's not happening in the new DQT, so we can close this issue.