ianlee-dev / facebook-java-api

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

Not being able to delete file after uploading (Stream not closed) #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use method client.photos_upload(file, aid);
2. Try to delete the file after calling the method (file.delete())

What is the expected output? What do you see instead?
I should be able to delete the file

What version of the product are you using? On what operating system?
1.8 final. Windows XP.

Please provide any additional information below.
I've noticed that I am not able to delete a file right after I uploaded it
to Facebook using the facebook-java-api. Is it possible that you forgot to
close the stream which is reading the uploadFile? This would cause the file
not being able to be deleted (cfr. screenshots).

By the way: it's a great package you wrote!

Original issue reported on code.google.com by frederik...@gmail.com on 4 Sep 2008 at 9:06

Attachments:

GoogleCodeExporter commented 8 years ago
Fix beneath does the trick. Is it possible to take this into a next release, or 
is
there a specific reason why the Stream was not closed?

Kind regards,

Frederik

Original comment by frederik...@gmail.com on 4 Sep 2008 at 12:25

Attachments:

GoogleCodeExporter commented 8 years ago
It was probably an oversight.  I will add to 2.0.1.

Original comment by hahna...@gmail.com on 8 Oct 2008 at 3:37

GoogleCodeExporter commented 8 years ago
Fixed and committed to 2.0.1.  Thanks for posting the solution.

Original comment by hahna...@gmail.com on 8 Oct 2008 at 3:46