fer626 / google-api-java-client

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

UriTemplate.expand should support Iterable<?> for list parameters #493

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client: 1.9.0-beta
Java environment: Java 6

Freebase Text API is bugged. The Get object requires to be initialized with a 
List<String>, but the buildHttpRequestUrl() method uses UriTemplate.expand 
which expects the id parameter to be passed as an Iterator<?> and not an 
Iterable<?>.

Get get = freebase.text().get(Arrays.asList("en", "avenue_q"));

How would you expect it to be fixed?
com.google.api.services.freebase.Freebase.Text.Get.getId() should return an 
Iterator<?> or UriTemplate.expand should support Iterable<?> for list 
parameters.

Original issue reported on code.google.com by willem.s...@gmail.com on 19 May 2012 at 6:41

GoogleCodeExporter commented 9 years ago
Thank you for reporting this issue!
This looks like it affects all APIs that have required list parameters.

Original comment by rmis...@google.com on 21 May 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Issue has been moved to: 
http://code.google.com/p/google-http-java-client/issues/detail?id=118

Original comment by rmis...@google.com on 21 May 2012 at 2:18