cinder/cinder
PranaliDeore a1bb185a1f Validate name and description string
If you pass name or description parameters with more than 255
characters to create and update apis of volume and snapshot
and create api of backup, then it returns 500 error code.

Added new method validate_name_and_description() in
cinder.api.openstack.wsgi.Controllera to validate string limit and
returned 400 if limit exceeds and also removing leading or trailing
whitespaces and string containing only whitespaces.

APIImpact
1. For all above APIs 400 response will be returned.
2. Earlier it was possible to pass only whitespaces or leading-trailing
   spaces to 'name' parameter.
   Now it will raise 400 error if only whitespaces are passed and will
   remove leading-trailing spaces if present in other cases.

Closes-Bug: 1454244
Change-Id: Iaf7159e816f69fd776a09828c3bc1d27fc9fdcdb
2015-08-10 01:31:02 -07:00
..
api Validate name and description string 2015-08-10 01:31:02 -07:00
backup Fix list comparison for empty list 2015-08-07 04:41:24 -07:00
brick Add deactivate step to extend_lv 2015-07-28 11:46:25 -07:00
cmd Merge "Fix multi-line docstrings to meet hacking rules" 2015-07-31 22:24:40 +00:00
common Add ability to override OpenStack privileged user auth url 2015-07-09 18:10:13 -04:00
compute Add ability to override OpenStack privileged user auth url 2015-07-09 18:10:13 -04:00
consistencygroup Clone CG 2015-07-28 17:45:19 -04:00
db Merge "Clone CG" 2015-08-04 15:25:21 +00:00
hacking Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
image Merge "Fix multi-line docstrings to meet hacking rules" 2015-07-31 22:24:40 +00:00
keymgr Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
locale Imported Translations from Transifex 2015-03-26 06:08:06 +00:00
objects Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
openstack Sync scheduler module from oslo-incubator 2015-08-06 04:29:11 +00:00
replication Use oslo.log instead of oslo-incubator 2015-03-11 21:45:04 -05:00
scheduler Sync scheduler module from oslo-incubator 2015-08-06 04:29:11 +00:00
testing
tests Validate name and description string 2015-08-10 01:31:02 -07:00
transfer Notify the transfer volume action in cinder 2015-07-07 17:14:34 +08:00
volume Merge "Fixing notify message of manage_existing flow" 2015-08-10 01:35:04 +00:00
zonemanager Brocade driver not parsing zone data correctly 2015-05-26 14:42:12 +08:00
__init__.py
context.py Add Cinder internal tenant support 2015-07-23 14:46:53 +00:00
exception.py Merge "Fix volume limit exceeded exception" 2015-08-10 01:04:21 +00:00
flow_utils.py Refactoring of manager's create_volume flow 2015-07-24 11:19:09 +02:00
i18n.py Change leftover oslo.* to oslo_* 2015-03-23 19:52:42 +00:00
manager.py Switch to oslo.service 2015-06-24 21:55:32 +02:00
policy.py Switch to oslo.policy 0.3.0 2015-06-16 22:03:09 +03:00
quota_utils.py Logging not using oslo.i18n guidelines 2015-03-19 12:28:12 -05:00
quota.py Merge "Fix get default quota values for subprojects" 2015-08-03 20:36:34 +00:00
rpc.py Move oslo.messaging to the oslo_messaging namespace 2015-03-03 09:21:25 -06:00
service.py sqlalchemy exception kills FixedIntervalLoopingCall thread 2015-07-30 16:17:17 +00:00
ssh_utils.py Fix Python 3 issues in utils 2015-06-15 10:29:22 +02:00
test.py Remove unit test migration logging 2015-08-06 16:46:27 -05:00
utils.py Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
version.py
wsgi.py Switch to oslo.service 2015-06-24 21:55:32 +02:00