Thread: Re: [Secureideas-base-devel] Use Archive Database Doesn't Work
Brought to you by:
secureideas,
sinukas
From: Briggs, B. <Bru...@su...> - 2006-07-27 23:38:20
|
I'm using IIS 6.0. I'll try this with Apache tomorrow. =20 Bruce ________________________________ From: sec...@li... [mailto:sec...@li...] On Behalf Of Briggs, Bruce Sent: Wednesday, July 26, 2006 2:46 PM To: BASE Developers Subject: [Secureideas-base-devel] Use Archive Database Doesn't Work I get a hard hang on my web browser when I click on the Use Archive Database link. This is with both IE6 and Firefox and for both V1.2.5 & 1.2.6. =20 I've isolated the problem to these statements on lines 80 and 86 (V1.2.6) in base_main.php =20 header("Location: ". $BASE_urlpath . "/base_main.php"); =20 If these lines are commented out, then the Use Archive Database link now works for me. =20 Anyone have a clue as to why?=20 =20 =20 Bruce |
From: Briggs, B. <Bru...@su...> - 2006-07-28 14:06:39
|
In the PHP manual: "Note: HTTP/1.1 requires an absolute URI as argument to Location: <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30> including the scheme, hostname and absolute path, but some clients accept relative URIs." http://us3.php.net/header =20 The header statements in base.main.php use a relative URI, not an absolute URI. When I change the relative URI to an absolute one, things now work on IIS 6.0. =20 I think that all header("Location: code lines should be changed to absolute URIs. =20 Bruce ________________________________ From: sec...@li... [mailto:sec...@li...] On Behalf Of Briggs, Bruce Sent: Thursday, July 27, 2006 7:38 PM To: Briggs, Bruce; BASE Developers Subject: Re: [Secureideas-base-devel] Use Archive Database Doesn't Work I'm using IIS 6.0. I'll try this with Apache tomorrow. =20 Bruce ________________________________ From: sec...@li... [mailto:sec...@li...] On Behalf Of Briggs, Bruce Sent: Wednesday, July 26, 2006 2:46 PM To: BASE Developers Subject: [Secureideas-base-devel] Use Archive Database Doesn't Work I get a hard hang on my web browser when I click on the Use Archive Database link. This is with both IE6 and Firefox and for both V1.2.5 & 1.2.6. =20 I've isolated the problem to these statements on lines 80 and 86 (V1.2.6) in base_main.php =20 header("Location: ". $BASE_urlpath . "/base_main.php"); =20 If these lines are commented out, then the Use Archive Database link now works for me. =20 Anyone have a clue as to why?=20 =20 =20 Bruce |
From: Kevin J. <kjo...@se...> - 2006-07-30 21:24:26
|
On Jul 28, 2006, at 9:47 AM, Briggs, Bruce wrote: > In the PHP manual: > "Note: HTTP/1.1 requires an absolute URI as argument to Location: > including the scheme, hostname and absolute path, but some clients > accept relative URIs." > http://us3.php.net/header > > The header statements in base.main.php use a relative URI, not an > absolute URI. > When I change the relative URI to an absolute one, things now work > on IIS 6.0. > > I think that all header("Location: code lines should be changed > to absolute URIs. > > Bruce > Makes sense... Good catch. Does anyone see a reason why we couldn't just change the instructions for the base_conf.php to have them enter a server name also? This would make the URL absolute. Kevin |
From: Briggs, B. <Bru...@su...> - 2006-07-31 15:12:25
|
The sample code shown in the PHP manual is one way to get the server name without requiring a new variable to be defined in base_conf.php. $host =3D $_SERVER['HTTP_HOST']; Bruce ________________________________ From: Kevin Johnson [mailto:kjo...@se...]=20 Sent: Sunday, July 30, 2006 5:24 PM To: Briggs, Bruce Cc: BASE Developers Subject: Re: [Secureideas-base-devel] Use Archive Database Doesn't Work On Jul 28, 2006, at 9:47 AM, Briggs, Bruce wrote: In the PHP manual: "Note: HTTP/1.1 requires an absolute URI as argument to Location: <http://portal.mxlogic.com/redir/?2DuUVBdB4sCrjLtN4QszAn63o08MPM070J6IWS Gvj8KSjshsObJAT4n2ZfIyNMe0ODShoVCVK_nhod7arX8VB4TsSl4qAUkH05k-PsvAx-QU6C TQTzhOrhhvojd7b3zypJNwS2_id41Fr6fIT7V8vJ2V3qungYPVVFtd40jFVEw48S9Oc-q80X pWgSDCy0Qg6y0eHZ86yupEw0mIiFKvxYY1NJ4SCrjKOMO-OOO-rZXGVWpN4> including the scheme, hostname and absolute path, but some clients accept relative URIs." http://us3.php.net/header <http://portal.mxlogic.com/redir/?2DuUVBdB4sCrjLtN4QszAn63o0dKzf17wrxfZg -9K_nhod7arX8VB4TsSl4qAUkH05k-PsvAx-QU6CTQTzhOrhhvojd7b3zypJNwS2_id41Fr6 fIT7V8vJ2V3qungYPVVFtd40jFVEw48S9Oc-q80XpWgSDCy0Qg6y0eHZ86yupEw0mIiFKvxY Y1NJcSCrjKOMO-OOO-rZXGVWpN4>=20 =20 The header statements in base.main.php use a relative URI, not an absolute URI. When I change the relative URI to an absolute one, things now work on IIS 6.0. =20 I think that all header("Location: code lines should be changed to absolute URIs. =20 Bruce Makes sense... Good catch. Does anyone see a reason why we couldn't just change the instructions for the base_conf.php to have them enter a server name also? This would make the URL absolute. Kevin |
From: Jon H. <jh...@sp...> - 2006-07-31 16:07:47
|
On Mon, Jul 31, 2006 at 11:12:16AM -0400, Briggs, Bruce wrote: > The sample code shown in the PHP manual is one way to get the server > name without requiring a new variable to be defined in base_conf.php. > $host = $_SERVER['HTTP_HOST']; I agree that this is the better way to do it. Having a mixture of DNS names, vhost names and then this other variable in base_conf.php is just asking for trouble. -jon |
From: Kevin J. <kjo...@se...> - 2006-07-31 21:39:19
|
On Jul 31, 2006, at 11:12 AM, Briggs, Bruce wrote: > The sample code shown in the PHP manual is one way to get the > server name without requiring a new variable to be defined in > base_conf.php. > $host = $_SERVER['HTTP_HOST']; > Bruce > This works. But I wasn't recommending that we put in a new variable, just that we would change the description of the existing one. Kevin --------------------- GCIA, GCIH, CEH BASE Project Lead http://base.secureideas.net The next step in IDS analysis! |