Sarven Capadisli wrote:
> On Mon, 2009-09-21 at 22:52 -0400, Craig Andrews wrote:
>> Right now, links in notices are very opaque - users really have no idea
>> where they go when they click on them. For example, in this notice:
>>
>> <p class="entry-content">Testing! <a href="http://ur1.ca/106o";
>> rel="external">http://ur1.ca/106o</a></p>
> 
> I must have overlooked this change because I remember we had <a
> href="shortURL" title="longURL">shortURL</a> implemented.

This whole topic raises some interesting questions, which I would like
to jot down just for sake of completeness.

Q: What is a short URL? I guess this needs a list of "trusted"
shortening services - maybe plugins? Esp. with bit.ly you can have
personal accounts to help in tracking etc.

A: Specific metrics per service should be configurable somehow.

Q: Could this become a potential DoS vector? Imagine a flood of posts
with short URLs pointing to a shortening service that is either slow or
unresponsive - could this fill up the statusNet system and lead to
potential harm?

A: We should have timeouts, max entries etc. per system/service to avoid
congestion causing DoS scenarios. Maybe also dynamic - so say that when
X queries to bit.ly take > 2s each, throttle it down and just show the
short URL.

Q: Is it safe to cache the results of the long URL? Some shortening
services might re-use the UUIDs they generate, so maybe have a TTL
setting per service?

A: Find out the TTL per service and make it configurable.

Just a braindump, ignore at your own will ;-)

Jan

-- 
Jan H Wildeboer                |
EMEA Open Source Affairs       | Office: +49 (0)89 205071-207
Red Hat GmbH                   | Mobile: +49 (0)174 33 23 249
Technopark II, Haus C          | Fax:    +49 (0)89 205071-111
Werner-von-Siemens-Ring 11 -15 |
85630 Grasbrunn                |
_____________________________________________________________________

Reg. Adresse: Red Hat GmbH,
Technopark II, Haus C, Werner-von-Siemens-Ring 11 -15
85630 Grasbrunn, Handelsregister: Amtsgericht Muenchen HRB 153243
Geschaeftsfuehrer: Brendan Lane, Charlie Peters, Michael Cunningham,
Charles Cachera
_____________________________________________________________________

GPG Key:     3AC3C8AB
Fingerprint: 3D1E C4E0 DD67 E16D E47A  9564 A72F 5C39 3AC3 C8AB
_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to