This fixes the rendering of textual contents when using Django >= 2.x.
The issue was spotted thanks to the cypress tests (see https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress/431/console).
Depends on D2529
Differential D2530
Decode textual content from utf-8 before displaying it anlambert on Jan 14 2020, 5:50 PM. Authored by
Details
This fixes the rendering of textual contents when using Django >= 2.x. The issue was spotted thanks to the cypress tests (see https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress/431/console). Depends on D2529
Diff Detail
Event TimelineComment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/882/ Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/490/ Comment Actions Tests are now failing since the release of swh-storage 0.0.163 because of that breaking API change (rDSTO024eaea78b8075bcf75a3eda34fa43f4fc5f3672). I will fix them tomorrow. Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/884/ Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/492/
Comment Actions Update:
Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/885/ Comment Actions Build is green Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/888/
Comment Actions Build is green Comment Actions Accepting in so far as my concerns have been handled.
I see. Ideally this would convert to a unicode string rather than dump stuff back to bytes again (to end up converting it once more when rendering) but I understand that would make handling of the return value a bit harder. Comment Actions Build is green Comment Actions Build is green |