janus-ssp / janus

Fully featured metadata registration administration module built on top of simpleSAMLphp.
Other
13 stars 8 forks source link

Unhandled exception when logging in with an unprivileged user #419

Closed baszoetekouw closed 10 years ago

baszoetekouw commented 10 years ago

With a fresh JANUS (commit d7660f53484cf02a22d3cf342cac3cea9851da30), I get the following exception when logging in with a fresh, unprivileged (non-admin) user:

SimpleSAML_Error_Error: UNHANDLEDEXCEPTION Backtrace: 0 /opt/www/OpenConext-serviceregistry/vendor/simplesamlphp/simplesamlphp/www/module.php:180 (N/A) Caused by: Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col 218 near 'user LIKE :userId': Error: Invalid PathExpression. Must be a StateFieldPathExpression. Backtrace: 13 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:63 (Doctrine\ORM\Query\QueryException::semanticalError) 12 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:483 (Doctrine\ORM\Query\Parser::semanticalError) 11 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:800 (Doctrine\ORM\Query\Parser::processDeferredPathExpressions) 10 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:279 (Doctrine\ORM\Query\Parser::getAST) 9 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:351 (Doctrine\ORM\Query\Parser::parse) 8 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:255 (Doctrine\ORM\Query::parse) 7 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:267 (Doctrine\ORM\Query::doExecute) 6 /opt/www/OpenConext-serviceregistry/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:794 (Doctrine\ORM\AbstractQuery::execute) 5 /opt/www/OpenConext-serviceregistry/vendor/janus-ssp/janus/src/Janus/ServiceRegistry/Service/ConnectionService.php:235 (Janus\ServiceRegistry\Service\ConnectionService::load) 4 /opt/www/OpenConext-serviceregistry/vendor/janus-ssp/janus/lib/UserController.php:128 (sspmod_janus_UserController::loadEntities) 3 /opt/www/OpenConext-serviceregistry/vendor/janus-ssp/janus/lib/UserController.php:164 (sspmodjanus_UserController::getEntities) 2 /opt/www/OpenConext-serviceregistry/vendor/janus-ssp/janus/www/dashboard/connections.php:19 (require) 1 /opt/www/OpenConext-serviceregistry/vendor/janus-ssp/janus/www/dashboard.php:315 (require) 0 /opt/www/OpenConext-serviceregistry/vendor/simplesamlphp/simplesamlphp/www/module.php:135 (N/A)

relaxnow commented 10 years ago

Fixed