If a match template contained a placeholder in a path element (e.g. host) and the to be matched URL element matched but was just shorter than the template (before the placeholder end) it would lead to an AIOOB Exception.
e.g.
template: scheme://{some_value(allowed|values)}somethinglonger/one/{param}/three
url to match scheme://longer/one/param/three
Scheme matches
host (will start to match from back) and it matches char by char bur the one in the template is longer (before the placeholder) in this case we need to avoid the AIOOB in url segment and it also does not match.
If a match template contained a placeholder in a path element (e.g. host) and the to be matched URL element matched but was just shorter than the template (before the placeholder end) it would lead to an AIOOB Exception.
e.g.
template:
scheme://{some_value(allowed|values)}somethinglonger/one/{param}/three
url to matchscheme://longer/one/param/three
Scheme matches host (will start to match from back) and it matches char by char bur the one in the template is longer (before the placeholder) in this case we need to avoid the AIOOB in url segment and it also does not match.