Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Group avatar - file format not supported issue #2750

Closed
trafford-tbe opened this issue Dec 27, 2023 · 0 comments
Closed

Group avatar - file format not supported issue #2750

trafford-tbe opened this issue Dec 27, 2023 · 0 comments

Comments

@trafford-tbe
Copy link

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:

  1. Group creation without --avatar option works correctly.
  2. Path to .png is absulute path to file with correct read permissions.
  3. 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
@python-gitlab python-gitlab locked and limited conversation to collaborators Dec 27, 2023
@JohnVillalovos JohnVillalovos converted this issue into discussion #2751 Dec 27, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant