Giter Club home page Giter Club logo

flickrj-android's People

Contributors

alinium avatar brk3 avatar charleszq avatar sebastiangraf avatar yuyang226 avatar

flickrj-android's Issues

Uploader memory leak

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

uploadinterface.checkticket() exeption caused

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

Support for the new Push Category

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

Embedded packaging of slf4j interfaces causes problems with Spring

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

Transport.postJSON() does not respect the host and path variables set on the transport.

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

Sometimes get Response Code: 401 during OAuth authorization

I develop android application that backup photos to flickr.

I had the next problem several times: 
Sometimes I receive 401 response (&quot;Response Code: 401, Response Message: 
Unauthorized, Error: oauth_problem=token_rejected&quot;) 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}&amp;perms=write

After authorization I get next callback: 
{MY_APP_NAME}-flickr://callback?oauth_token={RESULT_OAUTH_TOKEN}&amp;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

wrong name of params for original dimensions

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

PhotosInterface.getSizes is not working

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

Jar is shaded with SL4J classes that prevents other logging binders from working as expected.

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:

On certain environments, Photo Upload results in 401 response: oauth_problem=signature_invalid

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

Is this project still in maintenance?Thanks very much.

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

findByLatLon doesn't work today, throws JSONException

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

Searching for Places defective

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

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

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:

There's no way to get the width and height for certain image sizes from the Flickr response

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.