•  
      request #13562 fatal error in FRS tus upload
    Infos
    #13562
    Nicolas Terray (nterray)
    2019-06-28 16:56
    2019-06-28 16:56
    13770
    Details
    fatal error in FRS tus upload
    $ curl 'https://tuleap-web.tuleap-aio-dev.docker/uploads/frs/file/1' -H 'X-Auth-AccessKey: tlp-k1-7.2c3ba8187f202ec2a6962a9728f6ebebb9f5b3278ce563b66d9e77320f65f0fd' -H 'Tus-Resumable: 1.0.0' -k \
    -H 'Upload-Offset: 0' \
    -H 'Content-Type: application/offset+octet-stream' \
    -H 'Content-Length: 12' \
    -H 'X-Http-Method-Override: PATCH' \
    --data-binary "123456789012"
    $ curl 'https://tuleap-web.tuleap-aio-dev.docker/uploads/frs/file/1' -H 'X-Auth-AccessKey: tlp-k1-7.2c3ba8187f202ec2a6962a9728f6ebebb9f5b3278ce563b66d9e77320f65f0fd' -H 'Tus-Resumable: 1.0.0' -k \
    -H 'Upload-Offset: 0' \
    -H 'Content-Type: application/offset+octet-stream' \
    -H 'Content-Length: 12' \
    -H 'X-Http-Method-Override: PATCH' \
    --data-binary "123456789012"
    <br />
    <font size='1'><table class='xdebug-error xe-uncaught-exception' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
    <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Uncaught TypeError: Return value of Tuleap\FRS\Upload\FileOngoingUploadDao::searchFileOngoingUploadByIDUserIDAndExpirationDate() must be of the type array, null returned in /usr/share/tuleap/plugins/frs/include/FRS/Upload/FileOngoingUploadDao.php on line <i>68</i></th></tr>
    <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> TypeError: Return value of Tuleap\FRS\Upload\FileOngoingUploadDao::searchFileOngoingUploadByIDUserIDAndExpirationDate() must be of the type array, null returned in /usr/share/tuleap/plugins/frs/include/FRS/Upload/FileOngoingUploadDao.php on line <i>68</i></th></tr>
    <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
    <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
    <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0000</td><td bgcolor='#eeeeec' align='right'>397576</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/usr/share/tuleap/src/www/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>0</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0127</td><td bgcolor='#eeeeec' align='right'>2928808</td><td bgcolor='#eeeeec'>Tuleap\Request\FrontRouter->route( )</td><td title='/usr/share/tuleap/src/www/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>46</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0176</td><td bgcolor='#eeeeec' align='right'>3288944</td><td bgcolor='#eeeeec'>Tuleap\Request\FrontRouter->routeHandler( )</td><td title='/usr/share/tuleap/src/common/Request/FrontRouter.php' bgcolor='#eeeeec'>.../FrontRouter.php<b>:</b>103</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.0259</td><td bgcolor='#eeeeec' align='right'>3898216</td><td bgcolor='#eeeeec'>Tuleap\Upload\FileUploadController->process( )</td><td title='/usr/share/tuleap/src/common/Request/FrontRouter.php' bgcolor='#eeeeec'>.../FrontRouter.php<b>:</b>222</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.0274</td><td bgcolor='#eeeeec' align='right'>3927424</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\MiddlewareDispatcher->handle( )</td><td title='/usr/share/tuleap/src/common/Request/DispatchablePSR15Compatible.php' bgcolor='#eeeeec'>.../DispatchablePSR15Compatible.php<b>:</b>61</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.0274</td><td bgcolor='#eeeeec' align='right'>3927448</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\SessionWriteCloseMiddleware->process( )</td><td title='/usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>0.0274</td><td bgcolor='#eeeeec' align='right'>3927448</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\MiddlewareDispatcher->handle( )</td><td title='/usr/share/tuleap/src/common/Http/Server/SessionWriteCloseMiddleware.php' bgcolor='#eeeeec'>.../SessionWriteCloseMiddleware.php<b>:</b>35</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>8</td><td bgcolor='#eeeeec' align='center'>0.0274</td><td bgcolor='#eeeeec' align='right'>3927448</td><td bgcolor='#eeeeec'>Tuleap\REST\RESTCurrentUserMiddleware->process( )</td><td title='/usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>9</td><td bgcolor='#eeeeec' align='center'>0.0292</td><td bgcolor='#eeeeec' align='right'>4065304</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\MiddlewareDispatcher->handle( )</td><td title='/usr/share/tuleap/src/common/REST/RESTCurrentUserMiddleware.php' bgcolor='#eeeeec'>.../RESTCurrentUserMiddleware.php<b>:</b>59</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>10</td><td bgcolor='#eeeeec' align='center'>0.0292</td><td bgcolor='#eeeeec' align='right'>4065304</td><td bgcolor='#eeeeec'>Tuleap\REST\TuleapRESTCORSMiddleware->process( )</td><td title='/usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>11</td><td bgcolor='#eeeeec' align='center'>0.0292</td><td bgcolor='#eeeeec' align='right'>4065304</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\MiddlewareDispatcher->handle( )</td><td title='/usr/share/tuleap/src/common/REST/TuleapRESTCORSMiddleware.php' bgcolor='#eeeeec'>.../TuleapRESTCORSMiddleware.php<b>:</b>32</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>12</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065304</td><td bgcolor='#eeeeec'>Tuleap\Tus\TusCORSMiddleware->process( )</td><td title='/usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>13</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065304</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\MiddlewareDispatcher->handle( )</td><td title='/usr/share/tuleap/src/common/Tus/TusCORSMiddleware.php' bgcolor='#eeeeec'>.../TusCORSMiddleware.php<b>:</b>32</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>14</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065304</td><td bgcolor='#eeeeec'>Tuleap\Tus\TusRequestMethodOverride->process( )</td><td title='/usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>15</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065560</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\MiddlewareDispatcher->handle( )</td><td title='/usr/share/tuleap/src/common/Tus/TusRequestMethodOverride.php' bgcolor='#eeeeec'>.../TusRequestMethodOverride.php<b>:</b>64</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>16</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065560</td><td bgcolor='#eeeeec'>Tuleap\Http\Server\RequestHandlerAsMiddleware->process( )</td><td title='/usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>17</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065560</td><td bgcolor='#eeeeec'>Tuleap\Upload\FileUploadController->handle( )</td><td title='/usr/share/tuleap/src/common/Http/Server/RequestHandlerAsMiddleware.php' bgcolor='#eeeeec'>.../RequestHandlerAsMiddleware.php<b>:</b>44</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>18</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065560</td><td bgcolor='#eeeeec'>Tuleap\Tus\TusServer->handle( )</td><td title='/usr/share/tuleap/src/common/Upload/FileUploadController.php' bgcolor='#eeeeec'>.../FileUploadController.php<b>:</b>85</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>19</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065560</td><td bgcolor='#eeeeec'>Tuleap\FRS\Upload\Tus\FileBeingUploadedInformationProvider->getFileInformation( )</td><td title='/usr/share/tuleap/src/common/Tus/TusServer.php' bgcolor='#eeeeec'>.../TusServer.php<b>:</b>67</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>20</td><td bgcolor='#eeeeec' align='center'>0.0293</td><td bgcolor='#eeeeec' align='right'>4065560</td><td bgcolor='#eeeeec'>Tuleap\FRS\Upload\FileOngoingUploadDao->searchFileOngoingUploadByIDUserIDAndExpirationDate( )</td><td title='/usr/share/tuleap/plugins/frs/include/FRS/Upload/Tus/FileBeingUploadedInformationProvider.php' bgcolor='#eeeeec'>.../FileBeingUploadedInformationProvider.php<b>:</b>68</td></tr>
    </table></font>

    Empty
    Empty
    Empty
    Empty
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Empty
    References
    References list is empty