Skip to content

Error creating Wikis/Snippet repositories when the default branch name contains non ascii chars

Summary

We are unable to create wikis when the instance wide default branch name contains non ascii chars.

This also applies to create snippets as they also rely on the default branch name when creating a snippet repo.

Discovered when doing some testing related to #393400 (closed)

Steps to reproduce

Wikis

Snippets

  • Use an existing project, and access the project snippets
  • Attempt to create a new snippet.
  • Note the error Can't create snippet: Repository Error creating the snippet - U+00E4 from UTF-8 to ASCII-8BIT

What is the current bug behavior?

  • Error in GDK UI - error Wiki::CouldNotCreateWikiError`
  • Wiki project isn't created
  • Error trying to create a first new snippet in a project
  • Snippets repo isn't created

What is the expected correct behavior?

When the instance wide default branch contains non ascii chars

  • Should be able to create a project and wiki
  • Should be able to create snippets

Possible fixes

Edited by John McDonnell