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

bug: Reposne_write plugin will delete the server-side cookies #7776

Closed
JohnQI8888 opened this issue Aug 24, 2022 · 1 comment · Fixed by #7794
Closed

bug: Reposne_write plugin will delete the server-side cookies #7776

JohnQI8888 opened this issue Aug 24, 2022 · 1 comment · Fixed by #7794

Comments

@JohnQI8888
Copy link

Current Behavior

Reposne_write plugin will delete the server-side cookies

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

  1. Run apisix
  2. setup a route looks like this:
    "value": {
    "host": "aaa.xxx.com",
    "plugins": {
    "prometheus": {},
    "response-rewrite": {
    "headers": {
    "Set-Cookie": "tagged=23333; Expires=Wed, 11 Sep 2030 08:00:00 GMT"
    }
    }
    },
    "uris": [
    "/*"
    ],
    "filter_func": "function(vars)\n return true\nend",
    "upstream_id": "127",
    "name": "-master_r_2022-08-17_3-DEFAULT",
    "priority": 0,
    "id": "345"
    },
  3. the backend server setup another cookie
  4. check the response, you will find the server-side cookies were deleted.

Environment

  • APISIX version (run apisix version):1.5
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@spacewander
Copy link
Member

Known issue. We will fix it via https://lists.apache.org/thread/bxl0sn1qb5fchvnynz7b8sst9r07cyqm.

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

Successfully merging a pull request may close this issue.

2 participants