workspace icon indicating copy to clipboard operation
workspace copied to clipboard

IsSpaceAdminMiddleware::afterException() must not return NULL

Open donquixote opened this issue 2 years ago • 2 comments

Otherwise we get

TypeError: OC\AppFramework\Middleware\MiddlewareDispatcher::afterException(): Return value must be of type OCP\AppFramework\Http\Response, null returned

donquixote avatar Jan 27 '23 23:01 donquixote

FIX is here https://github.com/sergeng/workspace/commit/bac98d082058d25a763545c87f356d297e981184

sergeng avatar Jan 29 '23 06:01 sergeng

Hi @donquixote

I had already fixed this problem here : https://github.com/arawa/workspace/blob/a2061d043dfd19082cedc7cd4b59669e6d81e381/lib/Middleware/IsSpaceAdminMiddleware.php#L64

I return a JSONResponse with an empty array.

zak39 avatar Aug 03 '23 10:08 zak39