[squid-users] Squid regex grammar
Yuri
yvoinov at gmail.com
Fri Oct 27 16:33:33 UTC 2017
27.10.2017 22:01, Alex Rousskov пишет:
> On 10/27/2017 09:43 AM, Yuri wrote:
>
>> So, in each separate case we're should make testcase for EACH regex in
>> acl to make sure it will or not will work.
>>
>> Generally speaking, with thousands of regular expressions and thousands
>> of sites - it sounds pretty dumb, right? Many to many relasions,
>> thousands tests etc.
> What an admin has to do is onerous, but not as bad as you make it sound:
>
> * A handful of test cases is sufficient to validate whether Squid
> instance X supports all extended regular expressions used by its ACLs.
> In fact, Squid can be easily modified to run such test cases on startup!
>
> * If you want to test that each of the 10K ACLs matches what you want it
> to match, then you have to write a lot more test cases, of course, but
> such deployment-specific functionality testing is a completely different
> topic out of this thread scope.
>
>
>> What could be simpler is to clearly document the following: "Never use
>> anything other than POSIX Basic in regular expressions because we do not
>> guarantee and can not guarantee it will work"?
> You are right: Adding the above text to squid.cond.documented is fairly
> simple. If Squid actually supports extended regular expressions in some
> environments, then such a text will also be a bit misleading/misguiding.
> Wiki updates or pull requests improving Squid documentation are always
> welcomed!
Yes. In some cases/environments POSIX Extended works and this introduces
problems when we're trying to populate good working config from one
environment to another (especially when it slightly different).
>
> Personally, I cannot volunteer to add this documentation because I do
> not know whether Squid can support extended regular expressions in some
> environments, and I do not want to spend time adding potentially
> misleading/misguiding documentation.
>
> Long-term, we should introduce a configuration option that specifies the
> exact regex flavor an admin wants _and_ forces Squid to quit if that
> exact flavor is not supported by the running Squid instance.
Or put warning in cache.log. This will be ideally.
>
> Alex.
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
--
**************************
* C++: Bug to the future *
**************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x3E3743A7.asc
Type: application/pgp-keys
Size: 2887 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20171027/23a34011/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20171027/23a34011/attachment.sig>
More information about the squid-users
mailing list