-
David Enyeart authored
The problem was that the retrieve of the public hash from couch state db fails due to a URL encoding issue of a plus sign in the hashed key. Keys were already URL encoded using golang URL encoding, but the encoding skips plus signs in the path component. CouchDB unencodes the plus sign as a space. The fix is to explicitly URL encode plus character when interacting with CouchDB. Also add unit test to verify the fix and test all other URL special characters. Also clarified the error message received when private version does not match public hash. Change-Id: I9b99d3446542e9eae0196158270205d3ea09db9f Signed-off-by:
David Enyeart <enyeart@us.ibm.com>
41714c2a