This is an automated email from the ASF dual-hosted git repository.

nbonte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 97b5565  ATLAS-4055 Basic search doesn't work if the search text has 
special characters
97b5565 is described below

commit 97b5565d83be38e3c7e40c1cf949e0ffd89ede3c
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]>
---
 .../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;
             }
 

Reply via email to