You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/05/18 01:50:20 UTC

[GitHub] [calcite] zhztheplayer commented on a change in pull request #1218: [CALCITE-3067] Splunk Calcite adapter cannot parse right session keys from Splunk 7.2

zhztheplayer commented on a change in pull request #1218: [CALCITE-3067] Splunk Calcite adapter cannot parse right session keys from Splunk 7.2
URL: https://github.com/apache/calcite/pull/1218#discussion_r285324733
 
 

 ##########
 File path: splunk/src/main/java/org/apache/calcite/adapter/splunk/search/SplunkConnectionImpl.java
 ##########
 @@ -58,7 +58,7 @@
 
   private static final Pattern SESSION_KEY =
       Pattern.compile(
-          "<response>\\s*<sessionKey>([0-9a-f]+)</sessionKey>\\s*</response>");
+          "<sessionKey>(.+)<\\/sessionKey>");
 
 Review comment:
   Not familiar with Splunk's session yet, however as the implementation of Regex dot `.` in Java is based on longest matching, I am not sure if it's safe enough to use it here. Is `([0-9a-f]+)` not able to match the content in this case?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services