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

Add a new entry in the map endpoint checks for duplicates and Add a new payload does not #257

Open
linoor opened this issue Jun 13, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@linoor
Copy link

linoor commented Jun 13, 2022

Hello,

I've noticed that when I try to add an entry multiple times to a map file with POST http://{{url}}/v2/services/haproxy/runtime/maps_entries?map=routing.map endpoint I will get:

{
    "code": 409,
    "message": "already exists"
}

However, if I use POST http://{{url}}/v2/services/haproxy/runtime/maps/routing.map multiple times, the uniqueness check doesn't seem to be performed and Return one map runtime entries returns duplicates:

{
    {
        "id": "0xffffaf6ccdb0",
        "key": "host1",
        "value": "server1"
    },
    {
        "id": "0xffffaf6cce50",
        "key": "host2",
        "value": "server2"
    },
    {
        "id": "0xffffaf6cdef0",
        "key": "host1",
        "value": "server1"
    },
    {
        "id": "0xffffaf6cdf90",
        "key": "host2",
        "value": "server2"
    }
}
@mjuraga
Copy link
Collaborator

mjuraga commented Jun 20, 2022

This seems to be a bug and we definitely need to check this, thanks for reporting.

@mjuraga mjuraga added the bug Something isn't working label Jun 20, 2022
@june07
Copy link

june07 commented Jan 18, 2023

Any progress on this? I'm running into the exact same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants