-
Notifications
You must be signed in to change notification settings - Fork 675
Closed
Description
Description of the problem, including code/CLI snippet
I'm trying to add avatar to group using following command:
gitlab -v group create --name "Test 1" --path "test1" --parent-id 21 --avatar "/tmp/logo_lab.png"
where:
- Group creation without
--avataroption works correctly. - Path to .png is absulute path to file with correct read permissions.
- The same file added using web-gui dispalys correctly.
Expected Behavior
Avatar added to group.
Actual Behavior
Message returned:
Impossible to create object (400: Failed to save group {:avatar=>["file format is not supported. Please try one of the following supported formats: image/png, image/jpeg, image/gif, image/bmp, image/tiff, image/vnd.microsoft.icon"]})
Specifications
- python-gitlab version: 4.2.0
- API version you are using (v3/v4): v4
- Gitlab server version (or gitlab.com): v16.6.2-ee
Metadata
Metadata
Assignees
Labels
No labels