Skip to content

Plus symbols percentage escaped when part of path #255

Closed
@wonderfly

Description

@wonderfly

From rmmccub...@googlemail.com on January 21, 2014 07:57:06

Version of google-http-java-client (e.g. 1.15.0-rc)? 1.17.0-rc Java environment (e.g. Java 6, Android 2.3, App Engine)? Java 6 (all) Describe the problem. RFC 3986 allows plus symbols in the path without escaping them. However when using GenericUrl they are always escaped making it impossible to make a request to urls that include a plus symbol in the path. How would you expect it to be fixed? line 71 in util/escape/PercentEscaper.java to be changed from:

public static final String SAFEPATHCHARS_URLENCODER = "-.!~*'()@:$&,;=";
to
public static final String SAFEPATHCHARS_URLENCODER = "-
.!~*'()@:$&,;=+";

Original issue: http://code.google.com/p/google-http-java-client/issues/detail?id=255

Metadata

Metadata

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions