You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/25 00:46:36 UTC

[GitHub] [pulsar] devinbost opened a new issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

devinbost opened a new issue #7660:
URL: https://github.com/apache/pulsar/issues/7660


   **To Reproduce**
   Steps to reproduce the behavior:
   1. Produce message via:
   `bin/pulsar-client produce persistent://public/default/testInput -m '{ "test1" : "value1", "test2": "value2" }'`
   Also try it like this:
   `bin/pulsar-client produce persistent://public/default/testInput -m "{ 'test1' : 'value1', 'test2': 'value2' }"`
   and like this:
   `bin/pulsar-client produce persistent://public/default/testInput -m '"test1" : "value1", "test2": "value2"'`
   
   2. Try deserializing the message. In none of the above cases will the object deserialize correctly. 
   3. 
   Save the following text into a file named `test.json`:
   `{ "test1" : "value1", "test2": "value2" }`
   4. Produce message via:
   `bin/pulsar-client produce persistent://public/default/testInput -f test.json`
   5. Message deserializes correctly. 
   
   **Expected behavior**
   Passing JSON via inline message should produce the same result as passing JSON via file. 
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] devinbost commented on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
devinbost commented on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-663787149


   If only one key/value pair is passed, such as` { "test1" : "value1"}`, it will deserialize correctly. However, it fails if additional pairs are passed. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] devinbost removed a comment on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
devinbost removed a comment on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-663786836


   With the first attempt, `bin/pulsar-client produce persistent://public/default/testInput -m '{ "test1" : "value1", "test2": "value2" }'`, it only deserializes the first key/value (test1 and value1). The subsequent parameters seem to be ignored. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] afedulov edited a comment on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
afedulov edited a comment on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-881608865


   @devinbost Any progress on this issue? I see you already seem to have a corresponding fix on your fork?


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] devinbost commented on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
devinbost commented on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-663786836


   With the first attempt, `bin/pulsar-client produce persistent://public/default/testInput -m '{ "test1" : "value1", "test2": "value2" }'`, it only deserializes the first key/value (test1 and value1). The subsequent parameters seem to be ignored. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] devinbost commented on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
devinbost commented on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-664760241


   @sijie Yes, I can work on this after I complete my current project. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] eolivelli commented on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-881610979


   There is an open PR of mine that implements this feature


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] devinbost commented on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
devinbost commented on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-663788758


   It appears to be splitting the string on the comma into multiple messages. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] sijie commented on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-664075687


   @devinbost Are you interested in contributing a feature to produce JSON messages to pulsar-client CLI?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar] afedulov commented on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
afedulov commented on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-881608865


   Any progress on this issue?


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] devinbost removed a comment on issue #7660: Unable to correctly pass JSON object as inline message via CLI pulsar-client

Posted by GitBox <gi...@apache.org>.
devinbost removed a comment on issue #7660:
URL: https://github.com/apache/pulsar/issues/7660#issuecomment-663787149


   If only one key/value pair is passed, such as` { "test1" : "value1"}`, it will deserialize correctly. However, it fails if additional pairs are passed. 


----------------------------------------------------------------
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:
users@infra.apache.org