UserFolder doman spec with wildcards
Bug #141665 reported by
Toby Dickenson
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
UserFolder's domainSpecMatch allows wilcards in its domain specification, but a recent change to domainSpecValidate, which validates user input when changing the domain spec, rejects * characters.
To post a comment you must log in.
Andreas asked:
<pre>
> Can you give an example ?
</pre>
From the Zope book at http:// www.zope. org/Members/ michel/ ZB/Security. dtml:
<pre>
> You can also use IP numbers with asterisks to indicate wild card
> instead of domain names to specify domains. For example,
> "209.67.167.*" will match all IP addresses that start with
> "209.67.167".
</pre>
Im sure the old adminstrators guide documented that it worked with domain names too.
Also, it is also suprisingly useful to be able to specify a match-everything pattern that is simply "*". In the old collector, item 2002 was a patch to add an optimisation for this case, and documentation about *why* it is useful. Brian merged this patch in User.py revision 1.133.2.7.