artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

Plus symbols percentage escaped when part of path #255

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by rmmccub...@googlemail.com on 21 Jan 2014 at 3:57