~ubuntu-branches/ubuntu/quantal/nova/quantal-security

« back to all changes in this revision

Viewing changes to nova/api/openstack/compute/contrib/security_groups.py

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2013-10-21 15:48:27 UTC
  • mfrom: (94.1.6 quantal-proposed)
  • Revision ID: package-import@ubuntu.com-20131021154827-2rqxw7uhjgnknxxa
Tags: 2012.2.4-0ubuntu3.1
* SECURITY UPDATE: properly honor the is_public flag
  - debian/patches/CVE-2013-2256.patch, CVE-2013-4278.patch: add enforcement
    of is_public in the db layer (LP: #1194093, LP: #1212179)
  - CVE-2013-2256, CVE-2013-4278
* SECURITY UPDATE: denial of service with network security group policy
  updates
  - debian/patches/CVE-2013-4185.patch: use cached nwinfo for secgroup rules
    (LP: #1184041)
  - CVE-2013-4185

Show diffs side-by-side

added added

removed removed

Lines of Context:
388
388
        try:
389
389
            instance = self.compute_api.get(context, server_id)
390
390
        except exception.InstanceNotFound as exp:
391
 
            raise exc.HTTPNotFound(explanation=unicode(exp))
 
391
            raise exc.HTTPNotFound(explanation=exp.format_message())
392
392
 
393
393
        groups = db.security_group_get_by_instance(context, instance['id'])
394
394
 
429
429
            instance = self.compute_api.get(context, id)
430
430
            method(context, instance, group_name)
431
431
        except exception.SecurityGroupNotFound as exp:
432
 
            raise exc.HTTPNotFound(explanation=unicode(exp))
 
432
            raise exc.HTTPNotFound(explanation=exp.format_message())
433
433
        except exception.InstanceNotFound as exp:
434
 
            raise exc.HTTPNotFound(explanation=unicode(exp))
 
434
            raise exc.HTTPNotFound(explanation=exp.format_message())
435
435
        except exception.Invalid as exp:
436
 
            raise exc.HTTPBadRequest(explanation=unicode(exp))
 
436
            raise exc.HTTPBadRequest(explanation=exp.format_message())
437
437
 
438
438
        return webob.Response(status_int=202)
439
439