hschildberg opened a new issue, #8299:
URL: https://github.com/apache/hop/issues/8299

   ### Apache Hop version?
   
   2.19.0
   
   ### Java version?
   
   OpenJDK 64-Bit Server VM (build 21.0.11+10-alpine-r0, mixed mode, sharing)
   
   ### Operating system
   
   Docker
   
   ### What happened?
   
   [HOP_CONFIG_OPTIONS is currently expanded within double 
quotes](https://github.com/apache/hop/blob/81b89cbab3a431bcadcfae2eaf9bfeaed5aaeddf/docker/resources/load-and-execute.sh#L309),
 causing its entire content to be passed to hop-conf.sh as a single argument.
   
   When the variable contains multiple command-line options, they are not 
handled as individual arguments, which lead to unexpected behavior.
   
   A common Bash solution would be to [use an array and expand it as individual 
arguments](https://github.com/apache/hop/blob/81b89cbab3a431bcadcfae2eaf9bfeaed5aaeddf/docker/resources/load-and-execute.sh#L317).
   
   However, this may not be directly applicable in this case because 
HOP_CONFIG_OPTIONS is typically provided via environment variables (for example 
through docker-compose.yml), and environment variables can only carry strings, 
not Bash arrays.
   
   It may therefore be worth considering an alternative approach that provides 
support for Docker Compose based configuration ensuring that multiple options 
are passed to hop-conf.sh as intended.
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Containers


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

Reply via email to