You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2018/08/28 15:40:48 UTC

[Bug 62659] New: HTTP Cookie Manger not handling Cookies properly

https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

            Bug ID: 62659
           Summary: HTTP Cookie Manger not handling Cookies  properly
           Product: JMeter
           Version: 4.0
          Hardware: PC
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: hcholleti@gridpoint.com
  Target Milestone: ---

Created attachment 36114
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36114&action=edit
ThreadGroupsetup

Iam trying to run 20 concurrent users and i have a http requests in the loop
which needs username in the Http request.I was using "only once controller" for
Login HTTP request. Iam fetching the usernames and password from CSV files and
using Cookie manager. Some how the cookie and the username sent to the
subsequent HTTP- Request doesn't match and throughing 401 unauthorized
exception".First run its successful. As, i was login in only once. In the 2nd
run subsequent HTTP request keep failing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

hcholleti <hc...@gridpoint.com> changed:

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #7 from hcholleti <hc...@gridpoint.com> ---
In the jmeter log i could see an error. while test is running.
2018-08-28 19:24:54,460 ERROR o.a.j.t.JMeterThread: Error while processing
sampler: 'retriewconfigurationDataAPI'.
java.util.ConcurrentModificationException: null
        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:907)
~[?:1.8.0_151]
        at java.util.ArrayList$Itr.next(ArrayList.java:857) ~[?:1.8.0_151]
        at
org.apache.jmeter.testelement.property.PropertyIteratorImpl.next(PropertyIteratorImpl.java:41)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.testelement.property.PropertyIteratorImpl.next(PropertyIteratorImpl.java:24)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.testelement.AbstractTestElement.setTemporary(AbstractTestElement.java:551)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.testelement.AbstractTestElement.setTemporary(AbstractTestElement.java:552)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.testelement.AbstractTestElement.addProperty(AbstractTestElement.java:301)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.testelement.AbstractTestElement.addProperty(AbstractTestElement.java:319)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.testelement.AbstractTestElement.setProperty(AbstractTestElement.java:352)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.setCookieManagerProperty(HTTPSamplerBase.java:861)
~[ApacheJMeter_http-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.setCookieManager(HTTPSamplerBase.java:871)
~[ApacheJMeter_http-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.addTestElement(HTTPSamplerBase.java:659)
~[ApacheJMeter_http-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.threads.TestCompiler.configureWithConfigElements(TestCompiler.java:312)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.threads.TestCompiler.configureSampler(TestCompiler.java:100)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
com.blazemeter.jmeter.controller.TestCompilerParallel.configureSampler(TestCompilerParallel.java:29)
~[jmeter-parallel-0.7.jar:?]
        at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:466)
~[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
[ApacheJMeter_core-4.0.jar:4.0 r1823414]
        at
com.blazemeter.jmeter.controller.JMeterThreadParallel.run(JMeterThreadParallel.java:60)
[jmeter-parallel-0.7.jar:?]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[?:1.8.0_151]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[?:1.8.0_151]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[?:1.8.0_151]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:1.8.0_151]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
2018-08-28 19:24:54,464 WARN o.a.j.p.h.s.HTTPSamplerBase: Existing AuthManager
HTTP Authorization Manager superseded by HTTP Authorization Manager
2018-08-28 19:25:00,040 INFO o.a.j.r.Summariser: summary +   1170 in 00:00:30 =
  39.0/s Avg:  4488 Min:     6 Max: 14677 Err:     0 (0.00%) Active: 20
Started: 360 Finished: 340
2018-08-28 19:25:00,041 INFO o.a.j.r.Summariser: summary =   1290 in 00:00:48 =
  27.0/s Avg:  4364 Min:     6 Max: 14677 Err:     0 (0.00%)
2018-08-28 19:25:30,006 INFO o.a.j.r.Summariser: summary +   1244 in 00:00:30 =
  41.5/s Avg:  3173 Min:     8 Max: 37315 Err:     9 (0.72%) Active: 20
Started: 360 Finished: 340
2018-08-28 19:25:30,007 INFO o.a.j.r.Summariser: summary =   2534 in 00:01:18 =
  32.6/s Avg:  3779 Min:     6 Max: 37315 Err:     9 (0.36%)
2018-08-28 19:26:00,024 INFO o.a.j.r.Summariser: summary +   1075 in 00:00:30 =
  35.8/s Avg:  3223 Min:    12 Max: 10994 Err:     0 (0.00%) Active: 20
Started: 360 Finished: 340
2018-08-28 19:26:00,024 INFO o.a.j.r.Summariser: summary =   3609 in 00:01:48 =
  33.5/s Avg:  3614 Min:     6 Max: 37315 Err:     9 (0.25%)
2018-08-28 19:26:30,006 INFO o.a.j.r.Summariser: summary +   1140 in 00:00:30 =
  38.0/s Avg:  3378 Min:    13 Max: 11379 Err:     0 (0.00%) Active: 20
Started: 360 Finished: 340
2018-08-28 19:26:30,006 INFO o.a.j.r.Summariser: summary =   4749 in 00:02:18 =
  34.5/s Avg:  3557 Min:     6 Max: 37315 Err:     9 (0.19%)
2018-08-28 19:26:43,847 ERROR o.a.j.t.JMeterThread: Error while processing
sampler: 'retriewconfigurationDataAPI'.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

hcholleti <hc...@gridpoint.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #12 from hcholleti <hc...@gridpoint.com> ---
Created attachment 36119
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36119&action=edit
TestPlan with ParallelController and  Simple Threadgroup

Please find the .jmx file contains 2-thread group ( with parallel controller &
simple thread group). If you see the HTTP request we need to pass the username
in the url. where i was getting username & password from csv files. UseCase
20-users  should be logged only once and subsequent HTP Requests shoulb be
called for a specific duration. When i try to do Some how the cookie and the
username sent to the subsequent HTTP- Request doesn't match and throughing 401
unauthorized exception".

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #13 from Felix Schumacher <fe...@internetallee.de> ---
ParallelController is a 3rd party plugin. You should report the error to the
creator of the plugin.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #5 from hcholleti <hc...@gridpoint.com> ---
Created attachment 36118
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36118&action=edit
cookiemangersetup

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #14 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to hcholleti from comment #12)
> Created attachment 36119 [details]
> TestPlan with ParallelController and  Simple Threadgroup
> 
> Please find the .jmx file contains 2-thread group ( with parallel controller
> & simple thread group). If you see the HTTP request we need to pass the
> username in the url. where i was getting username & password from csv files.
> UseCase 20-users  should be logged only once and subsequent HTP Requests
> shoulb be called for a specific duration. When i try to do Some how the
> cookie and the username sent to the subsequent HTTP- Request doesn't match
> and throughing 401 unauthorized exception".

Do you reproduce issue after removing ParallelController with only
SynchronizingTimer as you wrote ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #9 from hcholleti <hc...@gridpoint.com> ---
I tried craeting Thread group without  the  Parallel Controller-plugin. Added
all the HTTP requests and a synchronizer timer to make all them execute same
time. I  still get the error .

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #11 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to Philippe Mouawad from comment #10)
> (In reply to hcholleti from comment #9)
> > I tried craeting Thread group without  the  Parallel Controller-plugin.
> > Added all the HTTP requests and a synchronizer timer to make all them
> > execute same time. I  still get the error .
> 
> Please show jmeter.log in this case.
> 
> Thank you

And if possible provide a simple test plan that we could read.

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #15 from Alexis <jo...@gmail.com> ---
When I try log with username sent to the subsequent HTTP- Request doesn't match
and 401 unauthorized exception.
showbox https://showboxofficial.com/

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |WORKSFORME

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEEDINFO                    |RESOLVED

--- Comment #8 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
It's probably a synchronization issue in 3rd party plugin Parallel Controller.

You should report it here:

- https://groups.google.com/forum/#!forum/jmeter-plugins

Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

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

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Please show cookies received in View Results Tree.

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

hcholleti <hc...@gridpoint.com> changed:

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #3 from hcholleti <hc...@gridpoint.com> ---
Created attachment 36116
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36116&action=edit
Cookies-sentby server

If i run  the Thread group loopcount=1 its successfully. IF i give morethan one
or some duration .Some how the cookie and the username sent to the subsequent
HTTP- Request doesn't match and throughing 401 unauthorized exception".First
run its successful. As, i was login in only once. In the 2nd run subsequent
HTTP request keep failing.As, per the comment i have provided
- configuration of Cookie Manager
- Cookies sent by server
- your host name

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #10 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to hcholleti from comment #9)
> I tried craeting Thread group without  the  Parallel Controller-plugin.
> Added all the HTTP requests and a synchronizer timer to make all them
> execute same time. I  still get the error .

Please show jmeter.log in this case.

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
I doubt there is a bug here and usually you should first ask on user mailing
list.

Stil, please show:
- configuration of Cookie Manager
- Cookies sent by server
- your host name

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #1 from hcholleti <hc...@gridpoint.com> ---
Comment on attachment 36114
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36114
ThreadGroupsetup

UseCase 20-users  should be logged only once and subsequent HTP Requests shoulb
be called for a specific duration. When i try to do Some how the cookie and the
username sent to the subsequent HTTP- Request doesn't match and throughing 401
unauthorized exception".

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

--- Comment #4 from hcholleti <hc...@gridpoint.com> ---
Created attachment 36117
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36117&action=edit
Cookiesinthe log

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62659] HTTP Cookie Manger not handling Cookies properly

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62659

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal

-- 
You are receiving this mail because:
You are the assignee for the bug.