Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Application Settings enabled_git_access_protocol cannot be set to null #1571

@timofurrer

Description

@timofurrer

The enabled_git_access_protocol field in the settings API supports enabling all protocols by setting the field to null, e.g.:

curl -X PUT --header "PRIVATE-TOKEN: $GITLAB_ACCESS_TOKEN" http://localhost:8080/api/v4/application/settings --header 'Content-Type: application/json' --data  '{"enabled_git_access_protocol": null}'

However, that is currently not possible, because the json tag contains omitempty and there is no special marshaller for it.

There are currently provider users facing this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions