Karate: Cookie Rejected - violates RFC 6265: Set-Cookie's expires must accept this value: Tue, 08 Oct 2019 13:58:33 GMT

Created on 8 Oct 2018  路  9Comments  路  Source: intuit/karate

As RFC 6265 (and it's refferred to RFC 2616) said "Tue, 08 Oct 2019 13:58:33 GMT" must be accepted as Expires value.

Actual:

16:21:13.149 [main] WARN o.a.h.c.p.ResponseProcessCookies - Invalid cookie header: "Set-Cookie: guid=3f0a56cd-4038-4bdf-bca9-d811a2af6bf8; Max-Age=31535999; Expires=Tue, 08 Oct 2019 14:21:03 GMT; Path=/; Domain=.staging.com". Invalid 'expires' attribute: Tue, 08 Oct 2019 14:21:03 GMT

Expected:

Accept Set-Cookie.

Tested version: 0.8.0.1 and 0.9.0.RC3 of karate-apache

Git repo: https://github.com/shark300/expiresBug

bug fixed

All 9 comments

@shark300 please follow the instructions here: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

until then this is tagged as "help wanted"

@ptrthomas
I've created a git repo: https://github.com/shark300/expiresBug

@shark300 I apologize for not getting to this sooner - and I didn't realize how comprehensive your working example is. thank you for creating a way to simulate, complete with server-side code. I will be referring others to your project !

fixed in dev. by the way, if you switch to karate-jersey it works fine.

@ptrthomas
Thanks!

Hi. I switched to katate-jersey but cookies hasn't expires or expiration , so I can't verify
could you tell how to solve this issue?

Hey @behzadian
We are ignoring karate usage until this release in our E2E tests. From my point of you I can't verify that...

@behzadian

so I can't verify

only thing I can advise is this:
https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

0.9.0 released

Fixed. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

76creates picture 76creates  路  3Comments

sadiqkassamali picture sadiqkassamali  路  4Comments

ampc picture ampc  路  5Comments

raveendaranugu picture raveendaranugu  路  3Comments

ianrenauld picture ianrenauld  路  4Comments