I looked in tests & reg-tests, but didn't see any clear way to add tests
for verifying that fetchers work correctly.

I think my co-worker found an edge-case on smp_fetch_url_param/smp_fetch_param.

Trying to identify URLs that have a URL parameter set, that MIGHT not
have a value. This is commonly found in AWS S3 sub-resource URLs.

Sample inputs that are all expected to match below.

# Desired code:
acl bucket_website_crud urlp(website) -m found

# Should_match, Input
1,/?website
1,/?website=a
1,/?website&
1,/?website&foo
1,/?website=a&foo
1,/?website&foo
1,/?website&foo=1
1,/?website=a&foo=1
1,/?website&foo=1
1,/?foo&website
1,/?foo&website=a
1,/?foo&website&
1,/?foo=&website
1,/?foo=&website=a
1,/?foo=&website&

# Workaround:
acl bucket_website_crud url ?website
acl bucket_website_crud url &website

-- 
Robin Hugh Johnson
E-Mail     : [email protected]
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

Attachment: signature.asc
Description: Digital signature

Reply via email to