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

   ### Apache Hop version
   
   Current `main` branch
   
   ### Java version
   
   Java 21
   
   ### Operating system
   
   All
   
   ### What happened?
   
   Hop Server truncates command-line system property values that contain an 
equals sign.
   
   For example, a property passed as:
   
   ```text
   --system-properties 
hop.connection.url=jdbc:test://localhost/database?user=admin
   ```
   
   is stored as:
   
   ```text
   jdbc:test://localhost/database?user
   ```
   
   This affects common values such as JDBC URLs, query strings, signed tokens, 
and encoded configuration values.
   
   ### Expected behavior
   
   The property name and value should be separated at the first equals sign 
only, preserving any additional equals signs in the value.
   
   ### Reproduction
   
   1. Configure Hop Server with a system property whose value contains `=`.
   2. Call `HopServer.applySystemProperties()` or start Hop Server with that 
option.
   3. Read the resulting Java system property.
   4. Observe that the value is truncated after the second `=`.
   
   ### Root cause
   
   `HopServer.applySystemProperties()` uses `String.split("=")` and selects 
only the second array element. Other Hop command entry points limit the split 
to two parts.
   


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