You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/06/18 13:05:44 UTC

DO NOT REPLY [Bug 49462] New: Cookie Manager Not Incrementing As Expected

https://issues.apache.org/bugzilla/show_bug.cgi?id=49462

           Summary: Cookie Manager Not Incrementing As Expected
           Product: JMeter
           Version: 2.3.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTTP
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: radu.leterna@softvision.ro


Created an attachment (id=25612)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25612)
Attached jmx file with bug reproduction. Just load & run.

The Cookie Manager is not working as we expect in case you use a Counter
element inside a Loop Controller that should update the cookie value.

I use a Counter that increments a variable, and use this variable inside a
Cookie Manager and inside a HTTP Header Manager. The result is that inside the
Cookie Manager, the variable appears with different values than in the HTTP
Header Manager and also the variable values are repeating (which it's not
possible because the counter generates a unique value each iteration).

See the attached .jmx file for complete description and bug reproduction.

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

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


DO NOT REPLY [Bug 49462] Cookie Manager Not Incrementing As Expected

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.3.4                       |2.5

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

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


DO NOT REPLY [Bug 49462] Cookie Manager Not Incrementing As Expected

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

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> 2011-09-13 17:28:11 UTC ---
Hello,
The difference in behaviour is due to the fact that CookieManager implements an
empty:
1) recoverRunningVersion
2) setRunningVersion

This causes recoverRunningVersion not to be subsequently called on Cookie which
explains why value is not the same as HeaderManager.
HeaderManager calls recoverRunningVersion on FunctionProperty  which will ends
up resetting cachedValue to null so recompute it at each iteration..
This behaviour seems to be voluntary (sebb, milamber you confirm ?) to keep
SessionID for example but maybe it should be documented or modified if it's a
bad side effect.
Regards
Philippe

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

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


DO NOT REPLY [Bug 49462] Cookie Manager Not Incrementing As Expected

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

Sebb <se...@apache.org> changed:

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

--- Comment #2 from Sebb <se...@apache.org> 2011-09-18 09:31:04 UTC ---
Works for me in the latest SVN trunk (which will be 2.5.1).

This was possibly fixed by the changes for Bug 48943.

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

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