Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 8c3459c

Browse files
authored
Revert Elasticsearch 7.10 changes and Updated version to '1.11.1.0' (#14)
* Revert "upgrade for Elasticsearch 7.10.0 (#10)" This reverts commit 71a6b49 * Updated version to '1.11.1.0'
1 parent d8324eb commit 8c3459c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
buildscript {
1717
ext {
1818
es_group = "org.elasticsearch"
19-
es_version = '7.10.0'
20-
opendistroVersion = '1.12.0'
19+
es_version = '7.9.1'
20+
opendistroVersion = '1.11.1'
2121
}
2222

2323
repositories {
@@ -48,7 +48,7 @@ group 'com.amazon.opendistroforelasticsearch.commons'
4848

4949
sourceCompatibility = 1.8
5050

51-
version = "${opendistroVersion}.2"
51+
version = "${opendistroVersion}.0"
5252

5353
apply plugin: 'java'
5454
apply plugin: 'jacoco'

src/main/java/com/amazon/opendistroforelasticsearch/commons/authuser/User.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static User parse(XContentParser parser) throws IOException {
126126
List<String> customAttNames = new ArrayList<>();
127127
String requestedTenant = null;
128128

129-
ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.currentToken(), parser);
129+
ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.currentToken(), parser::getTokenLocation);
130130
while (parser.nextToken() != XContentParser.Token.END_OBJECT) {
131131
String fieldName = parser.currentName();
132132
parser.nextToken();
@@ -135,19 +135,19 @@ public static User parse(XContentParser parser) throws IOException {
135135
name = parser.text();
136136
break;
137137
case BACKEND_ROLES_FIELD:
138-
ensureExpectedToken(XContentParser.Token.START_ARRAY, parser.currentToken(), parser);
138+
ensureExpectedToken(XContentParser.Token.START_ARRAY, parser.currentToken(), parser::getTokenLocation);
139139
while (parser.nextToken() != XContentParser.Token.END_ARRAY) {
140140
backendRoles.add(parser.text());
141141
}
142142
break;
143143
case ROLES_FIELD:
144-
ensureExpectedToken(XContentParser.Token.START_ARRAY, parser.currentToken(), parser);
144+
ensureExpectedToken(XContentParser.Token.START_ARRAY, parser.currentToken(), parser::getTokenLocation);
145145
while (parser.nextToken() != XContentParser.Token.END_ARRAY) {
146146
roles.add(parser.text());
147147
}
148148
break;
149149
case CUSTOM_ATTRIBUTE_NAMES_FIELD:
150-
ensureExpectedToken(XContentParser.Token.START_ARRAY, parser.currentToken(), parser);
150+
ensureExpectedToken(XContentParser.Token.START_ARRAY, parser.currentToken(), parser::getTokenLocation);
151151
while (parser.nextToken() != XContentParser.Token.END_ARRAY) {
152152
customAttNames.add(parser.text());
153153
}

0 commit comments

Comments
 (0)