Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

API's avatar image URLs are short lived

#80

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).

Reported by Mark Paschal · March 18th, 2011 @ 11:38 PM

State: resolved
Milestone: none
Assigned to: Andre Torrez Andre Torrez

Activity

  1. Andre Torrez
    Andre Torrez
    • 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.

    March 19th, 2011 @ 03:19 PM

  2. Mark Paschal
    Mark Paschal

    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:

    http://mlkshk-production.s3.amazonaws.com/account/114/profile.jpg?AWSAccessKeyId=AKIAIJYLZ642WLID3ECQ&Expires=1300754321&Signature=eEsgEzqwqHlsbja6bA5j8xjhoVk%3D

    I think you'd have to change it outright to something like:

    http://mlkshk.com/avatars/114/profile.jpg

    to remove the expiration.

    March 21st, 2011 @ 04:50 PM

  3. Andre Torrez
    Andre Torrez

    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.

    March 21st, 2011 @ 04:53 PM

  4. Mark Paschal
    Mark Paschal

    Oh, cool then. I haven't used S3 so I didn't know how that works. Thanks!

    March 21st, 2011 @ 04:57 PM

  5. Andre Torrez
    Andre Torrez
    • 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?

    March 22nd, 2011 @ 12:47 PM

  6. Mark Paschal
    Mark Paschal
    • Tag changed from api, avatar to profile pics, api

    March 25th, 2011 @ 07:34 PM

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.