•  
      request #28824 FRS check on version name already exists throw a fatal error
    Infos
    #28824
    Marie Ange Garnier (marieange)
    2022-09-16 18:01
    2022-09-14 10:28
    30383
    Details
    FRS check on version name already exists throw a fatal error

    How to reproduce: In frs service try to submit a new release with a name who already exists for the package

    A fatal error is thrown

    <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: count(): Argument #1 ($value) must be of type Countable|array, string given in /usr/share/tuleap/src/common/FRS/FRSValidator.php on line <i>60</i></th></tr>
    <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /usr/share/tuleap/src/common/FRS/FRSValidator.php on line <i>60</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.0005</td><td bgcolor='#eeeeec' align='right'>366640</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/usr/share/tuleap/src/www/file/admin/frsajax.php' bgcolor='#eeeeec'>.../frsajax.php<b>:</b>0</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0379</td><td bgcolor='#eeeeec' align='right'>3477160</td><td bgcolor='#eeeeec'>Tuleap\FRS\FRSValidator->isValidForCreation( <span>$release = </span><span>[&#39;name&#39; =&gt; &#39;A&#39;, &#39;package_id&#39; =&gt; &#39;54&#39;, &#39;date&#39; =&gt; &#39;2022-09-14&#39;]</span>, <span>$group_id = </span><span>139</span> )</td><td title='/usr/share/tuleap/src/www/file/admin/frsajax.php' bgcolor='#eeeeec'>.../frsajax.php<b>:</b>105</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0399</td><td bgcolor='#eeeeec' align='right'>3489560</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.count' target='_new'>count</a>( <span>$value = </span><span>&#39;2&#39;</span> )</td><td title='/usr/share/tuleap/src/common/FRS/FRSValidator.php' bgcolor='#eeeeec'>.../FRSValidator.php<b>:</b>60</td></tr>
    </table></font>
    
    Delivery/File release system
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Marie Ange Garnier (marieange)
    Closed
    2022-09-16
    Attachments
    Empty
    References

    Follow-ups