byteayan commented on code in PR #3352:
URL: https://github.com/apache/hugegraph/pull/3352#discussion_r4286449392


##########
hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh:
##########
@@ -173,12 +173,24 @@ if [[ -n "${PASSWORD:-}" ]]; then
     AUTH_ADMIN_PASSWORD_ENCODED=$(encode_auth_prop_value "${PASSWORD}")
 fi
 
+# Same accepted spellings as HG_SERVER_INIT_STORE_ENABLED below, checked
+# before the mapping so an invalid value leaves both conf files untouched.
+# URLs hold no whitespace, and the Server splits the list on bare commas, so
+# "a, b" would otherwise register an escaped space in front of the second URL.
+URLS_TO_PD=$(printf '%s' "${HG_SERVER_URLS_TO_PD:-}" | tr -d '[:space:]')
+DEPLOY_IN_K8S=$(printf '%s' "${HG_SERVER_DEPLOY_IN_K8S:-}" |
+                tr -d '[:space:]' | tr '[:upper:]' '[:lower:]')

Review Comment:
   Agreed, fixed in f38914d68. The entrypoint now trims only leading and 
trailing whitespace before lowercasing, and the invalid-flag test covers `t 
rue` and `tr ue`; `" TRUE "` is still accepted. `HG_SERVER_INIT_STORE_ENABLED` 
on master normalizes with the same `tr -d` pattern, so it has the same gap; I 
left it alone here to keep this PR to the new flag.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to