Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
Hi Joe, Appreciate the response. thanks This is similar to what someone else told me too (that it may be a non-null terminated string issue). The point is how can I debug it further.I currently am printing all the character portions of the request rec including the headers_out and err_headers_o

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > Hi, i have an authentication module that i am trying to port from 64 bit > linux to 32 bit solaris. The problem is that when the module redirects the > request to the authentication page, the URL seems to be getting corrupted > when > it is pa

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > Hi Joe, Appreciate the response. thanks This is similar to what someone else > told me too (that it may be a non-null terminated string issue). The point is > how can I debug it further.I currently am printing all the character portions > of t

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
thanks again, yeah Ive logged it using fprintf statements upto the return(HTTP_REDIRECT) point of code at which point I assume it exits the code. Its also pretty much the last module being added as part of the LoadModule line of statements in the http. Is there anyway to make sure that no other

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > thanks again, yeah Ive logged it using fprintf statements upto the > return(HTTP_REDIRECT) point of code at which point I assume it exits the > code. Its also pretty much the last module being added as part of the > LoadModule line of statement

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
Hi, Could you let me know the syntax. I did a quick search for seting 'apache- registration to LAST" and couldnt find it. I dont know much about apache handlers ,I am more interested in getting this to work.. Va you email me instrtions as to how thses are used. The basic process flow is tha this

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > Hi, Could you let me know the syntax. I did a quick search for seting > 'apache- registration to LAST" and couldnt find it. ap_hook_insert_error_filter(insert_my_error_filter, NULL, NULL, APR_HOOK_LAST); The last parameter specifies where we ar

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
Gotccha, heres what the relevant hook info static void someModule_register_hooks (apr_pool_t * p) { ap_hook_post_config (Some_init_method, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_check_user_id (SomeMethod, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_auth_checker (SomeMethod, NULL, NULL, APR_HOOK_MIDD

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
apologies for all the typo's. I think im getting sick and probably shoudnt even be at work today ... :-) - Original Message - From: Sailesh Krishnamurti To: modules-dev@httpd.apache.org At: 12/10 11:06:13 Hi, Could you let me know the syntax. I did a quick search for seting 'apache- re

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > Gotccha, heres what the relevant hook info > static void someModule_register_hooks (apr_pool_t * p) > { > ap_hook_post_config (Some_init_method, NULL, NULL, APR_HOOK_MIDDLE); > ap_hook_check_user_id (SomeMethod, NULL, NULL, APR_HOOK_MIDDLE); >

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
just finished trying that. Same result still seems to have the same garbage characters. Is there any other debugging technique we can try. Can we force nulll termination of strings. Are we sure it is a non-null terminated string issue, since the characters are occuring in the begining of the str

Fwd:Re: http-redirect url gets corrupted in request_rec - apach

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
could it also have somthing to do with the way '/'s are handled in 64bit versus 32 bit env. If my memory is right, these characters always seem to start from the '/' position. - Original Message - From: Sailesh Krishnamurti To: modules-dev@httpd.apache.org At: 12/10 12:51:35 just fini

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
Please Stop Top Posting. SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > just finished trying that. Same result still seems to have the same garbage > characters. Is there any other debugging technique we can try. Can we force > nulll termination of strings. Are we sure it is a non-null term

Re: How does set status code in filter work

2007-12-10 Thread John Zhang
Joe, Thanks for you rreply, but I do not quite understand "Your filter should run before the content type is set". Could you elaberated on that? My filter is an output filter. Also, if I issue a redirect in my (output) filter to (say /errors/HTTP_FORBIDDEN.html) and I am a filter for .htm

Re: How does set status code in filter work

2007-12-10 Thread Joe Lewis
John Zhang wrote: > Joe, > Thanks for you rreply, but I do not quite > understand "Your filter should run before the content > type is set". Could you elaberated on that? My filter > is an output filter. > The filter types are AP_FTYPE_ (followed by one of the following ) RESOURCE, CONTENT

Re: Fwd:Re: http-redirect url gets corrupted in request_rec - apach

2007-12-10 Thread ed
On Mon, 10 Dec 2007 13:00:51 -0500 "SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN" <[EMAIL PROTECTED]> wrote: > could it also have somthing to do with the way '/'s are handled in > 64bit versus 32 bit env. If my memory is right, these characters > always seem to start from the '/' position. The cha

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Ralf Mattes
On Mon, 2007-12-10 at 12:03 -0700, Joe Lewis wrote: Yeah, it kind of gets anoying soon ;-) > Please Stop Top Posting. > > SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > > just finished trying that. Same result still seems to have the same garbage > > characters. Is there any other debuggin