On Fri, 4 Apr 2014, Andrew Morgan wrote:

I've been trying to use a regular expression in the service registry without any luck. I'm running v3.5.2. I have an existing ant-style pattern that works:

 http://people.oregonstate.edu/~morgan/**

I tried to convert this to a regex:

 ^http://people\.oregonstate\.edu/~morgan/.*

I get:

 Unauthorized Service Access for Service: [
 http://people.oregonstate.edu/~morgan/CAS-1.3.2/test.php ] - service is
 not enabled in the service registry.

I tried various permutations based on my knowledge of Perl regular expressions, but I couldn't make it work.

What am I doing wrong?

Aha! I finally found that I am being hit by bug CAS-1241. I was modifying an existing service, so the expression_type column in the MySQL RegisteredServiceImpl table was not changed from 'ant' to 'regex'. After I manually changed it to 'regex', it correctly parsed the service URL.

Is this fixed or changed in CAS v4?

Thanks,
        Andy

--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to