Skip to content

daemon should report error when trying to set environment variables, and there are two variables with the same name #23

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

Open
gregsadetsky opened this issue Feb 11, 2025 · 0 comments

Comments

@gregsadetsky
Copy link
Member

gregsadetsky commented Feb 11, 2025

the payload below - with the test variable appearing twice - was accepted by the daemon when POST'ing to https://(server)/api/projects/(project)/env

the daemon only kept the "later" value (of new variable), but I believe that it should have returned an error instead

{
    "envVariables":
    [
        {
            "name": "another",
            "value": "test"
        },
        {
            "name": "test",
            "value": ""
        },
        {
            "name": "testt",
            "value": ""
        },
        {
            "name": "test",
            "value": "new variable"
        }
    ]
}
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

No branches or pull requests

1 participant