This is an automated email from the ASF dual-hosted git repository.
nbonte pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new fd9ab84 ATLAS-4055 Basic search doesn't work if the search text has
special characters
fd9ab84 is described below
commit fd9ab8454791447c83d2f692fdc2d644704f1cf7
Author: Jayendra Parab <[email protected]>
AuthorDate: Thu Nov 26 11:07:41 2020 +0530
ATLAS-4055 Basic search doesn't work if the search text has special
characters
Signed-off-by: Nikhil Bonte <[email protected]>
(cherry picked from commit 97b5565d83be38e3c7e40c1cf949e0ffd89ede3c)
---
.../java/org/apache/atlas/type/AtlasStructType.java | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/intg/src/main/java/org/apache/atlas/type/AtlasStructType.java
b/intg/src/main/java/org/apache/atlas/type/AtlasStructType.java
index 28d2e23..0509809 100644
--- a/intg/src/main/java/org/apache/atlas/type/AtlasStructType.java
+++ b/intg/src/main/java/org/apache/atlas/type/AtlasStructType.java
@@ -1057,6 +1057,24 @@ public class AtlasStructType extends AtlasType {
switch (c) {
case '@':
case ' ':
+ case '+':
+ case '-':
+ case '&':
+ case '|':
+ case '!':
+ case '(':
+ case ')':
+ case '{':
+ case '}':
+ case '[':
+ case ']':
+ case '^':
+ case '"':
+ case '~':
+ case '?':
+ case ':':
+ case '\\':
+ case '/':
return true;
}