Impossible d'ajouter un tag à un logiciel
Erreur: Quelque chose s'est mal passé de notre côté, on y travaille :)
Contenu du error.log
:
2018-08-14 16:17:26 Error: [PDOException] SQLSTATE[23502] Not null violation: 7 ERROR: null value in column "id" violates not-null constraint
DETAIL: Failing row contains (null, 162, 11).
Request URL: /softwares/edit/162
Referer URL: https://www.comptoir-du-libre.org/softwares/edit/162
Client IP: 109.190.216.28
Stack Trace:
#0 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Database/Statement/StatementDecorator.php(172): PDOStatement->execute(NULL)
#1 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Database/Connection.php(276): Cake\Database\Statement\StatementDecorator->execute()
#2 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Database/Query.php(190): Cake\Database\Connection->run(Object(Cake\ORM\Query))
#3 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1669): Cake\Database\Query->execute()
#4 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1563): Cake\ORM\Table->_insert(Object(App\Model\Entity\SoftwaresTag), Array)
#5 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1491): Cake\ORM\Table->_processSave(Object(App\Model\Entity\SoftwaresTag), Object(ArrayObject))
#6 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Database/Connection.php(570): Cake\ORM\Table->Cake\ORM\{closure}(Object(Cake\Database\Connection))
#7 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1492): Cake\Database\Connection->transactional(Object(Closure))
#8 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php(701): Cake\ORM\Table->save(Object(App\Model\Entity\SoftwaresTag), Object(ArrayObject))
#9 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php(650): Cake\ORM\Association\BelongsToMany->_saveLinks(Object(App\Model\Entity\Software), Array, Array)
#10 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php(1052): Cake\ORM\Association\BelongsToMany->_saveTarget(Object(App\Model\Entity\Software), Array, Array)
#11 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Database/Connection.php(570): Cake\ORM\Association\BelongsToMany->Cake\ORM\Association\{closure}(Object(Cake\Database\Connection))
#12 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php(1071): Cake\Database\Connection->transactional(Object(Closure))
#13 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php(584): Cake\ORM\Association\BelongsToMany->replaceLinks(Object(App\Model\Entity\Software), Array, Array)
#14 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/AssociationCollection.php(260): Cake\ORM\Association\BelongsToMany->saveAssociated(Object(App\Model\Entity\Software), Array)
#15 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/AssociationCollection.php(234): Cake\ORM\AssociationCollection->_save(Object(Cake\ORM\Association\BelongsToMany), Object(App\Model\Entity\Software), Array, Array)
#16 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/AssociationCollection.php(199): Cake\ORM\AssociationCollection->_saveAssociations(Object(App\Model\Table\SoftwaresTable), Object(App\Model\Entity\Software), Array, Array, true)
#17 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1596): Cake\ORM\AssociationCollection->saveChildren(Object(App\Model\Table\SoftwaresTable), Object(App\Model\Entity\Software), Array, Array)
#18 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1569): Cake\ORM\Table->_onSaveSuccess(Object(App\Model\Entity\Software), Object(ArrayObject))
#19 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1491): Cake\ORM\Table->_processSave(Object(App\Model\Entity\Software), Object(ArrayObject))
#20 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Database/Connection.php(570): Cake\ORM\Table->Cake\ORM\{closure}(Object(Cake\Database\Connection))
#21 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/ORM/Table.php(1492): Cake\Database\Connection->transactional(Object(Closure))
#22 /home/comptoir/Comptoir-srv/src/Controller/Api/V1/SoftwaresController.php(354): Cake\ORM\Table->save(Object(App\Model\Entity\Software))
#23 [internal function]: App\Controller\Api\V1\SoftwaresController->edit('162')
#24 /home/comptoir/Comptoir-srv/vendor/friendsofcake/crud/src/Controller/ControllerTrait.php(51): call_user_func_array(Array, Array)
#25 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(121): App\Controller\AppController->invokeAction()
#26 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(95): Cake\Http\ActionDispatcher->_invoke(Object(App\Controller\Api\V1\SoftwaresController))
#27 /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(60): Cake\Http\ActionDispatcher->dispatch(Object(Cake\Network\Request), Object(Cake\Network\Response))
#28 /home/comptoir/Comptoir-srv/webroot/index.php(36): Cake\Routing\Dispatcher->dispatch(Object(Cake\Network\Request), Object(Cake\Network\Response))
#29 {main}
Pour le moment, je n'arrive pas à reproduire le bug en Docker-local :(
Visible en v2.4.8 (en prod au 16/08/18)
Edited by Matthieu FAURE