[Bug 32125] Should support auth using captcha

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 9 11:56:33 CET 2012


https://bugs.freedesktop.org/show_bug.cgi?id=32125

--- Comment #34 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2012-02-09 02:56:33 PST ---
(In reply to comment #29)
> (In reply to comment #26)
> > GetCaptchaData(u: ID, s: MIME_Type) -> ay: Bytes
> 
> Just a question about this specific bit which came to my mind right now: what
> should the CM do if MIME_Type was an empty string?

In the Comment #26 API, why would you ever do that? If the Handler thinks it
can display every image format ever invented, it could just as easily have a
rule like "always pick the first type the CM offered".

You could make "" equivalent to the first thing in the CM's list if you wanted
to encourage that behaviour, but I expect that real Handlers would want a rule
more like this:

    if (supports audio/speex)
      that's the smallest, use it
    else if (supports audio/ogg)
      that's pretty small, use it
    else if (supports audio/x-wav)
      oh well, that's not so bad
    else
      either
        no particular preference, let's try the first one?
      or
        there's nothing here that I know I can handle, fail

(Using audio here because there isn't such an obvious order of precedence for
images, but for images you probably want JPEG > PNG > GIF > BMP > other, or
something.)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list