You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/elasticsearch/src/main/java/org/elasticsearch/http/action/admin/indices/create/HttpCreateIndexAction.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ public class HttpCreateIndexAction extends BaseHttpServerHandler {
85
85
try {
86
86
Throwablet = unwrapCause(e);
87
87
if (tinstanceofIndexAlreadyExistsException || tinstanceofInvalidIndexNameException) {
Copy file name to clipboardExpand all lines: modules/elasticsearch/src/main/java/org/elasticsearch/http/action/admin/indices/delete/HttpDeleteIndexAction.java
Copy file name to clipboardExpand all lines: modules/elasticsearch/src/main/java/org/elasticsearch/http/action/admin/indices/mapping/create/HttpCreateMappingAction.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ public class HttpCreateMappingAction extends BaseHttpServerHandler {
69
69
try {
70
70
Throwablet = unwrapCause(e);
71
71
if (tinstanceofIndexMissingException || tinstanceofInvalidTypeNameException) {
Copy file name to clipboardExpand all lines: modules/elasticsearch/src/main/java/org/elasticsearch/http/action/deletebyquery/HttpDeleteByQueryAction.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ public class HttpDeleteByQueryAction extends BaseHttpServerHandler {
Copy file name to clipboardExpand all lines: modules/elasticsearch/src/main/java/org/elasticsearch/http/action/index/HttpIndexAction.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ public class HttpIndexAction extends BaseHttpServerHandler {
56
56
indexRequest.opType(IndexRequest.OpType.CREATE);
57
57
} else {
58
58
try {
59
-
channel.sendResponse(newJsonHttpResponse(request, BAD_REQUEST, JsonBuilder.cached().startObject().field("error", "opType [" + sOpType + "] not allowed, either [index] or [create] are allowed").endObject()));
59
+
channel.sendResponse(newJsonHttpResponse(request, BAD_REQUEST, JsonBuilder.jsonBuilder().startObject().field("error", "opType [" + sOpType + "] not allowed, either [index] or [create] are allowed").endObject()));
0 commit comments