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: The copy function copied the ID, resulting in duplicate ID and unable to submit #2407

Closed
2null opened this issue Apr 1, 2022 · 3 comments · Fixed by #2501
Closed

bug: The copy function copied the ID, resulting in duplicate ID and unable to submit #2407

2null opened this issue Apr 1, 2022 · 3 comments · Fixed by #2501
Assignees
Labels

Comments

@2null
Copy link

2null commented Apr 1, 2022

Current Behavior

The copy function copied the ID, resulting in duplicate ID and unable to submit
For example, if the routing is copied and the content is modified after copying, the new copy will bring the old ID synchronously and cannot be modified, resulting in abnormal replication functions

Expected Behavior

Do not copy the ID. create a new ID when submitting

Error Logs

image
image

Steps to Reproduce

Scenario that may cause this problem: restore from etcd backup of lower version to newly apisix installed version, and there will be similar problems
I have tried the latest three versions and all have similar problems

This function is abnormal, which leads to great hidden dangers in upgrading

Environment

  • APISIX version (run apisix version):
  • 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):
@leslie-tsang leslie-tsang transferred this issue from apache/apisix Apr 1, 2022
@juzhiyuan
Copy link
Member

Hi @bzp2010, do you have any update here?

@ccwxl
Copy link

ccwxl commented Jul 6, 2022

I also have this problem. copy router.

@SkyeYoung
Copy link
Member

I'll take a look, and try to solve this.

This was referenced Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants