Closed schlos closed 3 years ago
Same as upstream issue: https://github.com/mysociety/alaveteli/issues/4064
Still reproducible. Alaveteli 0.33.0.0
Fix merged into 0.38.0.0: https://github.com/mysociety/alaveteli/releases/tag/0.38.0.0
Reproducible on 19-Jun-2021:
An Encoding::CompatibilityError occurred in request#get_attachment_as_html:
incompatible character encodings: UTF-8 and ASCII-8BIT
app/models/censor_rule.rb:54:in `gsub'
-------------------------------
Request:
-------------------------------
* URL : http://imamopravoznati.org/request/6272/response/7569/attach/html/4/Plan%20gospodarenja%20otpadom%20opcina%20Gradiste.pdf.html
* HTTP Method: GET
* IP address : [censorsed]
* Parameters : {"controller"=>"request", "action"=>"get_attachment_as_html", "id"=>"6272", "incoming_message_id"=>"7569", "part"=>"4", "file_name"=>"Plan gospodarenja otpadom opcina Gradiste.pdf.html"}
* Timestamp : 2021-06-19 04:17:22 +0200
* Server : imamopravoznati.org
* Rails root : /data/www/imamopravoznati.org/alaveteli
* Process: 101521
Not reproducible anymore on latest SW:
"alaveteli_git_commit": "7618a519c26758ad1b7ef242386a1a87c860f968", "alaveteli_version": "0.39.1.3", "ruby_version": "2.5.1",
Actual behavior
Version
http://imamopravoznati.org/version.json
Steps to reproduce
Expected behavior