Merge "Force error instantiation"
This commit is contained in:
		@@ -72,7 +72,7 @@ def get_acl(headers, body, bucket_owner, object_owner=None):
 | 
				
			|||||||
    else:
 | 
					    else:
 | 
				
			||||||
        if body:
 | 
					        if body:
 | 
				
			||||||
            # Specifying grant with both header and xml is not allowed.
 | 
					            # Specifying grant with both header and xml is not allowed.
 | 
				
			||||||
            raise UnexpectedContent
 | 
					            raise UnexpectedContent()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return acl
 | 
					    return acl
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -152,7 +152,7 @@ class Request(swob.Request):
 | 
				
			|||||||
                raise AccessDenied()
 | 
					                raise AccessDenied()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if 'Authorization' not in self.headers:
 | 
					        if 'Authorization' not in self.headers:
 | 
				
			||||||
            raise NotS3Request
 | 
					            raise NotS3Request()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            keyword, info = self.headers['Authorization'].split(' ', 1)
 | 
					            keyword, info = self.headers['Authorization'].split(' ', 1)
 | 
				
			||||||
@@ -160,7 +160,7 @@ class Request(swob.Request):
 | 
				
			|||||||
            raise AccessDenied()
 | 
					            raise AccessDenied()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if keyword != 'AWS':
 | 
					        if keyword != 'AWS':
 | 
				
			||||||
            raise NotS3Request
 | 
					            raise NotS3Request()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            access_key, signature = info.rsplit(':', 1)
 | 
					            access_key, signature = info.rsplit(':', 1)
 | 
				
			||||||
@@ -663,7 +663,7 @@ class Request(swob.Request):
 | 
				
			|||||||
                if not isinstance(value, int):
 | 
					                if not isinstance(value, int):
 | 
				
			||||||
                    # check the instance because int() could build
 | 
					                    # check the instance because int() could build
 | 
				
			||||||
                    # a long instance
 | 
					                    # a long instance
 | 
				
			||||||
                    raise ValueError
 | 
					                    raise ValueError()
 | 
				
			||||||
            except ValueError:
 | 
					            except ValueError:
 | 
				
			||||||
                err_msg = 'Provided %s not an integer or within ' \
 | 
					                err_msg = 'Provided %s not an integer or within ' \
 | 
				
			||||||
                          'integer range' % param
 | 
					                          'integer range' % param
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user