Skip to content

API: map: Cannot add new entries in existing file. #236

Open
@ghost

Description

Hello,

I have a strange issue with the map handler.
When I try to add a new entrie in existing file on my server, I have the following result :

Request & Body :

# curl -X POST http://haproxy-prod-tools-01/v2/services/haproxy/runtime/maps_entries?map=test&force_sync=true
{
    "key": "my_key",
    "value": "my_value"
}

Result :

{"code":404,"message":"/etc/haproxy/maps/test.map not found"}

image

I tried with empty file or not, adding custom path in dataplaneapi configuration, updating access on file and the result was the same 404.

This is my misstake or this a real issue ?

HAProxy version 2.5.0
HAProxy Data Plane API v2.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions