[Groonga-commit] groonga/gcs [master] Return validation error for DeleteDomain with invalid domain names

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 5 16:36:27 JST 2012


YUKI Hiroshi	2012-11-05 16:36:27 +0900 (Mon, 05 Nov 2012)

  New Revision: 768efc79ddbb1d59176bbb11d42c8a5acc9458c3
  https://github.com/groonga/gcs/commit/768efc79ddbb1d59176bbb11d42c8a5acc9458c3

  Log:
    Return validation error for DeleteDomain with invalid domain names

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

  Modified: lib/api/2011-02-01/configuration.js (+1 -1)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-05 16:36:11 +0900 (30f7a14)
+++ lib/api/2011-02-01/configuration.js    2012-11-05 16:36:27 +0900 (b87a978)
@@ -130,7 +130,7 @@ handlers.CreateDomain = function(context, request, response, config) {
 };
 
 handlers.DeleteDomain = function(context, request, response, config) {
-  var domain = new Domain(request.query.DomainName, context);
+  var domain = new Domain(request.query.DomainName || '', context);
   var result;
   if (domain.exists()) {
     domain.deleteSync();
-------------- next part --------------
HTML����������������������������...
Télécharger 



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