<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
I think it is based on first match, whereas <br>
<br>
/createpdf does not match with /createpdf/zzzzzzzzzz.pdf<br>
<br>
but<br>
<br>
/createpdf** does match with /createpdf/zzzzzzzzzz.pdf<br>
<br>
Also see<br>
<br>
src/core/java/org/wyona/yanel/core/ResourceTypeMatcherV1ImplV2.java<br>
src/core/java/org/wyona/yanel/core/ResourceTypeDefaultMatcher.java<br>
src/core/java/org/wyona/yanel/core/util/WildcardReplacerHelper.java<br>
src/core/java/org/wyona/yanel/core/util/WildcardMatcherHelper.java<br>
src/core/java/org/wyona/yanel/core/ResourceConfigurationMap.java<br>
src/core/java/org/wyona/yanel/core/RTIbasedResourceConfiguration.java<br>
src/core/java/org/wyona/yanel/core/ResourceConfigurationMapV2.java<br>
src/core/java/org/wyona/yanel/core/ResourceManager.java<br>
src/core/java/org/wyona/yanel/core/api/ResourceTypeMatcherV1.java<br>
src/core/java/org/wyona/yanel/core/MatcherV1.java<br>
<br>
All the best<br>
<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 18.08.20 um 08:24 schrieb basZero:<br>
</div>
<blockquote type="cite"
cite="mid:CAOXzDSEExTXCgVtgdthPjbNFHvoJ+_pDkLTPAfnr79KQbjSgXA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Actually the patterns have to be like this:
<div><br>
</div>
<div>1) /pdfcreate**<br>
2) /**.pdf<br>
</div>
<div><br>
</div>
<div>It would make sense if Yanel would take the first match,
always. Otherwise it's like playing roulette...</div>
<div><br>
</div>
<div>Is there a flag where I could tell Yanel to apply "first
match" approach?</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, 18 Aug 2020 at 07:27,
Michael Wechner <<a href="mailto:michael.wechner@wyona.com"
moz-do-not-send="true">michael.wechner@wyona.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> Hi Balz<br>
<br>
yes, whereas try<br>
<br>
1) /createpdf* (or /createpdf/*<br>
2) /**.pdf<br>
<br>
Also see<br>
<br>
<a
href="http://www.yanel.org/en/documentation/resources/rc-map.html"
target="_blank" moz-do-not-send="true">http://www.yanel.org/en/documentation/resources/rc-map.html</a><br>
<br>
HTH<br>
<br>
Michi<br>
<br>
<div>Am 14.08.20 um 16:39 schrieb basZero:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>i have two similar rules in my map file:</div>
<div><br>
</div>
<div>a) /createpdf</div>
<div>b) /**.pdf</div>
<div><br>
</div>
<div><br>
</div>
<div>a comes BEFORE b in the map file.</div>
<div><br>
</div>
<div>When I request the following URL...</div>
<div>/createpdf/zzzzzzzzzz.pdf</div>
<div><br>
</div>
<div>... it seems to me that matcher b) executes. Is
this possible?</div>
<div>I thought that the map file is parsing from top
down... so the first match will be taken.</div>
<div><br>
</div>
<div>Am I right?</div>
<div><br>
</div>
<div>Cheers, Bas</div>
</div>
<br>
<fieldset></fieldset>
</blockquote>
<br>
</div>
-- <br>
Yanel-development mailing list <a
href="mailto:Yanel-development@wyona.com" target="_blank"
moz-do-not-send="true">Yanel-development@wyona.com</a><br>
<a
href="http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development</a></blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<br>
</body>
</html>