Track non-existing session in otpoll
This commit is contained in:
parent
cb6dccfab2
commit
9bfc7e5058
@ -45,7 +45,15 @@ try{
|
|||||||
|
|
||||||
$session = new Db_Session();
|
$session = new Db_Session();
|
||||||
$sessionData = $session->load($esId)->getData();
|
$sessionData = $session->load($esId)->getData();
|
||||||
|
|
||||||
|
try {
|
||||||
$file = new File(@$sessionData['file_id']);
|
$file = new File(@$sessionData['file_id']);
|
||||||
|
} catch (\Exception $e){
|
||||||
|
Helper::warnLog('Error. Session no longer exists. ' . $e->getMessage());
|
||||||
|
$ex = new BadRequestException();
|
||||||
|
$ex->setBody("{err:'bad request: [" . $request->getRawRequest() . "]'}");
|
||||||
|
throw $ex;
|
||||||
|
}
|
||||||
if (!$file->isPublicShare()){
|
if (!$file->isPublicShare()){
|
||||||
Controller::preDispatch(false);
|
Controller::preDispatch(false);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user