Closed GoogleCodeExporter closed 9 years ago
I'm running into this problem with the Dropbox API. When I have a left/right
parenthesis in the path, they are not encoded by Google API Java Client,
because it's hard coded to use:
com.google.api.client.util.escape.PercentEscaper.SAFEQUERYSTRINGCHARS_URLENCODER
= "-_.!~*'()@:$,;/?:"
Original comment by tra...@circutus.com
on 9 Jan 2012 at 6:32
Thanks for the feedback.
As far as I can tell the original issue is a duplicate of:
http://code.google.com/p/google-oauth-java-client/issues/detail?id=1
In other words, we should be encoding format-encoded HTTP parameters, but we
are not. Please let me know if that is not the case.
Note that it is not our goal to offer character-encoding functionality. In
fact, in hind-sight we wish we hadn't made this code public, and will likely
remove it from this library in the future once character-encoding functionality
is found in some third-party library that we can rely on.
I think the second issue raised here with the Dropbox API is a separate issue,
because that refers to which URI query parameter characters should be encoded,
not form-encoded parameters. I would be surprised why not encoding '(' or ')'
should be a problem, but I haven't had a chance to investigate it. If you are
seeing a problem, please file a bug here:
http://code.google.com/p/google-oauth-java-client/issues/entry
Original comment by yan...@google.com
on 10 Jan 2012 at 1:54
Original issue reported on code.google.com by
mathias.kegelmann
on 8 Feb 2011 at 11:46