Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Values in KV surrounded by quotation marks #123

Closed
michalkalinowski opened this issue May 5, 2016 · 4 comments
Closed

Values in KV surrounded by quotation marks #123

michalkalinowski opened this issue May 5, 2016 · 4 comments

Comments

@michalkalinowski
Copy link

For some reason, all values that are put by KeyValueClient are surrounded by quotation marks.

When inserting like this:
curl -X PUT -d 'test' http://192.168.99.100:8500/v1/kv/key
the actual value is test.

When inserting like this:
kvClient.putValue("key", "test");
the actual value is "test".

It is OK if the only Consul's KV clients ale Java apps using this lib, but in general this behaviour is quite weird I believe.

@rickfast
Copy link
Owner

rickfast commented May 5, 2016

Yeah. It's a problem with the new HTTP client thatWe swapped in. Use 0.10.2 for the time being. I'll fix this today

@michalkalinowski
Copy link
Author

OK, great! It it's not an issue for you, please publish this fixed version to Maven Central. Thanks!

@rickfast
Copy link
Owner

rickfast commented May 5, 2016

Sure. I fixed it on the train just now. I'll merge and release shortly.

@rickfast
Copy link
Owner

rickfast commented May 5, 2016

0.11.3 is released. Retrofit was using the JSON converter to handle string request bodies, so they were turned into JSON strings (with quotes). I changed the String payload calls to use the plain text string converter.

@rickfast rickfast closed this as completed May 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants