Unable to update appearance images via the API
Summary
Updating appearance images via the API is not working. Tested with header_logo
, log
, and favicon
. When changing the image, a successful response is returned with the command in the logs. However, the images do not get updated. Updating the images via the UI works.
Steps to reproduce
Try to change the image according to the API documentation.
curl --request PUT --header "PRIVATE-TOKEN: <token>" 'https://gitlab.domain.com/api/v4/application/appearance?header_logo\="/path/to/image.png"'
What is the current bug behavior?
A successful response is returned, but the image is not updated. The response also shows the image not updated.
What is the expected correct behavior?
The image should be updated.
Relevant logs and/or screenshots
Example response:
{"title":"","description":"","logo":null,"header_logo":null,"favicon":null,"new_project_guidelines":"","header_message":"","footer_message":"","message_background_color":"#e75e40","message_font_color":"#ffffff","email_header_and_footer_enabled":false}%
Output of checks
Noted on 12.10.3 and 13.0.5.
Customer ticket: https://gitlab-federal-support.zendesk.com/agent/tickets/129 (internal use)