Dynamic parameters

Jochen Wiedmann jochen.wiedmann at gmail.com
Fri May 11 07:40:43 UTC 2007


Hi,

I have a use case, which I'd like to discuss here.

I've got a Bugzilla installation, which is located between two
networks. In other words, it has two IP addresses. That's not unusual,
but unfortunately noth IP addresses are unreachable from the
respective other network. (This cannot be changed: The machine is
sitting between two large corporate networks and I do not have any
influence on the routing.)

In other words, I am forced to change the "urlbase" parameter,
depending on the clients IP address. Currently I do that by hacking
Bugzill::Config->Param with a regexp of

    s/^([^\:]+\:\/\/)([\w\.\-]+)(.*)/$1$ENV{'SERVER_NAME'}$3/

I wonder whether I am the only one with a similar use case. Are there
any hooks in Bugzilla, which would allow me to remove my ugly hack? Or
would `such a hook be a valuable contribution?

Thanks,

Jochen

-- 
My cats know that I am a loser who goes out for hunting every day
without ever returning as much as a single mouse. Fortunately, I've
got a wife who's a real champ: She leaves the house and returns within
half an hour, carrying whole bags full of meal.



More information about the developers mailing list