You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by yk...@apache.org on 2021/07/08 13:24:05 UTC

[incubator-datalab] branch develop updated: [DATALAB] -- fixed config read bugs

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

ykinash pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/develop by this push:
     new 64b1dd6  [DATALAB] -- fixed config read bugs
64b1dd6 is described below

commit 64b1dd65f5ca21ff8a86374c6e404403aa7f66af
Author: KinashYurii <ur...@gmail.com>
AuthorDate: Thu Jul 8 16:23:39 2021 +0300

    [DATALAB] -- fixed config read bugs
---
 .../main/java/com/epam/datalab/properties/ChangePropertiesService.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java
index b45cfa6..67f75b4 100644
--- a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java
+++ b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java
@@ -79,7 +79,6 @@ public class ChangePropertiesService {
         } catch (IOException e) {
             log.error("Failed to read with path {}", servicePath);
             throw new DynamicChangePropertiesException(String.format("Failed during overwriting %s", serviceName));
-
         }
         return oldFile;
     }
@@ -126,7 +125,7 @@ public class ChangePropertiesService {
         }
         for (String secretOrUser : secretsAndUsers) {
             int start = confWithReplacedSecretConf.indexOf(secretOrUser);
-            int end = confWithReplacedSecretConf.indexOf(":", start);
+            int end = confWithReplacedSecretConf.indexOf("\n", start) - 1;
             boolean isTure;
             try {
                 String s = confWithReplacedSecretConf.substring(start, end);

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org