[Gestion des preuves] Erreur 500 sur dépôt

Created by: Michael Edlich

Connecté en admin puis connecté "en tant que" testmike (démoville)

J'obtiens une erreur 500 lors du dépot d'une preuve. Les droits sur /public sont OK.

Connecté avec l'utilisateur test mike en directe ça fonctionne. Mais connecté en tant que ca fonctionne plus. image

Reproductible en prod avec un autre compte.

Je n'arrive pas à reproduire sur la préprod.

Logs prod.log :

[2019-09-23 12:50:23] request.INFO: Matched route "registry_proof_create". {"route":"registry_proof_create","route_parameters":{"_route":"registry_proof_create","_controller":"App\Domain\Registry\Controller\ProofController:createAction"},"request_uri":"http://madis.soluris.fr/preuves/creer","method":"POST"} [] [2019-09-23 12:50:23] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken"} [] [2019-09-23 12:50:23] security.DEBUG: User was reloaded from a user provider. {"provider":"Symfony\Bridge\Doctrine\Security\User\EntityUserProvider","username":"f.febyen@demoville.soluris.fr","impersonator_username":"m.edlich@soluris.fr"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] php.INFO: User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class Knp\DictionaryBundle\Dictionary\SimpleDictionary is deprecated since version 2.2, to be removed in 3.0. Use Knp\DictionaryBundle\Dictionary\Simple instead. at /var/www/madis/vendor/knplabs/dictionary-bundle/src/Knp/DictionaryBundle/Dictionary/SimpleDictionary.php:21)"} [] [2019-09-23 12:50:23] request.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'App\Domain\Registry\Model\Proof#creator' that was not configured to cascade persist operations for entity: Michaël Edlich. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"})." at /var/www/madis/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 102 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'App\Domain\Registry\Model\Proof#creator' that was not configured to cascade persist operations for entity: Michaël Edlich. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). at /var/www/madis/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:102)"} [] [2019-09-23 12:50:23] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} []

Imported comments:

By Michael Edlich on 2019-09-30T13:02:06.673Z

closed

By Michael Edlich on 2019-09-30T13:02:06.232Z

ok

By Donovan Bourlard on 2019-09-23T14:59:36.334Z

mentioned in commit b774ed84

By Donovan Bourlard on 2019-09-23T14:55:21.449Z

mentioned in commit e7e378cb6caffefda4651656d567ce9dbc9d3256

By Michael Edlich on 2019-09-23T10:01:31.012Z

Exacte !

Signature mail

By Donovan Bourlard on 2019-09-23T09:52:32.921Z

Si j'ai bien compris, tu as fais "Se connecter en tant que" et ajouté une preuve ? Ce dernier ne fonctionne pas en prod ?

By Michael Edlich on 2019-09-23T09:38:06.446Z

changed milestone to %11