When default/fallback URL contains query, the options are thrown away

Bug #1219117 reported by Miro Hrončok on 2013-08-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Imagine this Python example:


This will produce:


That's fine, but not the whole URL including the query string is passed as an default image, but only the URl without options.

Most importantly, this makes it impossible to use workflow similar to this:


So this piece of code doesn't work as expected:

       query = {
            's': size,
            'd': absolute_default,

        query = urllib.urlencode(query)

        gravatar_hash = md5(email).hexdigest()
        gravatar_url = "https://secure.gravatar.com/avatar/%s?%s" % (gravatar_hash, query)

        return libravatar.libravatar_url(

summary: - When default/fallback URL contains URL with options, the options are
- thrown away
+ When default/fallback URL contains query, the options are thrown away
François Marier (fmarier) wrote :

Interesting, falling back to email when the OpenID isn't found on Libravatar.org...

Changed in libravatar:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → François Marier (fmarier)
Miro Hrončok (churchyard) wrote :

Are we getting anywhere with this? It really bothers us.


François Marier (fmarier) wrote :

Sorry Miro, it looks like this had dropped off of my radar. I apologized.

I just took a quick look and it seems that this Apache directive is not working as expected:


I'll have to try and reproduce the problem outside of Libravatar with a simpler Apache config to see if I can work around this and find a way to fix it without breaking the rest of the URL parsing in Libravatar. I wish I had unit tests for that file, mod_rewrite rules are easy to mess up :(

Miro Hrončok (churchyard) wrote :

Hi, has there been any progress?

Changed in libravatar:
assignee: François Marier (fmarier) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers