UriTemplate.expand should support Iterable<?> for list parameters #118
Labels
priority: p0
Highest priority. Critical issue. P0 implies highest priority.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
From rmis...@google.com on May 21, 2012 07:17:29
Reported by willem.salembier, May 19 (42 hours 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, 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: http://code.google.com/p/google-http-java-client/issues/detail?id=118
The text was updated successfully, but these errors were encountered: