API's avatar image URLs are short lived
Reported by Mark Paschal | March 18th, 2011 @ 11:38 PM
The avatar_image_url in a person's user info is the same temporary AWS URL as used in the web site HTML. Would it be possible to get a longer-lived URL for display by outside applications? Leapfrog for instance would like to keep the same URL until it changes (presumably to indicate a new avatar image).
Comments and changes to this ticket
-
Andre Torrez March 19th, 2011 @ 03:19 PM
- State changed from new to open
I'm just going to remove the expiration entirely. No reason for us to be limiting that.
It should be done by Monday, or sooner if I can fit it in today or tomorrow.
-
Mark Paschal March 21st, 2011 @ 04:50 PM
Well, I think the expiration is because it's an AWS link. Don't they all have expirations? For example for me I get the URL:
I think you'd have to change it outright to something like:
http://mlkshk.com/avatars/114/profile.jpg
to remove the expiration.
-
Andre Torrez March 21st, 2011 @ 04:53 PM
Yeah, that's what we're doing. But we're not going to host them on the production box, just open up the /account path to world readable so we don't have to pass in keys. The URLs will be //:mlkshk-production.s3.amazonaws.com/account/114/profile.jpg
The problem is, and this is a great lesson: AWS is incredibly slow to apply changes on large paths. So while this is done in dev, I can't turn it live because S3 is still updating permissions on the thousands of files in that directory.
-
Mark Paschal March 21st, 2011 @ 04:57 PM
Oh, cool then. I haven't used S3 so I didn't know how that works. Thanks!
-
Andre Torrez March 22nd, 2011 @ 12:47 PM
- State changed from open to resolved
This is fixed. Avatars don't expire. I need to give you the ability to know when a file has changed, perhaps a quick md5 value on it?
-
Mark Paschal March 25th, 2011 @ 07:34 PM
- Tag changed from api, avatar to profile pics, api
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
MLKSHK it's fun for the whole family.
People watching this ticket
Tags
Referenced by
- 78 Getting 502 (Bad Gateway) for Many Thumbnails We're going to remove the thumbnail expiration as part of...