Am 16.07.19 um 17:42 schrieb Nuwan Galkissa Mudalige:
>
> Hi Felix,
>
>  
>
> Did you get a chance to validate the given request headers ?
>

The headers look the same to me. Have you looked at the other tab on the
request? Cookies are displayed on the "request body" tab.

Are there any differences?

Felix

>  
>
> Regards,
>
> Nuwan
>
>  
>
> *From:* Nuwan Galkissa Mudalige
> *Sent:* Wednesday, July 10, 2019 6:04 PM
> *To:* JMeter Users List
> *Subject:* RE: Unexpected errors with HTTP Cookie Manager
>
>  
>
> Hi Felix,
>
>  
>
> No errors were captured by server logs. The flow is working fine for
> manual user and when you use nestcape as a cookie policy.
>
>  
>
> *Netscape header request:*
>
>  
>
> Connection: keep-alive
>
> Referer:
> https://{URL}/prweb/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD
> <https://%7bURL%7d/prweb/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD>
>
> Accept-Language: en-US,en;q=0.9
>
> Origin: https://{URL} <https://%7bURL%7d>
>
> Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
>
> Upgrade-Insecure-Requests: 1
>
> Content-Type: application/x-www-form-urlencoded
>
> Cache-Control: max-age=0
>
> Accept-Encoding: gzip, deflate, br
>
> User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
>
> Content-Length: 186
>
> Host: {URL}
>
>  
>
>  
>
> *Standard header request:*
>
>  
>
> Connection: keep-alive
>
> Referer:
> https://{URL}/prweb/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD
> <https://%7bURL%7d/prweb/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD>
>
> Accept-Language: en-US,en;q=0.9
>
> Origin: https://{URL} <https://%7bURL%7d>
>
> Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
>
> Upgrade-Insecure-Requests: 1
>
> Content-Type: application/x-www-form-urlencoded
>
> Cache-Control: max-age=0
>
> Accept-Encoding: gzip, deflate, br
>
> User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
>
> Content-Length: 186
>
> Host: {URL}
>
>  
>
> *Default header request:*
>
>  
>
> Connection: keep-alive
>
> Referer:
> https://{URL}/prweb/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD
> <https://%7bURL%7d/prweb/beEBp4uRVTogorRwSwWqbOtn9IL2fwdI*/!STANDARD>
>
> Accept-Language: en-US,en;q=0.9
>
> Origin: https://{URL} <https://%7bURL%7d>
>
> Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
>
> Upgrade-Insecure-Requests: 1
>
> Content-Type: application/x-www-form-urlencoded
>
> Cache-Control: max-age=0
>
> Accept-Encoding: gzip, deflate, br
>
> User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
>
> Content-Length: 186
>
> Host: {URL}
>
>  
>
>  
>
> Regards,
>
> Nuwan
>
>  
>
> -----Original Message-----
> From: Felix Schumacher [mailto:felix.schumac...@internetallee.de]
> Sent: Wednesday, July 10, 2019 3:50 PM
> To: user@jmeter.apache.org <mailto:user@jmeter.apache.org>
> Subject: Re: Unexpected errors with HTTP Cookie Manager
>
>  
>
> External email: Exercise caution when opening attachments or clicking
> on links.
>
>  
>
> Am 10.07.19 um 21:45 schrieb Nuwan Galkissa Mudalige:
>
> > Hello Felix,
>
> > 
>
> > Can you suggest me something I need to put on the Cookie Manager
> with a policy ? sharing a sample test plan is very difficult due
> security policies and it is the place where user is logging.
>
>  
>
> I would have a look at the request headers instead of the response
> headers and see, whether there are any differences. Maybe you could
> post those (redacted when there are private details like credentials).
>
>  
>
> The cookie manager is probably best when used in default mode.
>
>  
>
> Have a look at the server and watch out for error messages that are
> shown/logged when rendering the "500" error pages.
>
>  
>
> Felix
>
>  
>
> > 
>
> > Please help.
>
> > 
>
> > Regards,
>
> > Nuwan
>
> > 
>
> > 
>
> > -----Original Message-----
>
> > From: Felix Schumacher [mailto:felix.schumac...@internetallee.de]
>
> > Sent: Wednesday, July 10, 2019 3:33 PM
>
> > To: user@jmeter.apache.org <mailto:user@jmeter.apache.org>
>
> > Subject: Re: Unexpected errors with HTTP Cookie Manager
>
> > 
>
> > External email: Exercise caution when opening attachments or
> clicking on links.
>
> > 
>
> > Am 08.07.19 um 17:30 schrieb Nuwan Galkissa Mudalige:
>
> >> Hi Felix,
>
> >> 
>
> >> 
>
> >> 
>
> >> Thanks for your response.
>
> >> 
>
> >> 
>
> >> 
>
> >> This is the response header I have seen on View results tree while
> using "Netscape" cookie policy and flow was going good. But as I
> stated (stacktrace below) its produced that error log.
>
> >> 
>
> >> 
>
> >> 
>
> >> HTTP/1.1 200 OK
>
> >> 
>
> >> Date: Mon, 08 Jul 2019 15:11:54 GMT
>
> >> 
>
> >> Content-Type: text/html;charset=UTF-8
>
> >> 
>
> >> Transfer-Encoding: chunked
>
> >> 
>
> >> Connection: keep-alive
>
> >> 
>
> >> Set-Cookie:
>
> >> AWSALB=a43vUysH+nYh+vMTmlxI51GVYW5NIpVq43syRhz6SjKmdYPjHihYDogxHx8oh4
>
> >> 4
>
> >> Bsb+cj/hO7PRmY74IQ+vJqEU1Em/dqR4jFDFm83zbP4uI3hTmAW7e2E0OsR2c;
>
> >> Expires=Mon, 15 Jul 2019 15:11:54 GMT; Path=/
>
> >> 
>
> >> Set-Cookie: JSESSIONID=D1429B51C989CAC25C6A0B6C32C91374; Path=/prweb;
>
> >> Secure; HttpOnly
>
> >> 
>
> >> Set-Cookie: Pega-RULES=HFO5M1MF3WBPFYB4E5TYIL2HXHD1WA1N8; Version=1;
>
> >> Comment="PegaRULES session tracking"; Path=/prweb
>
> >> 
>
> >> Cache-Control: no-cache, no-store, must-revalidate
>
> >> 
>
> >> Pragma: no-cache
>
> >> 
>
> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>
> >> 
>
> >> Server: server
>
> >> 
>
> >> Content-Encoding: gzip
>
> >> 
>
> >> 
>
> >> 
>
> >> While using "Standard" as cookie policy, script getting failed
> occurring 500 error with response header as below but no other errors
> produced in log.
>
> >> 
>
> >> 
>
> >> 
>
> >> HTTP/1.1 500 Internal Server Error
>
> >> 
>
> >> Date: Mon, 08 Jul 2019 15:14:06 GMT
>
> >> 
>
> >> Content-Type: text/html;charset=UTF-8
>
> >> 
>
> >> Content-Length: 3608
>
> >> 
>
> >> Connection: keep-alive
>
> >> 
>
> >> Set-Cookie:
>
> >> AWSALB=vxunHR9QhZ2s8+gAmj9QIAuRRDT1wVNzV04qNcvs/tDjcxl3jb3PoRTjyLS+B5
>
> >> K TiAVtChi14ynOTfHKSHfXHFuAeSw4HXrrP5x/pZsjaN+9Lt2Mqvtr8THIJDs3;
>
> >> Expires=Mon, 15 Jul 2019 15:14:06 GMT; Path=/
>
> >> 
>
> >> Set-Cookie: Pega-RULES=HTTPDVX31HWKJYWLSFW41O8AFCCHWN8OO; Version=1;
>
> >> Comment="PegaRULES session tracking"; Path=/prweb
>
> >> 
>
> >> X-Content-Security-Policy-Report-Only: base-uri *; child-src * data:
>
> >> blob: filesystem: mediastream:; form-action *; frame-ancestors *;
>
> >> connect-src * data: blob: filesystem: mediastream:; font-src * data:
>
> >> blob: filesystem: mediastream:; frame-src * data: blob: filesystem:
>
> >> mediastream:; img-src * data: blob: filesystem: mediastream:;
>
> >> media-src * data: blob: filesystem: mediastream:; object-src * data:
>
> >> blob: filesystem: mediastream:; script-src * 'unsafe-inline'
>
> >> 'unsafe-eval' data: blob: filesystem: mediastream:; style-src *
>
> >> 'unsafe-inline' 'unsafe-eval' data: blob: filesystem: mediastream:;
>
> >> default-src *; report-uri (URL)
>
> >> 
>
> >> X-WebKit-CSP-Report-Only: base-uri *; child-src * data: blob:
>
> >> filesystem: mediastream:; form-action *; frame-ancestors *;
>
> >> connect-src * data: blob: filesystem: mediastream:; font-src * data:
>
> >> blob: filesystem: mediastream:; frame-src * data: blob: filesystem:
>
> >> mediastream:; img-src * data: blob: filesystem: mediastream:;
>
> >> media-src * data: blob: filesystem: mediastream:; object-src * data:
>
> >> blob: filesystem: mediastream:; script-src * 'unsafe-inline'
>
> >> 'unsafe-eval' data: blob: filesystem: mediastream:; style-src *
>
> >> 'unsafe-inline' 'unsafe-eval' data: blob: filesystem: mediastream:;
>
> >> default-src *; report-uri (URL)
>
> >> 
>
> >> Content-Security-Policy-Report-Only: base-uri *; child-src * data:
>
> >> blob: filesystem: mediastream:; form-action *; frame-ancestors *;
>
> >> connect-src * data: blob: filesystem: mediastream:; font-src * data:
>
> >> blob: filesystem: mediastream:; frame-src * data: blob: filesystem:
>
> >> mediastream:; img-src * data: blob: filesystem: mediastream:;
>
> >> media-src * data: blob: filesystem: mediastream:; object-src * data:
>
> >> blob: filesystem: mediastream:; script-src * 'unsafe-inline'
>
> >> 'unsafe-eval' data: blob: filesystem: mediastream:; style-src *
>
> >> 'unsafe-inline' 'unsafe-eval' data: blob: filesystem: mediastream:;
>
> >> default-src *; report-uri (URL)
>
> >> 
>
> >> Cache-Control: max-age=0
>
> >> 
>
> >> Pragma: no-cache
>
> >> 
>
> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>
> >> 
>
> >> Server: server
>
> >> 
>
> > As stated before. A minimal test plan to reproduce would really help.
>
> > 
>
> > Apart from that. A status code of 500 means that the server couldn't
> cope in what ever form and throws an error. The parsing of the cookie
> (we get a set-cookie header) happens after the servers response. So it
> would probably be better to look at what you send to the server
> instead of looking at what you receive.
>
> > 
>
> > Felix
>
> > 
>
> >> 
>
> >> 
>
> >> Regards,
>
> >> 
>
> >> Nuwan
>
> >> 
>
> >> 
>
> >> 
>
> >> 
>
> >> 
>
> >> -----Original Message-----
>
> >> From: Felix Schumacher [mailto:felix.schumac...@internetallee.de]
>
> >> Sent: Saturday, July 06, 2019 6:00 AM
>
> >> To: user@jmeter.apache.org <mailto:user@jmeter.apache.org>
>
> >> Subject: Re: Unexpected errors with HTTP Cookie Manager
>
> >> 
>
> >> 
>
> >> 
>
> >> External email: Exercise caution when opening attachments or
> clicking on links.
>
> >> 
>
> >> 
>
> >> 
>
> >> Am 05.07.19 um 17:18 schrieb Nuwan Galkissa Mudalige:
>
> >> 
>
> >>> Greetings !!
>
> >>> I'm in a process of building performance scripting for Pega 7.4
> cloud application.
>
> >>> My script is getting failed if I use any cookie policies except
> "netscape" from the HTTP Cookie Manager. Though it works with
> "netscape" cookie policy Jmeter creates following error entries in the
> log. I have tried from Jmeter 4.0 to 5.1.1 and got the same results.
>
> >>> Is this something known product issue which can be planned to fix
> with later version OR if you have an alternative technical solution
> would be really helpful ?
>
> >> 
>
> >> The stacktrace looks like you used the Netscape parser for the
> Cookie Manager. That parser will not except cookies with an "expires"
> attribute.
>
> >> 
>
> >> 
>
> >> 
>
> >> Please post a minimal test that shows the problem, so that we can
>
> >> reproduce it. You might want to have a look at
>
> >> 
>
> >>
> https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.apache.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D63520&amp;data=02%7C01%7Cnmudalige%40virtusa.com%7C5809d5cd4aa64d13b63608d7056fd8a1%7C0d85160c589944caacc8db1501b993b6%7C0%7C0%7C636983850258450470&amp;sdata=U%2FXpP00EYyM8wxp7SjFJ8xRDmRXwL3YvhNKYzoTOBbk%3D&amp;reserved=0
> where suhail reports problems parsing cookies, too. Attached to the
> bugzilla entry is a small test plan, that shows that JMeter has no
> problem parsing the sample AWS cookie that suhail gave us. You could
> try to change that cookie with one of your problematic cookies.
>
> >> 
>
> >> 
>
> >> 
>
> >> In case you meant that the netscape parser doesn't work with the
> cookie, but all others do: this is intended. In doubt, use the default
> cookie parser.
>
> >> 
>
> >> 
>
> >> 
>
> >> Regards
>
> >> 
>
> >> 
>
> >> 
>
> >> Felix
>
> >> 
>
> >> 
>
> >> 
>
> >>> This is the error log:
>
> >>> 2019-07-05 10:20:28,313 ERROR o.a.j.p.h.c.HC4CookieHandler: Unable
>
> >>> to add the cookie
>
> >>> org.apache.http.cookie.MalformedCookieException: Invalid 'expires'
> attribute: Fri, 12 Jul 2019 14:20:28 GMT
>
> >>>                 at
> org.apache.http.impl.cookie.BasicExpiresHandler.parse(BasicExpiresHandler.java:64)
> ~[httpclient-4.5.7.jar:4.5.7]
>
> >>>                 at
> org.apache.http.impl.cookie.CookieSpecBase.parse(CookieSpecBase.java:113)
> ~[httpclient-4.5.7.jar:4.5.7]
>
> >>>                 at
> org.apache.http.impl.cookie.NetscapeDraftSpec.parse(NetscapeDraftSpec.java:134)
> ~[httpclient-4.5.7.jar:4.5.7]
>
> >>>                 at
> org.apache.jmeter.protocol.http.control.HC4CookieHandler.addCookieFromHeader(HC4CookieHandler.java:125)
> [ApacheJMeter_http.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader(CookieManager.java:361)
> [ApacheJMeter_http.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.saveConnectionCookies(HTTPHC4Impl.java:1729)
> [ApacheJMeter_http.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:652)
> [ApacheJMeter_http.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)
> [ApacheJMeter_http.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1231)
> [ApacheJMeter_http.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1220)
> [ApacheJMeter_http.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:622)
> [ApacheJMeter_core.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:546)
> [ApacheJMeter_core.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486)
> [ApacheJMeter_core.jar:5.1.1 r1855137]
>
> >>>                 at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
> [ApacheJMeter_core.jar:5.1.1 r1855137]
>
> >>>                 at java.lang.Thread.run(Unknown Source)
>
> >>> [?:1.8.0_211] Regards, Nuwan ________________________________
>
> >>> "Virtusa has been recognized as one of the top 20 global IT
> service providers in Everest Group's 2018 PEAK Matrix Service Provider
> of the Year(tm) awards; Named as an Outsourcing Leader and an All Star
> Company in IAOP's 2018 Global Outsourcing 100; Recognized as the Most
> Innovative Technology Company of the Year at the 2017 American
> Business Awards; Positioned as a Top 15 Sourcing Service Provider by
> Information Services Group (ISG)."
>
> >>> ________________________________
>
> >>> This message, including any attachments, contains confidential
> information intended for a specific individual and purpose, and is
> intended for the addressee only. Any unauthorized disclosure, use,
> dissemination, copying, or distribution of this message or any of its
> attachments or the information contained in this e-mail, or the taking
> of any action based on it, is strictly prohibited. If you are not the
> intended recipient, please notify the sender immediately by return
> e-mail and delete this message.
>
> >>> ________________________________
>
> >> 
>
> >> ---------------------------------------------------------------------
>
> >> 
>
> >> To unsubscribe, e-mail:
>
> >>
> user-unsubscr...@jmeter.apache.org<mailto:user-unsubscr...@jmeter.apa
> <mailto:user-unsubscr...@jmeter.apache.org%3cmailto:user-unsubscr...@jmeter.apa>
>
> >> c
>
> >> he.org>
>
> >> 
>
> >> For additional commands, e-mail:
>
> >> user-h...@jmeter.apache.org<mailto:user-h...@jmeter.apache.org
> <mailto:user-h...@jmeter.apache.org%3cmailto:user-h...@jmeter.apache.org>>
>
> >> 
>
> >> 
>
> >> 
>
> >> 
>
> >> ________________________________
>
> >> 
>
> >> "Virtusa has been recognized as one of the top 20 global IT service
> providers in Everest Group's 2018 PEAK Matrix Service Provider of the
> Year(tm) awards; Named as an Outsourcing Leader and an All Star
> Company in IAOP's 2018 Global Outsourcing 100; Recognized as the Most
> Innovative Technology Company of the Year at the 2017 American
> Business Awards; Positioned as a Top 15 Sourcing Service Provider by
> Information Services Group (ISG)."
>
> >> 
>
> >> ________________________________
>
> >> 
>
> >> This message, including any attachments, contains confidential
> information intended for a specific individual and purpose, and is
> intended for the addressee only. Any unauthorized disclosure, use,
> dissemination, copying, or distribution of this message or any of its
> attachments or the information contained in this e-mail, or the taking
> of any action based on it, is strictly prohibited. If you are not the
> intended recipient, please notify the sender immediately by return
> e-mail and delete this message.
>
> >> 
>
> >> ________________________________
>
> >> 
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> <mailto:user-unsubscr...@jmeter.apache.org>
>
> > For additional commands, e-mail: user-h...@jmeter.apache.org
> <mailto:user-h...@jmeter.apache.org>
>
> > 
>
> > 
>
> > ________________________________
>
> > 
>
> > "Virtusa has been recognized as one of the top 20 global IT service
> providers in Everest Group’s 2018 PEAK Matrix Service Provider of the
> Year™ awards; Named as an Outsourcing Leader and an All Star Company
> in IAOP’s 2018 Global Outsourcing 100; Recognized as the Most
> Innovative Technology Company of the Year at the 2017 American
> Business Awards; Positioned as a Top 15 Sourcing Service Provider by
> Information Services Group (ISG)."
>
> > 
>
> > ________________________________
>
> > 
>
> > This message, including any attachments, contains confidential
> information intended for a specific individual and purpose, and is
> intended for the addressee only. Any unauthorized disclosure, use,
> dissemination, copying, or distribution of this message or any of its
> attachments or the information contained in this e-mail, or the taking
> of any action based on it, is strictly prohibited. If you are not the
> intended recipient, please notify the sender immediately by return
> e-mail and delete this message.
>
> > 
>
> > ________________________________
>
>  
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> <mailto:user-unsubscr...@jmeter.apache.org>
>
> For additional commands, e-mail: user-h...@jmeter.apache.org
> <mailto:user-h...@jmeter.apache.org>
>
>  
>
>  
> ------------------------------------------------------------------------
>
> "Virtusa has been recognized as one of the top 20 global IT service
> providers in Everest Group’s 2018 PEAK Matrix Service Provider of the
> Year™ awards; Named as an Outsourcing Leader and an All Star Company
> in IAOP’s 2018 Global Outsourcing 100; Recognized as the Most
> Innovative Technology Company of the Year at the 2017 American
> Business Awards; Positioned as a Top 15 Sourcing Service Provider by
> Information Services Group (ISG)."
>
> ------------------------------------------------------------------------
>
> This message, including any attachments, contains confidential
> information intended for a specific individual and purpose, and is
> intended for the addressee only. Any unauthorized disclosure, use,
> dissemination, copying, or distribution of this message or any of its
> attachments or the information contained in this e-mail, or the taking
> of any action based on it, is strictly prohibited. If you are not the
> intended recipient, please notify the sender immediately by return
> e-mail and delete this message.
>
> ------------------------------------------------------------------------

Reply via email to