URL: https://linuxfr.org/suivi/bug-non-identifie-conduisant-a-la-perte-du-markdown-sur-une-depeche-en-redaction Title: Bug non identifié conduisant à la perte du markdown sur une dépêche en rédaction Authors: Benoît Sibaud Date: 2020年12月13日T18:17:47+01:00 License: CC By-SA Tags: crowdsec Score: 0 Debug en cours... Une dépêche est créée en rédaction (en markdown donc). À un moment, le markdown est perdu. Il ne reste plus que la version HTML. On se retrouve avec l'interface utilisée pour les dépêches pré-2011 en HTML. La dépêche en question : https://linuxfr.org/redaction/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation Recherche d'éléments : - pas d'erreurs, pas de HTTP 500 - frise chronologique : dépêche soumise en markdown (_Révision no 1 - 13 décembre 2020 13:31:37_), "Réorganisation" par la modération, renvoi de l'HTML (_Révision no 2 - 13 décembre 2020 14:54:22_), puis correction par moi avec une insertion en base de données + le réimport du markdown (_Révision no 3 - 13 décembre 2020 15:21:39_) ``` 13:31:37.047624 #32655 Started POST "/news" for IP_AUTHOR at 2020年12月13日 13:31:37 +0100 13:31:37.050074 #32655 Processing by NewsController#create as HTML 13:31:37.050934 #32655 Parameters: {..., "news"=>{..., "wiki_body"=>"blabla_markdown_blabla", ..., "wiki_second_part"=>"", ...}, ..., "commit"=>"Soumettre cette dépêche"} 13:31:38.045980 #32655 Redirected to https://linuxfr.org/news 13:31:38.046231 #32655 Completed 302 Found in 995ms (ActiveRecord: 402.3ms) 14:54:08.016695 #32641 Started PUT "/redaction/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation/reorganized" for IP_MODERATION at 2020年12月13日 14:54:08 +0100 14:54:08.018736 #32641 Processing by Redaction::NewsController#reorganized as HTML 14:54:08.018890 #32641 Parameters: {..., "news"=>{..., "wiki_second_part"=>""}, "commit"=>"OK", "id"=>"sortie-de-crowdsec-1-0-tutoriel-d-utilisation"} 14:54:08.079937 #32641 Redirected to https://linuxfr.org/moderation/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation 14:54:08.080157 #32641 Completed 302 Found in 61ms (ActiveRecord: 43.1ms) 14:54:22.906764 #32646 Started PATCH "/moderation/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation" for IP_MODERATION at 2020年12月13日 14:54:22 +0100 14:54:22.907999 #32646 Processing by Moderation::NewsController#update as HTML 14:54:22.908841 #32646 Parameters: {..., "news"=>{..., "body"=>"blabla_HTML_blabla", "second_part"=>""}, "commit"=>"Enregistrer", "id"=>"sortie-de-crowdsec-1-0-tutoriel-d-utilisation"} 14:54:23.000361 #32646 Redirected to https://linuxfr.org/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation 14:54:23.003297 #32646 Completed 302 Found in 94ms (ActiveRecord: 69.7ms) 14:55:38.549768 #32641 Started PATCH "/moderation/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation" for IP_MODERATION at 2020年12月13日 14:55:38 +0100 14:55:38.551089 #32641 Processing by Moderation::NewsController#update as HTML 14:55:38.551929 #32641 Parameters: {..., "news"=>{..., "body"=>"blabla_HTML_blabla", "second_part"=>""}, "commit"=>"Enregistrer", "id"=>"sortie-de-crowdsec-1-0-tutoriel-d-utilisation"} 14:55:38.569811 #32641 Redirected to https://linuxfr.org/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation 14:55:38.572614 #32641 Completed 302 Found in 20ms (ActiveRecord: 3.7ms) 15:21:38.747523 #15071 Started PUT "/redaction/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation/reorganized" for IP_OUMPH at 2020年12月13日 15:21:38 +0100 15:21:38.748895 #15071 Processing by Redaction::NewsController#reorganized as HTML 15:21:38.749418 #15071 Parameters: {..., "news"=>{..., "wiki_body"=>"blabla_markdown_blabla", "wiki_second_part"=>""}, "commit"=>"OK", "id"=>"sortie-de-crowdsec-1-0-tutoriel-d-utilisation"} 15:21:39.867476 #15071 Redirected to https://linuxfr.org/moderation/news/sortie-de-crowdsec-1-0-tutoriel-d-utilisation 15:21:39.867717 #15071 Completed 302 Found in 1118ms (ActiveRecord: 272.6ms) ```

AltStyle によって変換されたページ (->オリジナル) /