regex in cas-protocol.xml

Marvin Addison marvin.addison at gmail.com
Tue Feb 23 09:34:21 EST 2016


On Tue, Feb 23, 2016 at 8:04 AM Tom Scavo <trscavo at gmail.com> wrote:

> My guess is: Perl is successfully matching a prefix of the URL whereas
> Java is trying to match the entire URL.
>

That's correct. Code uses
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#matches().
Contrast that with
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#find(),
which I believe is consistent with Perl behavior. In either case line
start/termination match chars are irrelevant. So what I said earlier is
wrong; the two expressions are not equivalent and you need the ".*"
signifying "everything following."

The logs will emit something like "successfully matched" at DEBUG when a
match is found, so that will hopefully help you troubleshoot your patterns.

M <users-unsubscribe at shibboleth.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160223/34e675a2/attachment.html>


More information about the users mailing list