Fix issue creating NGT using dashboard

Since Django 1.10 a new property DATA_UPLOAD_MAX_NUMBER_FIELDS causes some
plugins to fail during NGT creation. This patch adds a file to override
this property for sahara dashboard.

Depends-On: Id4d15b8bd5f032ff457395af5d77b255b6077a2a
Change-Id: I29ec88d7c733d4a977867dc24e13eb8e98fbcc48
Closes-bug: #1714575
Co-Authored-By: ArchiFleKs <lefevre.kevin@gmail.com>
This commit is contained in:
Telles Nobrega 2017-09-01 17:57:39 -03:00 committed by ArchiFleKs
parent 450edfaf37
commit 841f0a26f4
3 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,7 @@ function install_sahara_dashboard {
function configure_sahara_dashboard {
cp -a ${SAHARA_DASH_DIR}/sahara_dashboard/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
cp -a ${SAHARA_DASH_DIR}/sahara_dashboard/local_settings.d/* ${DEST}/horizon/openstack_dashboard/local/local_settings.d/
# NOTE: If locale directory does not exist, compilemessages will fail,
# so check for an existence of locale directory is required.
if [ -d ${SAHARA_DASH_DIR}/sahara_dashboard/locale ]; then

View File

@ -0,0 +1,7 @@
---
security:
- |
Django 1.10 introduced a new var : DATA_UPLOAD_MAX_NUMBER_FIELDS which
prevent DOS on data received via GET and POST methods. Default values
is set to 2000 instead of upstream default of 1000 to keep the security
feature and to not cause issue with the Sahara Dashboard forms.

View File

@ -0,0 +1,2 @@
# toggle DATA_UPLOAD_MAX_NUMBER_FIELDS
DATA_UPLOAD_MAX_NUMBER_FIELDS = 2000