Re: Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2019-03-11 Thread Ciprian Dorin Craciun
On Mon, Mar 11, 2019 at 1:22 PM Tim Düsterhus wrote: > > BTW, should I also open a feature request for an actual "subdir" > > match? (Perhaps if I have some time I could even come-up with a > > patch...) > > I am not responsible for deciding what gets in and what doesn't. But: In > my opinion the

Re: Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2019-03-11 Thread Tim Düsterhus
Ciprian, Am 11.03.19 um 12:15 schrieb Ciprian Dorin Craciun: > On Mon, Mar 11, 2019 at 1:12 PM Tim Düsterhus wrote: >> I filed an issue to look into this: >> https://github.com/haproxy/haproxy/issues/61 > > > Thanks. (I didn't knew about the GitHub issues as being the official > channel to sub

Re: Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2019-03-11 Thread Ciprian Dorin Craciun
On Mon, Mar 11, 2019 at 1:12 PM Tim Düsterhus wrote: > I filed an issue to look into this: > https://github.com/haproxy/haproxy/issues/61 Thanks. (I didn't knew about the GitHub issues as being the official channel to submit issues and requests.) BTW, should I also open a feature request for a

Re: Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2019-03-11 Thread Tim Düsterhus
Ciprian, Am 11.03.19 um 12:04 schrieb Ciprian Dorin Craciun: > I would strongly suggest adding an explicit warning in the > documentation about this pitfall. I filed an issue to look into this: https://github.com/haproxy/haproxy/issues/61 Best regards Tim Düsterhus

Re: Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2019-03-11 Thread Ciprian Dorin Craciun
On Mon, Mar 11, 2019 at 12:58 PM Tim Düsterhus wrote: > The documentation only talks about a slash-delimited value, not about > being at the beginning. Technically yes, it works as documented, except the documentation is misleading by using the work `subdir match` right in the beginning... Moreo

Re: Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2019-03-11 Thread Tim Düsterhus
Ciprian, Am 11.03.19 um 09:05 schrieb Ciprian Dorin Craciun: > Which of the following would it match: > * `/test` -- I would expect yes; > * `/test/whatever` -- I would expect yes; > * `/whatever/test` -- I would expect no, however it does (at least in > 1.8.14)... > The documentation only talk

Re: Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2019-03-11 Thread Ciprian Dorin Craciun
[I'm re-sending this email as I guess it "fell through the cracks", and I do believe that it is a bug.] According to the HAProxy 1.8 documentation: http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#7.1 - "dir" : subdir match : check that a slash-delimited portion of the

Small question regarding the sub-dir match (i.e. `-m dir`) with regard to "rooted" patterns

2018-12-05 Thread Ciprian Dorin Craciun
According to the HAProxy 1.8 documentation: http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#7.1 - "dir" : subdir match : check that a slash-delimited portion of the contents exactly matches one of the provided string patterns. This may be used wi