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/01/18 14:32:43 UTC

[Bug 62015] New: Quotes in cookie values are stripped

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

            Bug ID: 62015
           Summary: Quotes in cookie values are stripped
           Product: JMeter
           Version: 3.3
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: harald.demian.brunner@gmail.com
  Target Milestone: ---

When a server sends a cookie containing JSON, this is a problem, e.g. the
server may send this header:

    Set-Cookie: x={"Language":"en","Value":10}; expires=Mon, 16-Jul-2018
22:00:00 GMT; path=/

Then on the next request it will send the cookie as:

    ...; x="{Language:de,Value:10}"; ...

This of course fails to parse on the server.

(When i tried to work around this problem by setting the cookie manually via
script or cookie manager config element, the quotes ended up on the server in
escaped form (i.e. with backslash characters before the inner quotes.))

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

[Bug 62015] Quotes in cookie values are stripped

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

Kevin <ju...@gmail.com> changed:

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

--- Comment #3 from Kevin <ju...@gmail.com> ---
Same issue with double quotes in cookie values.
I tried all cookie policies in HTTP Cookie Manager, the thread always failed.
Can anyone take a look on issue or give some solutions to resolve this issue?

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

[Bug 62015] Quotes in cookie values are stripped

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

HB <ha...@gmail.com> changed:

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

--- Comment #2 from HB <ha...@gmail.com> ---
The "netscape" policy works. Thought i had tried changing that but apparently
did not. Thanks.

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

[Bug 62015] Quotes in cookie values are stripped

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |WORKSFORME
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

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

[Bug 62015] Quotes in cookie values are stripped

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

Felix Schumacher <fe...@internetallee.de> changed:

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

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Double quotes (DQUOTES) are not valid in a cookie value according to RFC 6525
(apart around the value). The JMeter Cookie Managers default is to use RFC
6525.

You can try to  use another Cookie Policy and see, if that helps.

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

[Bug 62015] Quotes in cookie values are stripped

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

--- Comment #4 from Kevin <ju...@gmail.com> ---
(In reply to HB from comment #2)
> The "netscape" policy works. Thought i had tried changing that but
> apparently did not. Thanks.

Hi HB,

If you resolve this issue at last?

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