Comments (5)
@jasprit-singh-chahal look at the response headers - Set-Cookie: SameSite=Lax; Path=/; SameSite=Lax; Secure; HttpOnly
seems to be missing the core name and data and looks wrong overall, which may mean a bug in YOUR server. since this has not been reported by anyone else, it is likely that karate has done the right thing and found a problem for you
I think you should be able to do * configure cookies = null
before running the requests as a workaround
either way - I also request you to consider submitting a PR for karate or at the very least provide a way to replicate following this process: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue - there is a related issue: #2482
from karate.
Thanks @ptrthomas for the instant support. "* configure cookies = null" worked! I can see this hack needs to be performed every time. Is there a way to set the accepted Cookie type globally?
Also, this hack is not working when used with retry construct.
from karate.
@jasprit-singh-chahal yes it is a hack. I have nothing else to add to my previous comment
from karate.
I have 2 questions:
- Why this change was implemented?
- In future, shall I expect some implementation to set Cookie type?
from karate.
@jasprit-singh-chahal 0.9.6 is a very old version and I honestly don't remember. please keep in mind that we release RC versions and request users to test those and give us feedback. if you haven't then it is on you. this is an open source project with limited bandwidth. I think you are still missing my point that your server is not behaving correctly. you should probably fix that before trying anything else.
if you want cookies to be improved please contribute code, or if we are sure that this is a problem that many users face, we would look into it. I'm closing this ticket
from karate.
Related Issues (20)
- Karate contains only shortcut fails in v1.4.1 HOT 4
- Schema validation with dynamic keys HOT 3
- How to call Json Object as a Parameter in Karate feature HOT 1
- Schema validation doesn't support optional objects HOT 1
- Scenarios should be referenced by their name rather than line number
- Karate Robot cannot handle the ‘>’ character, yield org.graalvm.polyglot.PolyglotException: Invalid key code HOT 4
- karate.abort() response status == 500 HOT 3
- Karate robot cannot handle panes with "/" in name. Very niche problem HOT 1
- Variable reference lost after calling a scenario in separate feature HOT 3
- Not able to karate test case, getting issue HOT 1
- Karate summary reports not showing all tested features HOT 1
- [karate 1.4.1] OOM when load testing with mock for several minutes HOT 4
- Add Karate configuration option to disable the "no features or scenarios found" assertion HOT 1
- Does karate gating support Java DSL ? HOT 2
- Mutual SSL documented the wrong way HOT 3
- GraalVM changes incompatible with Karate HOT 10
- How to switch from Java selenium webdriver to Karate driver HOT 1
- Missing header in spite of "configure headers" HOT 5
- afterScenario hook not running when scenario fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karate.