blookliu / flickrj-android Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/flickrj-android
License: Other
Automatically exported from code.google.com/p/flickrj-android
License: Other
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 [email protected]
on 11 Nov 2014 at 6:05
Attachments:
If I try to get some meta data about the owner of a photo ( photo.getOwner())
contains no real meta data. There is only an ID but no real- or username or
other meta data. Why? How do I get the name of a photo owner?
Original issue reported on code.google.com by [email protected]
on 26 Feb 2012 at 11:14
We should support the new Push category:
flickr.push.getSubscriptions
flickr.push.getTopics
flickr.push.subscribe
flickr.push.unsubscribe
Original issue reported on code.google.com by [email protected]
on 21 Apr 2012 at 6:28
What steps will reproduce the problem?
1. use the upload interface to have info about the photo i tried to upload
2. create the uploadinterface class
3. call the checkticket()
What is the expected output? What do you see instead?
i expect a list with ticket telling me about the upload status
i have an expection
JSONObject["invalid"] not found
in the uploadInterface line 94
it seems like the Json returned don't have the "invalid" elements
not sure i may be surely wrong about all of this
What version of the product are you using? On what operating system?
ubuntu last version
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 20 Apr 2012 at 3:53
What steps will reproduce the problem?
1. Upload a big video (500MB) with low memory setting
What is the expected output? What do you see instead?
Should correctly upload video but :
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2271)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:78)
at java.io.DataOutputStream.write(DataOutputStream.java:107)
at com.googlecode.flickrjandroid.REST.writeParam(REST.java:407)
at com.googlecode.flickrjandroid.REST.sendUpload(REST.java:243)
at com.googlecode.flickrjandroid.Transport.upload(Transport.java:86)
at com.googlecode.flickrjandroid.uploader.Uploader.upload(Uploader.java:169)
What version of the product are you using? On what operating system?
flickrj android 2.0.7 on Windows/Linux
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Jul 2013 at 10:05
Steps to reproduce:
1. Instantiate a new REST() transport with a custom hostname and port, then
call setPath() on the transport instance with a custom path.
2. Instantiate a Flickr instance using the 3-parameter constructor that
includes the transport instance as the 3rd parameter.
3. Call an API that results in the transport's postJSON() method to get called
(e.g. a signed request for "flickr.photosets.getList")
Expected output:
Should result in a POST to <custom_host>:<custom_port>/<custom_path>
Observed output:
The POST request goes to <custom_host>:<custom_port>/services/rest and it's
signed for http://www.flickr.com/services/rest.
Transport.postJSON() seems to be using the hard-coded values
OAuthInterface.URL_REST and OAuthInterface.PATH_REST instead of building the
URL and using the path field.
What version of the product are you using? On what operating system?
2.0.7
Please provide any additional information below.
This is needed for component testing since we'd like to use a Flickr emulator
to generate error scenarios that we aren't able to generate with the real API.
Original issue reported on code.google.com by [email protected]
on 20 Aug 2013 at 12:53
currently our project using flickr android api . trying to understand which one
is the best in performance and also cons and pros among them.also support of
IPV6;
What version of the product are you using? On what operating system?
right now ,flickrj-android 2.1.0
Original issue reported on code.google.com by [email protected]
on 24 Aug 2015 at 5:17
In PhotosInterface.java,
There is missing "else" keywords in the function getImageAsStream.
"if" is used instead of "else if" two times, which can lead to raise a
FlickrException, when passing size Size.SQUARE for instance.
Original issue reported on code.google.com by [email protected]
on 19 Dec 2014 at 3:40
What steps will reproduce the problem?
1. Invoke method PhotosInterface.getSizes("photoId", true)
2.
3.
What is the expected output? What do you see instead?
Get sizes of given image. Instead of this error occurred:
100: Invalid API Key (Key has invalid format)
What version of the product are you using? On what operating system?
2.0.5-SNAPSHOT, JDK 1.7.0_45 on Win 7 64bit
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Jan 2014 at 7:40
What steps will reproduce the problem?
1. Include both flickrj-android and Spring into the same project
2. Setup a basic spring context and run the application/test class.
3.
What is the expected output? What do you see instead?
Don't blow up on
Exception in thread "main" java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava
/lang/String;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)
at org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:456)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:394)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
What version of the product are you using? On what operating system?
Spring 3.0.5 and flickrj-android 1.0.3.20120619135416
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Jul 2012 at 12:27
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Mar 2014 at 2:03
What steps will reproduce the problem?
1. Test Upload Photo with any of the following environments:
a) java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.39.1.9.8.el6_1-i386)
OpenJDK Client VM (build 19.0-b09, mixed mode)
b) jre version 1.6.0_26-b03 on windows.
c) Some other linux versions on Amazon cloud servers.
Actually I have tried in many different environments and it has never succeeded
on a Linux machine. It has worked fine on some Windows machines.
And on one particular machine, it works with the java inside the jdk folder,
but fails with the java in JRE folder. These two versions are both 1.6.0 and
differ only in minor versions
What is the expected output? What do you see instead?
Expected: Successful Upload
Actual: 401 response: oauth_problem=signature_invalid
What version of the product are you using? On what operating system?
flickrj-android-1.0.0.20111015103854.jar on Windows and Linux as mentioned above
Please provide any additional information below.
java.io.IOException: Connection Failed. Response Code: 401, Response Message:
Unauthorized, Error:
oauth_problem=signature_invalid&debug_sbs=POST&http%3A%2F%2Fwww.flickr.com%2Fser
vices%2Fupload%2F&async%3D0%26is_family%3D0%26is_friend%3D0%26is_public%3D0%26oa
uth_consumer_key%3DXXXXXXXXXXXXXXX%26oauth_nonce%3DXXXXXXXXXXX%26oauth_signature
_method%3DHMAC-SHA1%26oauth_timestamp%3D1321447214%26oauth_token%3DXXXXXXXXX%26o
auth_version%3D1.0%26title%3DPicture%2520taken%2520by%2520Charu
at com.gmail.yuyang226.flickr.REST.sendUpload(REST.java:260)
at com.gmail.yuyang226.flickr.Transport.upload(Transport.java:86)
at com.gmail.yuyang226.flickr.uploader.Uploader.upload(Uploader.java:169)
Original issue reported on code.google.com by [email protected]
on 18 Nov 2011 at 5:05
getList and getPhotos.
please take a look.
Original issue reported on code.google.com by [email protected]
on 20 Oct 2011 at 5:29
What steps will reproduce the problem?
1. search for Place with latitude 41.3833 and longitude 2.1833 (Barcelona)
2. PlacesInterface will fail in line 803
"place.setName(placeElement.getString("_content"));" In the given JSON element
is no "_content" element.
What version of the product are you using? On what operating system?
Using version 2.0.0 on Windows 64Bit in Java 1.7
Please provide any additional information below.
Maybe it is a solution to use
"place.setName(placeElement.optString("_content"));"?
Original issue reported on code.google.com by [email protected]
on 16 Nov 2012 at 10:23
Seems Flickr changed the JSON format, the parsePlace should find the name in
the "name" attribute, there is no "_content".
Example JSON format can be generated by
http://www.flickr.com/services/api/explore/flickr.places.findByLatLon
org.json.JSONException: No value for _content
at org.json.JSONObject.get(JSONObject.java:354)
at org.json.JSONObject.getString(JSONObject.java:510)
at
com.gmail.yuyang226.flickr.places.PlacesInterface.parsePlace(PlacesInterface.jav
a:803)
at
com.gmail.yuyang226.flickr.places.PlacesInterface.parsePlacesList(PlacesInterfac
e.java:681)
at
com.gmail.yuyang226.flickr.places.PlacesInterface.findByLatLon(PlacesInterface.j
ava:232)
Original issue reported on code.google.com by [email protected]
on 1 Nov 2011 at 9:16
I develop android application that backup photos to flickr.
I had the next problem several times:
Sometimes I receive 401 response ("Response Code: 401, Response Message:
Unauthorized, Error: oauth_problem=token_rejected") instead of response
with access token, during Exchanging the Request Token for an Access Token.
This problems happens mostly when I have bad internet connection (when I am
suing 3g internet).
Here are logs that shows this behavior:
2015-01-07 17:12:00,603 DEBUG [oauth.OAuthInterface]-[122] Getting Request
Token with parameters: <a
href="https://www.flickr.com/services/oauth/request_token">www.flickr.com/servic
es/oauth/request_token</a> [
Parameter [name=oauth_callback, value={MY_APP_NAME}-flickr://callback],
Parameter [name=oauth_consumer_key, value={MY_CONSUMER_KEY}],
Parameter [name=oauth_nonce, value=154099562370628],
Parameter [name=oauth_signature_method, value=HMAC-SHA1],
Parameter [name=oauth_timestamp, value=1420630920],
Parameter [name=oauth_version, value=1.0],
Parameter [name=oauth_signature, value=oVkmG/7nOoiO0P6Dm2j4Aql4lDs=]
]
2015-01-07 17:12:01,695 DEBUG [oauth.OAuthInterface]-[136]
Response: {oauth_token_secret={RESULT_OAUTH_TOKEN_SECRET}, oauth_callback_confirmed=true, oauth_token={RESULT_OAUTH_TOKEN}}
After that I open next url in browser for user:
url = <a href="https://m.flickr.com/services/oauth/authorize?oauth_token="
rel="nofollow">m.flickr.com/services/oauth/authorize?oauth_token=</a>{RESULT_OAU
TH_TOKEN}&perms=write
After authorization I get next callback:
{MY_APP_NAME}-flickr://callback?oauth_token={RESULT_OAUTH_TOKEN}&oauth_verif
ier=59bbeb1cb3ffedca
Using verifier I make next request:
2015-01-07 17:12:47,043 DEBUG [flickrjandroid.REST]-[288] Send Post Input
parameters [
Parameter [name=oauth_consumer_key, value={MY_CONSUMER_KEY}],
Parameter [name=oauth_nonce, value=154146242657849],
Parameter [name=oauth_signature_method, value=HMAC-SHA1],
Parameter [name=oauth_timestamp, value=1420630967],
Parameter [name=oauth_token, value={RESULT_OAUTH_TOKEN}],
Parameter [name=oauth_verifier, value=59bbeb1cb3ffedca],
Parameter [name=oauth_version, value=1.0],
Parameter [name=oauth_signature, value=yZjgD6iKGxn4lzJVuZHnEaqWsHE=]] <a href="https://api.flickr.com:443/services/oauth/access_token" rel="nofollow">api.flickr.com:443/services/oauth/access_token</a>
The response is:
Response Code: 401, Response Message: Unauthorized, Error:
oauth_problem=token_rejected
What can cause the reject of token?
Can I try make another request using same verifier after getting 401 response
or this will also return 401 response?
This problem happens just sometimes, usually during bad internet connection.
For authorization I use flickrj-android-2.1.1
Original issue reported on code.google.com by [email protected]
on 15 Jan 2015 at 3:46
What steps will reproduce the problem?
1. call getPeopleInterface().getPhotos with extra of url_o
What is the expected output? What do you see instead?
resulting photos have width and height values set. Resulting photos have width
and height 0
What version of the product are you using? On what operating system?
2.00. Android
Please provide any additional information below.
Problem is in PhotoUtils class where
photo.setOriginalWidth(photoElement.optString("o_width"));
photo.setOriginalHeight(photoElement.optString("o_height"));
but param names are width_o and height_o
so solution would be to do following
photo.setOriginalWidth(photoElement.optString("width_o"));
photo.setOriginalHeight(photoElement.optString("height_o"));
Original issue reported on code.google.com by [email protected]
on 13 Aug 2013 at 12:28
What steps will reproduce the problem?
1. Call InterestingnessInterface.getList() with extra "url_z" which corresponds
to the "medium 640" size.
2. Process the resulting PhotoList and attempt to get the width and height of
the medium 640 image.
What is the expected output? What do you see instead?
Expected: There should be a way to get the medium 640 image width and height.
Actual: The Photo API supports retrieving the image URL by calling
Photo.getMedium640Url(), but there's no way to get the width or height of the
photo that was retrieved without making extra API calls.
What version of the product are you using? On what operating system?
Version: 2.0.7
Operating System: n/a
Please provide any additional information below.
n/a
Original issue reported on code.google.com by [email protected]
on 16 Aug 2013 at 9:27
Please provide a sample apk or code to upload photo(s), delete and change
privacy rules.
Original issue reported on code.google.com by julien.quievreux
on 14 May 2012 at 2:55
When using GetInfo as described
http://www.flickr.com/services/api/flickr.photosets.getInfo.html there is also
a create_date and update_date included. As I needed that to do date filtering,
I added it to the code.
In attach the patch to be applied against 2.0.7.
Thank you for a great library!
Original issue reported on code.google.com by [email protected]
on 9 Apr 2013 at 6:06
Attachments:
What steps will reproduce the problem?
Add SLF4J dependencies including a SLF4J binding other than the one used by
flickrj-android. I have logback in my example.
What is the expected output? What do you see instead?
SLF4J should be able to find the chosen logging implementations configuration
and log to the expected appenders. Logging is being configured based on the
SL4J classes shaded in and the following warning.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/C:/Users/username/projects/project/lib/flickrj-android-1.0.3.20120619
135416.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/C:/Users/username/.gradle/caches/artifacts-13/filestore/ch.qos.logbac
k/logback-classic/1.0.6/jar/ba738848da3e6fffa0107771c75546eb6d407f3c/logback-cla
ssic-1.0.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
What version of the product are you using? On what operating system?
flickrj-android-1.0.3.20120619135416
Please provide any additional information below.
I have attached my Gradle file maybe this will help.
Original issue reported on code.google.com by [email protected]
on 14 Jul 2012 at 1:01
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.