YUKI Hiroshi
null+****@clear*****
Fri Nov 16 17:44:46 JST 2012
YUKI Hiroshi 2012-11-16 17:44:46 +0900 (Fri, 16 Nov 2012) New Revision: e475d4abb883460d5e9f12c446467082618da35e https://github.com/groonga/gcs/commit/e475d4abb883460d5e9f12c446467082618da35e Log: Report error when no domain is specified to DeleteIndex action Modified files: lib/api/2011-02-01/configuration.js Modified: lib/api/2011-02-01/configuration.js (+2 -0) =================================================================== --- lib/api/2011-02-01/configuration.js 2012-11-16 17:38:00 +0900 (7f4ce30) +++ lib/api/2011-02-01/configuration.js 2012-11-16 17:44:46 +0900 (20dfff9) @@ -364,6 +364,8 @@ handlers.DeleteIndexField = function(context, request, response, config) { var domain = handleDomanValidationError(function() { return new Domain(request.query.DomainName || '', context); }); + if (!domain || !domain.exists()) + throw new errors.NotFoundError('Domain not found: ' + domainName); var fieldName = request.query['IndexFieldName'] || ''; var field = handleIndexFieldValidationError(function() { -------------- next part -------------- HTML����������������������������... Télécharger