Hi,

Thanks for taking time to answer me.

I've made a synchro with the last version of JMeter ( from git ). The
problem with settings not saved on the cookie manager is gone.
Now, the default value is "standard" and all  my case test are all right.


See examples of the header Set-Cookie which was the problem before :


Entêtes de réponse :
HTTP/1.1 302 Found
Date: Fri, 26 Feb 2016 09:50:51 GMT
Server: Apache
Set-Cookie: targetPath_habile=habile-r12; path=/; domain=habileqal.xxxx.fr
Cache-Control: no-store
Location:
https://habileqal.xxxx.fr/habileWeb/AUTH/redirect.jsp?TARGET=https%3A%2F%2Fadream-qal.xxxx.fr%2F
Content-Length: 290
Content-Type: text/html; charset=iso-8859-1
Set-Cookie: SMTRYNO=1; path=/; domain=.xxxx.fr
Set-Cookie: SMTRYNO=; expires=Sun, 30 Aug 2015 09:50:51 GMT; path=/;
domain=.xxxx.fr
Set-Cookie:
SMSESSION=BOOQf/huKkzktvXHC4KFX1WlKwihPPQLlzuPnQFXuIkDwuwSC3be+XVi8Ncvc8AD0uR7sxc32w84EsIC8FKak1dwFu1HugnzlvMu3nWBMuqjFFns3mkdL4564maK8MGGQW6iEHlx1+oUwvMjyafmMgErG1hcNBOvJREHqKcE79cx+fF+aLMLj+FRZ7AcEJhB4Sba1bshKWMikTffLhmkSaDWI/N7Gc/HeGJDo5oS4tMF1HP7qqOjIysyRSy61Sq2CB4F6CZJ6hKlJXOQ1XrjQ9L8rj7BY6DB7PPw7Jbs6jYX3iCYeIkaptCial1frTyYpMifz0HJ7IBrN6lbC+9/nzxPySdRsdVTO9DWOZO5znmblyM+KKhQJe4kepfEVfEE/IhRmXDNyXI1eJjb0HEpMyHvEyOOleAFyyCvs/+1fFAnWjmuJJA6Sxh/YHgM0hDpq5ycurN+haq2S4YqNbgKHYbOLFpKGEGn2TRZN0U+z9/vZ//CUj0mtAcD8Mne8W8CAb9BjbiD5qryI+bFe8HBrwHTe90qDNvESv5krpe3M0Up5oHwqY3V+lBfLjcmoznqRzMTjllmPfM/Rn4RCr5b5Kem7ri6s10KTNAAQGRoCGSekfsV9WqCUlJ1R8PDzfuZHBut2sQgc2/Q7sYXW+AmZfizbuWKcwadKc9QUmWHDPzs/fet9SQhniFu8eUB5fhjZhLeonUMyGiEGeuSIxGR31PpEYo7n5ZvfH4XdPPCMDV5PPdLDFg7Dr5vjp3Mq0pOrD1cyBFQDQJGQK0B2n/ubEEC6E/bZKcJTa5jKtJwF5DYMLhhRn3zYOu8Ig0/ml3uiIdUE6lpN/O7sS81wsEtdN7+UiM0+eOEpOEakcriJigCnV6tIpd/CYDWb3XrrPKJMnAC27iPotHwoU7PnKMXe5/AC7msl3UX+64JfkZlWshz5FyJFjBJSR+uzNeEQAbr5k5w/4WwzgLIqe3dirQR2egpm450FG3xOkZxlALTYi/KuPz5yiZzyp4Xcq5HsjKmpBMjiWMyHSY+FVS24oJpbDuC4079TMK2peSJvtd4ZmKBfUp07Ozc5lzXE+Hk9Itz;
path=/; domain=.xxxx.fr
Keep-Alive: timeout=15
Connection: Keep-Alive


The second case :

GET http://b2cqal.xxxx.fr/cgi-bin/FR/fr/common/home/xxxxx.do

Cookie Data:
$Version=1; af_last_tab="1"; $Path=""; $Domain="b2cqal.xxxx.fr"$Version=1;
pageLanguage="fr"; $Path=""; $Domain="b2cqal.xxxx.fr"$Version=1;
targetPath_b2c="b2c_a"; $Path=""; $Domain="b2cqal.xxxx.fr"

Entêtes de requête :
Connection: keep-alive
Accept-Language: en-US,en;q=0.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101
Firefox/41.0
Referer: http://b2cqal.xxxx.fr/qualif/b2cqal.chaine_a.html
Accept-Encoding: gzip, deflate
Host: b2cqal.xxxx.fr






2016-02-26 1:13 GMT+01:00 Philippe Mouawad <philippe.moua...@gmail.com>:

> Hi Maxime,
> Regarding https://bz.apache.org/bugzilla/show_bug.cgi?id=59071 , after
> further analysis I am not sure about the fix.
>
> So I would really need the value of the header Set-Cookie.
>
> It seems your cookie would follow RFC6265-Lax as per Expires format.
>
> Thanks
>
> On Thu, Feb 25, 2016 at 11:31 PM, Philippe Mouawad <
> philippe.moua...@gmail.com> wrote:
>
> > Hello,
> > First thanks for your feedback on nightly build, it really helps us a
> lot.
> > Some of the issues you reported are now fixed in next nightly build that
> > you can download here:
> >
> >
> https://builds.apache.org/job/JMeter-trunk/lastSuccessfulBuild/artifact/trunk/dist/
> > It should be build 4​99​2 or higher.
> >
> >
> >
> > Please note that for now, last JMeter nightly build does not yet uses
> > HttpClient 4.5.2 (as it is not released, should happen in few hours I
> > think).
> > So there are still known bugs:
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=58881
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=58583
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=58950
> >
> > Once HC4.5.2 is released, we will commit it and fix those 3 bugs.
> >
> > Find inline below my other answers.
> >
> > On Thu, Feb 25, 2016 at 3:32 PM, Maxime Chassagneux <
> > maxime.chassagn...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> Since I test JMeter with the latest snapshot of HC I experience issues
> >> with HTTP Cookie Manager.
> >> Now the defautl Implementation is HC4 with cookie Policy to default.
> When
> >> I use it, most of scenario stop working with a problem of date :
> >>
> >> 2016/02/23 10:27:05 INFO  - jmeter.threads.JMeterThread: Thread
> finished:
> >> P11 - Admin A/C SubTypes 10-1
> >> 2016/02/23 10:27:05 ERROR -
> >> jmeter.protocol.http.control.HC4CookieHandler: Unable to add the cookie
> >> org.apache.http.cookie.MalformedCookieException: Invalid 'expires'
> >> attribute: Thu, 27 Aug 2015 09:27:05 GMT
> >>  at
> >>
> org.apache.http.impl.cookie.BasicExpiresHandler.parse(BasicExpiresHandler.java:63)
> >>  at
> >>
> org.apache.http.impl.cookie.CookieSpecBase.parse(CookieSpecBase.java:112)
> >>  at
> >>
> org.apache.http.impl.cookie.DefaultCookieSpec.parse(DefaultCookieSpec.java:139)
> >>  at
> >>
> org.apache.jmeter.protocol.http.control.HC4CookieHandler.addCookieFromHeader(HC4CookieHandler.java:115)
> >>  at
> >>
> org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader(CookieManager.java:355)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.saveConnectionCookies(HTTPHC4Impl.java:1371)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:386)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(HTTPSamplerBase.java:1552)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1629)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:463)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:394)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1148)
> >>  at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1137)
> >>  at
> >>
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:455)
> >>  at
> >>
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:400)
> >>  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
> >>  at java.lang.Thread.run(Unknown Source)
> >>
> >> I created this:
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=59071
> >
> > And fixed it
> >
> > But as part of https://bz.apache.org/bugzilla/show_bug.cgi?id=58756 ,
> > there is still an issue when you open a 2.13 Plan from a 3.0 plan.
> > CookieManager configuration will be lost.
> >
> >
> >
> >
> >
> >> And some time, with other site I have this issue :
> >>
> >> java.net.SocketException: Connection reset
> >> at java.net.SocketInputStream.read(Unknown Source)
> >> at java.net.SocketInputStream.read(Unknown Source)
> >> at
> >>
> org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
> >> at
> >>
> org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
> >> at
> >>
> org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273)
> >> at
> >>
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
> >> at
> >>
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
> >> at
> >>
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
> >> at
> >>
> org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
> >> at
> >>
> org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251)
> >> at
> >>
> org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:197)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.receiveResponseHeader(MeasuringConnectionManager.java:218)
> >> at
> >>
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
> >> at
> >>
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
> >> at
> >>
> org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685)
> >> at
> >>
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487)
> >> at
> >>
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
> >> at
> >>
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
> >> at
> >>
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:555)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:314)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1148)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1137)
> >> at
> >>
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:455)
> >> at
> >>
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:400)
> >> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
> >> at java.lang.Thread.run(Unknown Source)
> >>
> >
> > On what request are you getting this ? :
> > - http ?
> > - https ?
> >
> > Not sure it's a jmeter issue. We would need more details.
> >
> >
> >
> >
> >>
> >> When I change the Cookie Policy to "Standard" all is working back. ( But
> >> each time a Clear GUI this option is lost ... and default is apply )
> >>
> >
> > I opened https://bz.apache.org/bugzilla/show_bug.cgi?id=59069 and fixed
> > it.
> >
> >>
> >> I have one other problem during a test who use https and http protocol :
> >>
> >> org.apache.http.client.ClientProtocolException
> >> at
> >>
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:886)
> >> at
> >>
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
> >> at
> >>
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:555)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:314)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1148)
> >> at
> >>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1137)
> >> at
> >>
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:455)
> >> at
> >>
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:400)
> >> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
> >> at java.lang.Thread.run(Thread.java:745)
> >> Caused by: org.apache.http.HttpException: Unable to establish route:
> >> planned = {}->https://xxxx.xxxxx.fr:443; current = {s}->
> >> https://xxxx.xxxx.fr:443
> >> at
> >>
> org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:818)
> >> at
> >>
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:615)
> >> at
> >>
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
> >> at
> >>
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
> >>
> >> No problem with JMeter 2.13.
> >>
> >
> > You faced a regression I fixed on 19th february, see comment of:
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=58099#c14
> >
> >>
> >>
> >>
> >>
> >> 2016-02-21 18:09 GMT+01:00 Oleg Kalnichevski <ol...@apache.org>:
> >>
> >>> On Sat, 2016-02-20 at 01:14 +0100, Philippe Mouawad wrote:
> >>> > Hello,
> >>> > I tested 4.5.X branch, I reported an issue which Gary handled:
> >>> >
> >>> >    - https://issues.apache.org/jira/browse/HTTPCLIENT-1665
> >>> >
> >>> > The 3 bugs we are concerned about are fixed:
> >>> >
> >>> >    - https://bz.apache.org/bugzilla/show_bug.cgi?id=58950
> >>> >    - https://bz.apache.org/bugzilla/show_bug.cgi?id=58881
> >>> >    - https://bz.apache.org/bugzilla/show_bug.cgi?id=58583
> >>> >
> >>> >
> >>> > Maybe a bug in HttpClient should be created for
> >>> > https://issues.apache.org/jira/browse/HTTPCORE-397 so that release
> >>> notes
> >>> > are complete:
> >>> >
> >>> >    - http://svn.apache.org/viewvc?view=revision&revision=1722952
> >>> >
> >>> >
> >>> > Looking at this file:
> >>> >
> >>> >
> >>>
> https://github.com/apache/httpclient/blob/04fb7e6d8e2aef7ae4465b26a931deffb9775450/RELEASE_NOTES.txt
> >>> >
> >>> >
> >>> > It seems to me it is incomplete and should mention all those no ?:
> >>> >
> >>> >
> >>>
> https://issues.apache.org/jira/browse/HTTPCLIENT-1665?jql=project%20%3D%20HTTPCLIENT%20AND%20fixVersion%20%3D%204.5.2%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20priority%20DESC
> >>> >
> >>> >
> >>> > Anyway thanks at your team for the work.
> >>> >
> >>> > Regards
> >>> >
> >>> > Philippe
> >>> >
> >>>
> >>> The release vote is now ongoing. You are welcome to participate even if
> >>> your vote is not going to be considered binding.
> >>>
> >>> http://markmail.org/message/qjg7ocb5pznyzbmv
> >>>
> >>> Oleg
> >>>
> >>>
> >>
> >
> >
> > --
> > Regards
> > Philippe M.
> > @philmdot
> >
> >
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
>

Reply via email to