flowchartsman opened a new issue #8757:
URL: https://github.com/apache/pulsar/issues/8757


   **Describe the bug**
   When go functions are run with `--user-conf` they fail because single quotes 
are getting added to the argument when they're not needed.
   
   **To Reproduce**
   `pulsar-admin functions create --name test --namespace default --go <path to 
pfunc binary> --inputs test --output test.o
   ut --user-config '{"foo":"bar"}'
   
   **Expected behavior**
   Pulsar function starts
   
   **Additional context**
   The offending line is located in 
`pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/RuntimeUtils.java`:
   
   ```java
   args.add("'" + configContent + "'");
   ```
   
   Should be:
   
   ```java
   args.add(configContent);
   ```
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to