URL: https://linuxfr.org/suivi/http-500-sur-une-edition-de-paragraphe Title: HTTP 500 sur une édition de paragraphe Authors: Benoît Sibaud Date: 2016年11月06日T15:28:35+01:00 License: CC By-SA Tags: Score: 0 Constaté trois fois en prod les 5 et 6 novembre lors d'édition sur une dépêche C++. Reproduit sur alpha, en éditant et remplaçant un paragraphe par la chaîne visible plus bas (wiki_body) : ``` I, [2016年11月06日T15:22:53.315546 #28240] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "paragraph"=>{"wiki_body"=>"```c\r\n\r\na\r\n``` \r\n"}, "id"=>"482"} F, [2016年11月06日T15:22:53.356544 #28240] FATAL -- : NoMethodError (undefined method `replace' for nil:NilClass): lib/ar_base_ext.rb:47:in `wikify' app/models/paragraph.rb:101:in `wikify_body' app/models/paragraph.rb:90:in `update_by' app/controllers/redaction/paragraphs_controller.rb:33:in `update' ```