On Tue, Apr 20, 2021 at 07:59:15PM +0200, Tim Düsterhus wrote: > Willy, > > On 4/19/21 3:54 PM, Willy Tarreau wrote: > > > I would advice against making them into converters, because it forces the > > > user to think about the appropriate fetch to use. As an example the > > > path-strip-dotdot normalizer probably should not be applied to the query > > > string! The actions hide this type of detail from the user which I > > > consider > > > to be a good thing. > > > > I disagree with this line of reasoning, because developers must never > > decide what users need (and that's something very difficult to do). We > > must only help to figure what users really need (compared to what they > > ask for), and estimate the technical feasibility and the consistency > > with all other parts so that each feature doesn't look like it's been > > developed differently. > > ack. My personal experience is mostly with less experienced end users vs > system administrators and I constantly have to prevent those end users from > shooting themselves into the foot. That's why I try to develop safe > interfaces where one is unable to do something that might hurt them due to > them not knowing all the fine details.
Yes I understand this, that's an area where a single mistake can be irreversible (or at a high cost). That's the same reason why I reuse to work as root, or to run scripts requiring "curl | sh". > > I perfectly understand that some transformations may require the whole > > URI for various reasons, but for those that could be expressed on > > individual parts, I do think that converters will be way more flexible > > over the long term. > > Luckily this should be easy enough with the clear split between the action > and the actual normalizers that simply take an ist. OK, great! I forgot to issue dev17 last Friday, different work place, change of habits and being busy on the pools mess made me simply forget it. I'll do it for next Friday with some other stuff. If you think there's anything doable by then, just let me know so that I can wait for you, otherwise no stress, it can come at any time. Thanks, Willy

