You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Felix Schumacher <fe...@internetallee.de> on 2018/09/03 06:11:33 UTC

Re: svn commit: r1839892 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HC4CookieHandler.java

Am 02.09.2018 22:04, schrieb pmouawad@apache.org:
> Author: pmouawad
> Date: Sun Sep  2 20:04:13 2018
> New Revision: 1839892
> 
> URL: http://svn.apache.org/viewvc?rev=1839892&view=rev
> Log:
> Fix regression introduced by commit r1839891
> 
> Modified:
> 
> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HC4CookieHandler.java
> 
> Modified:
> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HC4CookieHandler.java
> URL:
> http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HC4CookieHandler.java?rev=1839892&r1=1839891&r2=1839892&view=diff
> ==============================================================================
> ---
> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HC4CookieHandler.java
> (original)
> +++
> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HC4CookieHandler.java
> Sun Sep  2 20:04:13 2018
> @@ -137,6 +137,7 @@ public class HC4CookieHandler implements
>                          } catch (MalformedCookieException e) { //
> This means the cookie was wrong for the URL
>                              log.info("Not storing invalid cookie:
> <{}> for URL {} ({})",
>                                  cookieHeader, url, 
> e.getLocalizedMessage());
> +                            continue;

I think it would be nicer to keep the exception handling together as it 
was before r1839891. The only change I can see after these two changes 
is the reduced logging severity.
Did I miss something?

Regards,
  Felix

>                          }
>                      }
>                      Date expiryDate = cookie.getExpiryDate();

Re: svn commit: r1839892 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HC4CookieHandler.java

Posted by Philippe Mouawad <ph...@gmail.com>.
On Monday, September 3, 2018, Felix Schumacher <
felix.schumacher@internetallee.de> wrote:

> Am 02.09.2018 22:04, schrieb pmouawad@apache.org:
>
>> Author: pmouawad
>> Date: Sun Sep  2 20:04:13 2018
>> New Revision: 1839892
>>
>> URL: http://svn.apache.org/viewvc?rev=1839892&view=rev
>> Log:
>> Fix regression introduced by commit r1839891
>>
>> Modified:
>>
>> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/
>> http/control/HC4CookieHandler.java
>>
>> Modified:
>> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/
>> http/control/HC4CookieHandler.java
>> URL:
>> http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/
>> org/apache/jmeter/protocol/http/control/HC4CookieHandler.
>> java?rev=1839892&r1=1839891&r2=1839892&view=diff
>> ============================================================
>> ==================
>> ---
>> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/
>> http/control/HC4CookieHandler.java
>> (original)
>> +++
>> jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/
>> http/control/HC4CookieHandler.java
>> Sun Sep  2 20:04:13 2018
>> @@ -137,6 +137,7 @@ public class HC4CookieHandler implements
>>                          } catch (MalformedCookieException e) { //
>> This means the cookie was wrong for the URL
>>                              log.info("Not storing invalid cookie:
>> <{}> for URL {} ({})",
>>                                  cookieHeader, url,
>> e.getLocalizedMessage());
>> +                            continue;
>>
>
> I think it would be nicer to keep the exception handling together as it
> was before r1839891. The only change I can see after these two changes is
> the reduced logging severity.
> Did I miss something?


no.
I thought it would be clearer this way as per Sonar advice.
But if you feel it’s not, you can revert, no problem for me.
Thanks for review

>
> Regards,
>  Felix
>
>                          }
>>                      }
>>                      Date expiryDate = cookie.getExpiryDate();
>>
>

-- 
Cordialement.
Philippe Mouawad.