Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journalist Interface template files not included in apparmor config #5086

Closed
zenmonkeykstop opened this issue Jan 3, 2020 · 0 comments · Fixed by #5088
Closed

Journalist Interface template files not included in apparmor config #5086

zenmonkeykstop opened this issue Jan 3, 2020 · 0 comments · Fixed by #5088

Comments

@zenmonkeykstop
Copy link
Contributor

Description

The files:

/var/www/securedrop/journalist_templates/error.html
/var/www/securedrop/journalist_templates/submission_preferences_saved_flash.html

are used by the JI, but are not in /etc/apparmor.d/usr.sbin.apache2. This causes apparmor DENIED events and 500 errors in the web application instead of the desired error statuses in the case of the first file.

Steps to Reproduce

  • on a production system, log into the JI and attempt to update the submission preferences setting
  • on a production system, log into the JI and cause a 404 (by replacing the url path part with, eg, /imapotato)

Expected Behavior

  • submission prefs updated, with message
  • 404 page

Actual Behavior

  • submission prefs updated, generic 500 error
  • generic 500 error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant