URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn’t matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.
@Martin try typing HTML and URLs into your browser (see how I have changed the case of much of the path. When I do it I do NOT get a 404 because my case is wrong. Regardless of what the W3 says case has little or no effect on my ability to path to a web resource.
How do I get Tyk to match all permutations of the case of a path. Does Tyk path specs support regular expressions or something?
If I black-list /System/Maintenance
Tyk will let the following fly right on through:
/system/maintenance
/System/maintenance
/SYstem/mAintenance
etc.
etc.
In the mean time, I’ve put a patch into our dev branch to make lists explicitly match on lowercase versions of the URL. Will be built into the nightlies if you want to pick it up there.
Might I suggest lower-casing both the in-coming URL and the black_list path? That way the user won’t have to be careful to enter all their paths in lower-case.
Thanks again for all your support!
Thought about doing that, but we convert all paths into regex expressions so I’m reticent about changing data, also saving users from themselves is a slippery slope