You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2006/01/02 21:39:15 UTC

DO NOT REPLY [Bug 38103] New: - HTTPSampler2 does not handle session cookies correclty

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103

           Summary: HTTPSampler2 does not handle session cookies correclty
           Product: JMeter
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: joanna@ais.pl


HTTPSampler2 sets cookies using

method.setRequestHeader("Cookie", cookieHeader);

unfortunately "Cookie" parameter is replaced with different content before
request is sent. It is done somewhere in httpclient. If we replace above line
with something like this:

httpState.addCookie(cookie);

it seems that it helps.

In addition I think that cookies having the same name and domain should be
replaced with new ones instead of being added to the list of current ones.

Moreover HTTPSampler2 is not able to use cookies saved by HTTPSampler, so it is
not possible to mix HTTPSampler with HTTPSampler2.

Query data are incorrectly saved in 'View results in tree' listener - it looks
differently than in HTTPSampler.

Request are not repeated if there have been socket creation exceptions - I guess
that after such exception request should be resent instead of throwing exception.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From sebb@apache.org  2006-01-12 02:04 -------
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)

...

> I'm not talking about using the same sockets. I'm talking about reusing by 
> HTTPSampler2 cookies saved by HTTPSampler - currently it is not working. If I 
> create a test plan which consists of HTTPSampler, HTTPSampler2 and a 
> HTTPCookieManager it will not be possible for HTTPSampler2 to 'continue' flow 
> started by HTTPSampler - it will simply 'forget' about SESSIONID parameter. In 
> a result request sent by HTTPSampler2 will be treated as a new one not related 
> to request sent by HTTPSampler before.

Sorry, I confused session with connection.

Please raise a new bug for this, and attach a sample plan to it.

Closing the original bug as it is fixed.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103


joanna@ais.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |2.1.1




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From sebb@apache.org  2006-01-03 13:53 -------
I made some changes to HTTP2 cookie handling since 2.1.1 - these are in the 
nightly builds.

Please could you check if the problem still applies?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103


joanna@ais.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW




------- Additional Comments From joanna@ais.pl  2006-01-11 21:53 -------
(In reply to comment #4)
> (In reply to comment #3)
> > It looks much better now, but it is not resolved yet.
> Is the original problem solved by the nightly build?

yes

> > HTTPSampler2 still cannot be mixed with HTTPSampler. Currently it is not
> > possible to post one request using HTTPSampler then another one using
> > HTTPSampler2 and have the same session be used.
> This is impossible - there is no access to the sockets used by HTTPSampler.

I'm not talking about using the same sockets. I'm talking about reusing by 
HTTPSampler2 cookies saved by HTTPSampler - currently it is not working. If I 
create a test plan which consists of HTTPSampler, HTTPSampler2 and a 
HTTPCookieManager it will not be possible for HTTPSampler2 to 'continue' flow 
started by HTTPSampler - it will simply 'forget' about SESSIONID parameter. In 
a result request sent by HTTPSampler2 will be treated as a new one not related 
to request sent by HTTPSampler before.

> > In addtion, every exception during socket creation is treated as error. 
> Please,
> > note, that when there are many threads working in the system it may not be
> > possible to create another socket - there simply may not be enough 
available
> > free ports in the system. IMHO sampler should try to bind to a socket 
several
> > times before exception is rised.
> Please raise this as a separate enhancement request.

will do


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103





------- Additional Comments From joanna@ais.pl  2006-01-02 21:43 -------
Created an attachment (id=17309)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17309&action=view)
Simple work-around

This is a simple work-around I believe that there is a better solution (it
works for me)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From sebb@apache.org  2006-01-09 14:32 -------
(In reply to comment #3)
> It looks much better now, but it is not resolved yet.

Is the original problem solved by the nightly build?

> HTTPSampler2 still cannot be mixed with HTTPSampler. Currently it is not
> possible to post one request using HTTPSampler then another one using
> HTTPSampler2 and have the same session be used.

This is impossible - there is no access to the sockets used by HTTPSampler.

> In addtion, every exception during socket creation is treated as error. 
Please,
> note, that when there are many threads working in the system it may not be
> possible to create another socket - there simply may not be enough available
> free ports in the system. IMHO sampler should try to bind to a socket several
> times before exception is rised.

Please raise this as a separate enhancement request.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103


joanna@ais.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|other                       |All




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38103] - HTTPSampler2 does not handle session cookies correclty

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38103


joanna@ais.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW




------- Additional Comments From joanna@ais.pl  2006-01-08 22:26 -------
It looks much better now, but it is not resolved yet.

HTTPSampler2 still cannot be mixed with HTTPSampler. Currently it is not
possible to post one request using HTTPSampler then another one using
HTTPSampler2 and have the same session be used.

In addtion, every exception during socket creation is treated as error. Please,
note, that when there are many threads working in the system it may not be
possible to create another socket - there simply may not be enough available
free ports in the system. IMHO sampler should try to bind to a socket several
times before exception is rised.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org