Creating a card with an image and a plus-card with a non-latin title fails
Support Ticket
Creating a card with an image and a plus-card with a non-latin title fails+status
acknowledged
Creating a card with an image and a plus-card with a non-latin title fails+tags
Creating a card with an image and a plus-card with a non-latin title fails+issues
I have a custom cardtype "screenshot", which has a plus-card "+изображение" (Russian for "image") in it. Whenever I try to create a card of this type and attach an image, Wagn fails with an error 500 and the following log message:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VKdqWKh5PeaXPlWCFbgmfulzwpzRW8WL/ZpTB9TFyRU=", "success"=>"REDIRECT: _self", "card"=>{"name"=>"Скриншот 1", "type_id"=>"882", "cards"=>{"~plus~\xD0\x9F\xD1\x80\xD0\xBE\xD0\xB5\xD0\xBA\xD1\x82"=>{"content"=>"Clients from hell", "type_id"=>"47"}, "~plus~\xD0\x98\xD0\xB7\xD0\xBE\xD0\xB1\xD1\x80\xD0\xB0\xD0\xB6\xD0\xB5\xD0\xBD\xD0\xB8\xD0\xB5"=>{"type_id"=>"19", "content"=>"CHOSEN", "attach"=>#>}}}, "pointer_item"=>"Clients from hell", "main"=>"", "is_main"=>"true", "slot"=>{"home_view"=>"new", "include"=>"_main", "include_name"=>"_main", "name_context"=>""}} setting content for Скриншот 1: () Card(#<Card#914##40956720[no code:882](Скриншот 1){I:nil}>)#set_initial_content start setting content for Скриншот 1: (914) set_initial_content , , s.6737 #<Card#914##40956720[no code:882](Скриншот 1){I:nil}> exception = Encoding::UndefinedConversionError: "\xD0" from ASCII-8BIT to UTF-8
When I try to create the card without uploading an image, it goes as expected:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VKdqWKh5PeaXPlWCFbgmfulzwpzRW8WL/ZpTB9TFyRU=", "success"=>"REDIRECT: _self", "card"=>{"name"=>"1", "type_id"=>"882", "cards"=>{"~plus~Проект"=>{"content"=>"", "type_id"=>"47"}, "~plus~Изображение"=>{"type_id"=>"19"}}}, "pointer_item"=>"", "commit"=>"Submit", "main"=>"", "is_main"=>"true", "slot"=>{"home_view"=>"new", "include"=>"_main", "include_name"=>"_main", "name_context"=>""}}
It looks like having an image uploaded with a card triggers some kind of unicode escaping.