mod_auth_cas users/developers,
 
I've run into a problem which I believe is related to mod_auth_cas in
handling URI with spaces in them.
 
Prior to using mod_auth_cas things were working.
Here is the scenario.
 
if I have a file located in 
say 
c:\htdocs\test\phpInfo.php
with the appropriate .htaccess
with the directive
AuthType CAS
 
I can access that file via my web browser
and I get the standard phpInfo page.
 
if I copy those same files to a directory such as
c:\htdocs\test p\phpInfo.php
along with the same .htaccess file I get this error in my browsser
(Firefox).
"The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this
address in a way that will never complete.
    *   This problem can sometimes be caused by disabling or refusing to
accept
          cookies."
 
 
Excerts of the access logs as an example with No Space in the URL and
with a space in the URL (done with completely shutting down the browser
and clearing the logs.
Along with my analysis/observation.  Looking forward to hearing what
others might have to say.
In comparing the access logs (A) without space and (B) with a space in
the URL
I see at time [06/Jan/2010:19:48:22 +0000] (5th entry down) in acces log
(B) it seems that Apache forgets that the userid "root" requesting the
document has authenticated indicated the a "-" as compared to
[06/Jan/2010:19:46:42 +0000] (7th entry down) and at that point goes
into an infinite loop, until Apache detects it and stops it.
 
I'm not sure if the problem is with mod_auth_cas or with CAS itself. 
I'm running CAS-3-3-4-final and mod_auth_cas-1.0.8 on a windows box.
I checked out the mod_auth_cas-1.0.8 and had the modify the
mod_auth_cas.c and mod_auth_cas.h slightly to make it compile
based off of a previous post
 
has anyone elese experienced a similar problem with spaces in a URL?
I've tried escaping the space the %20 with no luck.
the only difference is the space in the directory name of "test p" and
"test"
 
Thank you in advance.
 
Respectfully,
 
Peter
 
 
 
 
Access Log (A) without a space in the URL
************************************************************************
***********************************************************
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET /test/phpInfo.php
HTTP/1.1" 302 292
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET /test/phpInfo.php
HTTP/1.1" 302 292
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%2fphpInfo.php
HTTP/1.1" 200 3523
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%2fphpInfo.php
HTTP/1.1" 200 3523
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET /cas/css/cas.css
HTTP/1.1" 200 6362
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET /cas/css/cas.css
HTTP/1.1" 200 6362
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/js/common_rosters.js HTTP/1.1" 200 6829
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/js/common_rosters.js HTTP/1.1" 200 6829
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET /cas/favicon.ico
HTTP/1.1" 200 170
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET /cas/favicon.ico
HTTP/1.1" 200 170
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_tr.gif HTTP/1.1" 200 107
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_tr.gif HTTP/1.1" 200 107
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_tl.gif HTTP/1.1" 200 103
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_tl.gif HTTP/1.1" 200 103
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_br.gif HTTP/1.1" 200 386
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_br.gif HTTP/1.1" 200 386
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_bl.gif HTTP/1.1" 200 102
127.0.0.1 - - [06/Jan/2010:19:46:38 +0000] "GET
/cas/images/key-point_bl.gif HTTP/1.1" 200 102
127.0.0.1 - - [06/Jan/2010:19:46:42 +0000] "POST
/cas/login;jsessionid=161D4951BA4E33143F9C791945459557?service=https%3a%
2f%2fhost1.test.org%2ftest%2fphpInfo.php HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:46:42 +0000] "POST
/cas/login;jsessionid=161D4951BA4E33143F9C791945459557?service=https%3a%
2f%2fhost1.test.org%2ftest%2fphpInfo.php HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:46:42 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%2fphpIn
fo.php&ticket=ST-95-2nR6Wa1rLHhPpfZMgEOj-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:46:42 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%2fphpIn
fo.php&ticket=ST-95-2nR6Wa1rLHhPpfZMgEOj-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET
/test/phpInfo.php?ticket=ST-95-2nR6Wa1rLHhPpfZMgEOj-cas HTTP/1.1" 302
232
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET
/test/phpInfo.php?ticket=ST-95-2nR6Wa1rLHhPpfZMgEOj-cas HTTP/1.1" 302
232
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET /test/phpInfo.php
HTTP/1.1" 200 61281
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET /test/phpInfo.php
HTTP/1.1" 200 61281
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET
/test/phpInfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200
2524
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET
/test/phpInfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200
2524
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET
/test/phpInfo.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200
2146
127.0.0.1 - root [06/Jan/2010:19:46:42 +0000] "GET
/test/phpInfo.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200
2146
127.0.0.1 - - [06/Jan/2010:19:46:43 +0000] "GET /favicon.ico HTTP/1.1"
200 5430
127.0.0.1 - - [06/Jan/2010:19:46:43 +0000] "GET /favicon.ico HTTP/1.1"
200 5430
************************************************************************
************************************************************************
*************************
 
Access log (B) with a space in the URL
************************************************************************
************************************************************************
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 200 3527
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 200 3527
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET /cas/css/cas.css
HTTP/1.1" 200 6362
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET /cas/css/cas.css
HTTP/1.1" 200 6362
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/js/common_rosters.js HTTP/1.1" 200 6829
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/js/common_rosters.js HTTP/1.1" 200 6829
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET /cas/favicon.ico
HTTP/1.1" 200 170
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET /cas/favicon.ico
HTTP/1.1" 200 170
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_tl.gif HTTP/1.1" 200 103
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_tl.gif HTTP/1.1" 200 103
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_tr.gif HTTP/1.1" 200 107
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_tr.gif HTTP/1.1" 200 107
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_bl.gif HTTP/1.1" 200 102
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_bl.gif HTTP/1.1" 200 102
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_br.gif HTTP/1.1" 200 386
127.0.0.1 - - [06/Jan/2010:19:48:17 +0000] "GET
/cas/images/key-point_br.gif HTTP/1.1" 200 386
127.0.0.1 - - [06/Jan/2010:19:48:21 +0000] "POST
/cas/login;jsessionid=66D70080D7DCF83C36015BBCD3AC6261?service=https%3a%
2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:21 +0000] "POST
/cas/login;jsessionid=66D70080D7DCF83C36015BBCD3AC6261?service=https%3a%
2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-96-xoy7ZiDqTts7whjcPlzz-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-96-xoy7ZiDqTts7whjcPlzz-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-96-xoy7ZiDqTts7whjcPlzz-cas HTTP/1.1"
302 234
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-96-xoy7ZiDqTts7whjcPlzz-cas HTTP/1.1"
302 234
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-97-duUVwguhk4xDtcpG2GVe-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-97-duUVwguhk4xDtcpG2GVe-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-97-duUVwguhk4xDtcpG2GVe-cas HTTP/1.1"
302 234
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-97-duUVwguhk4xDtcpG2GVe-cas HTTP/1.1"
302 234
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-98-Webwbf4yBV1ViuaY5Euz-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-98-Webwbf4yBV1ViuaY5Euz-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-98-Webwbf4yBV1ViuaY5Euz-cas HTTP/1.1"
302 234
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-98-Webwbf4yBV1ViuaY5Euz-cas HTTP/1.1"
302 234
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-99-wNGHc6a4XpvqX0TKmYxM-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-99-wNGHc6a4XpvqX0TKmYxM-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-99-wNGHc6a4XpvqX0TKmYxM-cas HTTP/1.1"
302 234
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-99-wNGHc6a4XpvqX0TKmYxM-cas HTTP/1.1"
302 234
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-100-YGaEtbSYO4dZxXOL2gYI-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-100-YGaEtbSYO4dZxXOL2gYI-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-100-YGaEtbSYO4dZxXOL2gYI-cas HTTP/1.1"
302 234
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-100-YGaEtbSYO4dZxXOL2gYI-cas HTTP/1.1"
302 234
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-101-ekKijlwBFNkpeWsPvxj0-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-101-ekKijlwBFNkpeWsPvxj0-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-101-ekKijlwBFNkpeWsPvxj0-cas HTTP/1.1"
302 234
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-101-ekKijlwBFNkpeWsPvxj0-cas HTTP/1.1"
302 234
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/login?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fphpInfo.php
HTTP/1.1" 302 -
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-102-HEOdboyh4jXFRlihedk6-cas HTTP/1.0" 200 178
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET
/cas/serviceValidate?service=https%3a%2f%2fhost1.test.org%2ftest%20p%2fp
hpInfo.php&ticket=ST-102-HEOdboyh4jXFRlihedk6-cas HTTP/1.0" 200 178
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-102-HEOdboyh4jXFRlihedk6-cas HTTP/1.1"
302 234
127.0.0.1 - root [06/Jan/2010:19:48:22 +0000] "GET
/test%20p/phpInfo.php?ticket=ST-102-HEOdboyh4jXFRlihedk6-cas HTTP/1.1"
302 234
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296
127.0.0.1 - - [06/Jan/2010:19:48:22 +0000] "GET /test%20p/phpInfo.php
HTTP/1.1" 302 296

************************************************************************
************************************************************************
 
 

 

 

-- 
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