Hi Tom,

> "Thomas Colin de Verdiere" wrote:
> what's your problem in ajp12

the problem, using sendRedirect( very long URL ) should send a
HTTP-Header to the client like :
HTTP/1.1 302 FOUND
Location: the new location

the Result i got was something like
HTTP/1.1 302 htp://.... and a lot of more date somtimes whith newlines
in it

Date: .... some more header after empty line ...

The result was: The client could not show the new page.

In the file jk_ajp12_worker.c i found the reason.
In function ajp12_handle_response()
the call jk_sb_get( ,&line ) will fill the buffer line.
After finding the word "Status" in this line the pointer reason will
save the adress of the beginning of the reason in the line.
"FOUND" in my case. 
Aditional calls to jk_sb_get() will fill the buffer line with new data.
So the pointer reason becomes invalid and points to some undefined data.
This data will be printed later as Reason after HTTP/1.1 302 <here>

I fixed this - in a patch i send to this list. Was that the right way ?
Who will add this to the current source-tree ?



Dirk

Reply via email to