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+vMTmlxI51GVYW5NIpVq43syRhz6SjKmdYPjHihYDogxHx8oh44Bsb+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+B5KTiAVtChi14ynOTfHKSHfXHFuAeSw4HXrrP5x/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:[email protected]] > Sent: Saturday, July 06, 2019 6:00 AM > To: [email protected] > 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&data=02%7C01%7Cnmudalige%40virtusa.com%7Cfdde8751765c49282f6408d701f8c50e%7C0d85160c589944caacc8db1501b993b6%7C0%7C1%7C636980040294308505&sdata=sD1Ts5DT%2BSfZ27C48PaD9bpYECbX8uEyH%2FmD7tK6nvo%3D&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: > [email protected]<mailto:[email protected]> > > For additional commands, e-mail: > [email protected]<mailto:[email protected]> > > > > > ________________________________ > > "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: [email protected] For additional commands, e-mail: [email protected]
