[Groonga-commit] groonga/gcs [master] Validate domain name for DescribeIndexFields

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 21 19:27:00 JST 2012


YUKI Hiroshi	2012-11-21 19:27:00 +0900 (Wed, 21 Nov 2012)

  New Revision: 7efea3ddb145540120c036fe3fc12dd31946f90a
  https://github.com/groonga/gcs/commit/7efea3ddb145540120c036fe3fc12dd31946f90a

  Log:
    Validate domain name for DescribeIndexFields

  Modified files:
    lib/api/2011-02-01/configuration.js

  Modified: lib/api/2011-02-01/configuration.js (+3 -1)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-21 19:22:59 +0900 (0a650d4)
+++ lib/api/2011-02-01/configuration.js    2012-11-21 19:27:00 +0900 (d39d3f2)
@@ -418,7 +418,9 @@ function createIndexFields(fields) {
 }
 
 handlers.DescribeIndexFields = function(context, request, response, config) {
-  var domain = new Domain(request.query.DomainName, context);
+  var domain = handleDomanValidationError(function() {
+        return new Domain(request.query.DomainName, context);
+      });
 
   var keys = Object.keys(request.query).filter(function(key) {
         return /^FieldNames\.member\.\d+$/.test(key);
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index