-
Notifications
You must be signed in to change notification settings - Fork 27
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
Read only submission report content #5100
Read only submission report content #5100
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5100 +/- ##
=======================================
Coverage 96.73% 96.73%
=======================================
Files 775 775
Lines 26662 26666 +4
Branches 3468 3469 +1
=======================================
+ Hits 25792 25796 +4
Misses 608 608
Partials 262 262 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally I'd configure the PrivateMediaMixin
so that the files are not downloaded with inline
directives in the Content-Disposition
header. I think you should be able to get there with:
- https://django-privates.readthedocs.io/en/latest/reference.html#privates.admin.PrivateMediaMixin.get_private_media_view_options to pass
django-sendfile2
options to the underlying view. Should be achievable with theprivate_media_view_options
attribute on the admin class. - passing
attachment=True
to https://django-sendfile2.readthedocs.io/en/latest/django_sendfile.utils.html#django_sendfile.utils.sendfile
The sendfile
options are consumed here: https://github.com/sergei-maertens/django-privates/blob/27c7391ef82479f5d99fb6542647ab999b3ebd2a/privates/views.py#L38
Regarding the I assume the test findings were from a pre-2.8.0 environment. In the release of 2.8.0 the download link shown in the SDK was changed. From that point the correct |
8973645
to
4c00602
Compare
4c00602
to
ae3a4f6
Compare
I'll take a look at django-privates now for the readonly field :) |
…ttachment` headers to submission report When accessing submission reports from the admin, download them instead of opening in a new tab.
a78caef
to
e53e274
Compare
Closes open-formulieren/security-issues#34
Changes
The submission report content is now read-only in the admin
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Dockerfile/scripts
./bin
folderCommit hygiene