On Wed, Feb 10, 2010 at 02:12:14PM +0100, Gianluca Montecchi wrote:
> On Wed, Feb 10, 2010 at 07:24:41AM -0500, W. Trevor King wrote:
> > On Wed, Feb 10, 2010 at 09:30:32AM +0100, Gianluca Montecchi wrote:
> > > On Tue, Feb 09, 2010 at 08:29:51PM -0500, W. Trevor King wrote:
> > > > What you want are 301 redirections from the truncated IDs to the full 
> > > > IDs,
> > > > but that is difficult (impossible?) to do in a server-agnostic way.
> > > > 
> > > > The shorter URLs aren't critical, so I'm leaning towards
> > > > Apache-centrism on this one ;).
> > > 
> > > I am not sure that using some hack on the server side is a good idea, 
> > > since 
> > > you should take care of too much variables.
> > 
> > Mod-rewrite isn't a hack ;).  This is what it's for.
> 
> I know. ;-)
> 
> The problem I see with mod_rewrite is that different server have different
> syntax (ie. apache and lighttpd).

Note that we already use .htaccess files to force file MIME types for
non-text/* attachments (HTML_gen._generate_bug_comment_entries) ,
which are not lighttpd-compatible.  So what we really need are a list
of servers we want to support ;).

On Fri, Feb 12, 2010 at 12:09:23AM +0100, Gianluca Montecchi wrote:
> I pushed to my tree a solution to use shorter file name in the be html 
> command 
> output (bug-id bea/01e)
> 
> It begin to try with a 3 chars file name, if this fail, it try up to 8 chars, 
> if it is not possible to create a short file name up of 8 chars, the full bug 
> uuid is used (like now).

I've looked this over, and here are my thoughts:
  * If you want short bug names, won't you want short comment names too?
  * We should use libbe.util.id._truncate to generate the short IDs,
    so that `be html` truncation is consistent with general BE truncation.
  * You forgot to update the cross-linking code.
I've put these in when merging into my tree.

-- 
This email may be signed or encrypted with GPG (http://www.gnupg.org).
The GPG signature (if present) will be attached as 'signature.asc'.
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt

Attachment: pgpJVrKyvoUfo.pgp
Description: PGP signature

_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to