Re: Bug when passing variable to mapping function

2018-08-01 Thread Jarno Huuskonen
Hi, On Tue, Jul 17, Emeric Brun wrote: > > On Fri, 29 Jun 2018 at 07:15, Jarno Huuskonen > > wrote: > >> On Thu, Jun 28, Jarno Huuskonen wrote: > >>> I think this is the commit that breaks map_regm in this case: > >>> b5997f740b21ebb197e10a0f2fe9dc13163e1772 (MAJOR: threads/map: Make > >>>

Re: Bug when passing variable to mapping function

2018-07-17 Thread Emeric Brun
Hi Jarno, and thanks Lukas On 07/16/2018 07:27 AM, Lukas Tribus wrote: > Hello, > > > > On Fri, 29 Jun 2018 at 07:15, Jarno Huuskonen wrote: >> >> Hi, >> >> On Thu, Jun 28, Jarno Huuskonen wrote: >>> I think this is the commit that breaks map_regm in this case: >>>

Re: Bug when passing variable to mapping function

2018-07-16 Thread Lukas Tribus
Hello, On Fri, 29 Jun 2018 at 07:15, Jarno Huuskonen wrote: > > Hi, > > On Thu, Jun 28, Jarno Huuskonen wrote: > > I think this is the commit that breaks map_regm in this case: > > b5997f740b21ebb197e10a0f2fe9dc13163e1772 (MAJOR: threads/map: Make > > acls/maps thread safe). > > > > If I

Re: Bug when passing variable to mapping function

2018-07-09 Thread Daniel Schneller
Hi! Thanks for your analysis. I was away for a few days, hence the late response. > AFAIK this works on 1.7.11 but seems to be broken on all 1.8.x. Interesting. I tried the new config locally with 1.8 and found the bug. Production servers are still on 1.7, so it would even have worked :) I am

Re: Bug when passing variable to mapping function

2018-06-28 Thread Jarno Huuskonen
Hi, On Thu, Jun 28, Jarno Huuskonen wrote: > I think this is the commit that breaks map_regm in this case: > b5997f740b21ebb197e10a0f2fe9dc13163e1772 (MAJOR: threads/map: Make > acls/maps thread safe). > > If I revert this commit from pattern.c:pattern_exec_match > then the map_regm \1 backref

Re: Bug when passing variable to mapping function

2018-06-28 Thread Jarno Huuskonen
Hi, On Mon, Jun 25, Daniel Schneller wrote: > This is the contents of the map file: > hostmap.txt - > ^(.*)\.(.*)$ \1 > -- Setting this to: ^(.*)\.(.*)$ \2 And I get X-Distri-Mapped-From-Var: com and with map_regm: ^(.*)\.(.*)\.(.*)$ \2.\3 (Host:

Bug when passing variable to mapping function

2018-06-25 Thread Daniel Schneller
Hi! While playing around with map_regm I noticed some strange behavior when using variables and map_regm. I managed to reduce it so a small test case and believe this is an actual bug. It tested this on macOS, should it be relevant. haproxy is installed via homebrew: - haproxy version