Issue 22 in flickrpy: cannot access private photos, even when authorized

2 views
Skip to first unread message

flic...@googlecode.com

unread,
May 1, 2012, 11:42:43 PM5/1/12
to flickrp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 22 by marc.sp...@gmail.com: cannot access private photos, even
when authorized
http://code.google.com/p/flickrpy/issues/detail?id=22

What steps will reproduce the problem?

1. get authorized to read a user's private photos.
2. for i in flickr.photos_search(user_id='foobar', auth=True):
print i.getURL(size='Large')
# note that auth=True lists the private photos, too

What is the expected output? What do you see instead?

I expect to see the URL, but I get a stack trace:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "flickr.py", line 225, in getSizes
"""
File "flickr.py", line 1066, in _doget
_get_auth_url_suffix(method, auth, params))
File "flickr.py", line 1100, in _get_data
def _get_data(xml):
flickr.FlickrError: ERROR [1]: Photo not found

(Line numbers may be off, because I've added a few comments to the top of
the file.)

What version of the product are you using? On what operating system?

Download from 2012-05-02, running on Windows.

Please provide any additional information below.

A quick and dirty hack is to default the auth argument of _doget to True.
That may or may not cause heaps of problems elsewhere, though.

flic...@googlecode.com

unread,
May 2, 2012, 10:56:36 AM5/2/12
to flickrp...@googlegroups.com
Updates:
Status: Accepted
Owner: jims...@gmail.com

Comment #1 on issue 22 by jims...@gmail.com: cannot access private photos,
I'll take a look. Should be a simple fix.

flic...@googlecode.com

unread,
May 2, 2012, 12:17:48 PM5/2/12
to flickrp...@googlegroups.com

Comment #2 on issue 22 by jims...@gmail.com: cannot access private photos,
Ok, I've just revisited this code and there is a simple workaround.
Basically, just set flickr.AUTH = True when you are setting up your API key
etc, and it will use auth throughout. I introduced this mechanism to avoid
having to change every method signature to accept an 'auth' parameter.

If you're happy with that I will close as won't fix. Really it should be
better documented, but it does work :)

flic...@googlecode.com

unread,
Apr 6, 2013, 8:35:54 AM4/6/13
to flickrp...@googlegroups.com
Updates:
Status: WontFix

Comment #3 on issue 22 by jims...@gmail.com: cannot access private photos,
(No comment was entered for this change.)

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages