Le 29/07/2020 à 01:29, James Brown a écrit :
In earlier versions of haproxy, the txn.f object had a `date()` method when called from a fetch context which returned the current unix timestamp. In HAproxy 2.2, this method is removed.

[...]
My best guess is that this is related to ae6f125c

You're right, the date() method if no longer exposed because of this commit. This is obviously unexpected. But not so simple to fix. In fact, some sample fetches have a check function to validate arguments. If this function is considered as unsafe, mainly because some arguments may be freed, the sample fetch is ignored when the lua global context is initialized.

I guess it may be fixed by duplicating argument strings when necessary. This way all fetches could be exposed. I'll try to work on it.

--
Christopher Faulet

Reply via email to