Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B0B3F200C55 for ; Thu, 13 Apr 2017 18:59:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AF4B9160BA7; Thu, 13 Apr 2017 16:59:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 027B8160B98 for ; Thu, 13 Apr 2017 18:59:41 +0200 (CEST) Received: (qmail 97786 invoked by uid 500); 13 Apr 2017 16:59:41 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 97774 invoked by uid 99); 13 Apr 2017 16:59:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2017 16:59:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1082ED00ED for ; Thu, 13 Apr 2017 16:59:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Zou2PZSXfR6q for ; Thu, 13 Apr 2017 16:59:38 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 213D15FDA3 for ; Thu, 13 Apr 2017 16:59:38 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id B5509E0026 for ; Thu, 13 Apr 2017 16:59:37 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id B76D9607D9; Thu, 13 Apr 2017 16:59:36 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 60986] New: CookieManager User-defined cookies aren't saved as variables Date: Thu, 13 Apr 2017 16:59:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: JMeter X-Bugzilla-Component: HTTP X-Bugzilla-Version: 3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jepp@cas.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Thu, 13 Apr 2017 16:59:42 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60986 Bug ID: 60986 Summary: CookieManager User-defined cookies aren't saved as variables Product: JMeter Version: 3.1 Hardware: All OS: All Status: NEW Severity: normal Priority: P2 Component: HTTP Assignee: issues@jmeter.apache.org Reporter: jepp@cas.org Target Milestone: --- Setting CookieManager.save.cookies=3Dtrue does not expose User-Defined Cook= ies as variables. This is very inconvenient, because the only way to get those va= lues otherwise (for example, if we want to pass them to the backend listener) is= to use a JSR223 post-processor from an HTTP sampler (otherwise, the CookieMana= ger is not available) and do one of three suboptimal things: 1. Import o.a.j.p.h.c.Cookie/CookieManager and loop iterate over the cookie= s by index. (Notably, doesn't work if the cookie value is variable.) 2. Use regular-expression hacks on the output of CookieManager.getCookieHeaderForURL() to extract the value. 3. Import the correct HttpClient CookieHandler and iterate over the list returned from CookieHandler.getCookiesForUrl(). The CookieManager should make the _current value_ of a cookie available at = all times when that property is set. --=20 You are receiving this mail because: You are the assignee for the bug.=