Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables in cookie definitions of requests don't get properly replaced when using the YAML format #23

Closed
NilsHasenbanck4758 opened this issue Sep 19, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@NilsHasenbanck4758
Copy link

We currently use xlt-nocoding with the version 4.0.0.

When using the xlt-nocoding YAML format, variables are not replaced with their value content when used inside cookies of requests:

Given that the variable "A_COOKIE" has the content of "COOKIE CONTENT".

- Action:
    Name: "DOESNT_WORK"
    Request:
      Url: "https://www.otto.de"
      Method: "GET"
      Cookies:
      - "a_cookie": "${A_COOKIE}"

Result: The cookie "a_cookie" will have the content "${A_COOKIE}" at runtime.

We would expect that variables in request cookie definition get properly replaced as it's the case for example the header definitions.

We currently use the following workaround of using the header to set the cookie correctly:

- Action:
    Name: "WORKAROUND"
    Request:
      Url: "https://www.otto.de"
      Method: "GET"
      HEADERS:
      - "Cookie": "a_cookie=${A_COOKIE}"

Result: The cookie "a_cookie" will have the content "COOKIE CONTENT" at runtime.

@jowerner jowerner self-assigned this Sep 19, 2023
@jowerner jowerner added the bug label Sep 19, 2023
@jowerner jowerner added this to the 4.0.1 milestone Sep 19, 2023
@jowerner
Copy link
Contributor

Thanks for reporting! Placeholder substitution was simply not implemented for cookies. Fixed now. Version 4.0.1 should be available at Maven Central soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants