yrizk / flickrj-android

Automatically exported from code.google.com/p/flickrj-android
Other
0 stars 0 forks source link

Flicker does not (any more?) supply JSON in the format expected by flickrj-android #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to create a Photo from a JSONObject returned from Flickr using 
com.googlecode.flickrjandroid.photos.PhotoUtils.createPhoto()

What is the expected output? What do you see instead?
I expect the creation of a Photo object.
Instead, I receive an exception "org.json.JSONException: JSONObject["farm"] not 
a string." originating at PhotoUtils:94.

What version of the product are you using? On what operating system?
I am using the snapshot build 2.1.1 on Ubuntu Linux 14.04.

Please provide any additional information below.
This bug is due to "farm" (among other properties of the Photo JSON object) 
being an integer (ie "farm": 7) rather than a string (ie "farm": "7").

I have included a modified PhotoUtils.java which correctly parses the "farm", 
"isPublic", "isFriend" and "isFamily" properties.

Original issue reported on code.google.com by roscoe.m...@gmail.com on 11 Nov 2014 at 6:05

Attachments: