Add DEP8 tests (suggestion included)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat9 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
While fixing a mod_proxy_ajp issue in apache, I had to come up with a test for it. Turns out that test could be easily transformed into a DEP8 test. The MP was https:/
sudo apt install tomcat9 apache2 tomcat9-examples
sudo a2enmod proxy_ajp
# edit /etc/apache2/
ProxyPass "/examples" "ajp://
sudo systemctl restart apache2
# edit /etc/tomcat9/
<Connector protocol="AJP/1.3"
# if we didn't add a secret to the connector configuration, tomcat9 would fail to start it, because a secret is mandatory by default since 9.0.13.
# restart tomcat9
sudo systemctl restart tomcat9
# Let's confirm tomcat9 is working
curl http://
# And the examples page which is what we will proxy through apache later:
curl http://
# we want to access that via apache, but it won't work now because we didn't configure the same secret on apache's side. You will get back a nasty 403:
curl http://
<!doctype html><html lang="en"
# now let's add the secret keyword to apache's /etc/apache2/
ProxyPass "/examples" "ajp://
# apache2 will fail to restart, as it doesn't understand the "secret" parameter
sudo systemctl restart apache2
# update to the apache packages from the ppa
sudo add-apt-repository ppa:ahasenack/
sudo apt install apache2 -y
# Try the examples page via apache again, and this time we get the examples through apache
curl http://
summary: |
- Add DEP8 tests + Add DEP8 tests (suggestion included) |