Code Monkey home page Code Monkey logo

Comments (5)

ptrthomas avatar ptrthomas commented on June 24, 2024

@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.

jasprit-singh-chahal avatar jasprit-singh-chahal commented on June 24, 2024

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.

ptrthomas avatar ptrthomas commented on June 24, 2024

@jasprit-singh-chahal yes it is a hack. I have nothing else to add to my previous comment

from karate.

jasprit-singh-chahal avatar jasprit-singh-chahal commented on June 24, 2024

I have 2 questions:

  1. Why this change was implemented?
  2. In future, shall I expect some implementation to set Cookie type?

from karate.

ptrthomas avatar ptrthomas commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.