ms-fe1012 has been upgraded to bullseye, and the wmf/rewrite middleware doesn't work. 2 examples:
#working host ms-fe1011 (stretch) mvernon@ms-fe1011:~$ curl -o /dev/null -v -H "Host: upload.wikimedia.org" http://localhost/wikipedia/commons/thumb/2/2d/%E5%8F%B0%E7%81%A3%E7%BE%A4%E5%B1%B1%E6%97%97.svg/120px-%E5%8F%B0%E7%81%A3%E7%BE%A4%E5%B1%B1%E6%97%97.svg.png 2>&1 | grep '< HTTP' < HTTP/1.1 200 OK mvernon@ms-fe1011:~$ curl -o /tmp/foo -v -H "Host: upload.wikimedia.org" http://localhost//wikipedia/commons/thumb/2/23/Drapeau_fr_d%C3%A9partement_Morbihan.svg/188px-Drapeau_fr_d%C3%A9partement_Morbihan.svg.png 2>&1 | grep '< HTTP' < HTTP/1.1 200 OK # # Broken host ms-fe1012 (bullseye) mvernon@ms-fe1012:~$ curl -o /dev/null -v -H "Host: upload.wikimedia.org" http://localhost/wikipedia/commons/thumb/2/2d/%E5%8F%B0%E7%81%A3%E7%BE%A4%E5%B1%B1%E6%97%97.svg/120px-%E5%8F%B0%E7%81%A3%E7%BE%A4%E5%B1%B1%E6%97%97.svg.png 2>&1 | grep '< HTTP' < HTTP/1.1 500 Internal Error mvernon@ms-fe1012:~$ curl -o /tmp/foo -v -H "Host: upload.wikimedia.org" http://localhost//wikipedia/commons/thumb/2/23/Drapeau_fr_d%C3%A9partement_Morbihan.svg/188px-Drapeau_fr_d%C3%A9partement_Morbihan.svg.png 2>&1 | grep '< HTTP' < HTTP/1.1 400 Bad Request
Further, the test suite for the rewrite middleware fails in two ways - it doesn't detect this problem, and has two now-spurious failures that predate changing purging policies. Example from stretch host (behaviour on bullseye is the same):
mvernon@ms-fe1011:~$ python /usr/local/lib/python2.7/dist-packages/wmf/rewrite_integration_test.py ...FF.. ====================================================================== FAIL: test_purge_recreate_thumb (__main__.WMFRewriteTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/wmf/rewrite_integration_test.py", line 50, in test_purge_recreate_thumb self.assertEquals(r.status_code, 302) AssertionError: 403 != 302 ====================================================================== FAIL: test_purge_thumb (__main__.WMFRewriteTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/wmf/rewrite_integration_test.py", line 44, in test_purge_thumb self.assertEquals(r.status_code, 302) AssertionError: 403 != 302 ---------------------------------------------------------------------- Ran 7 tests in 0.124s FAILED (failures=2)