#5011 project page return 500 when push a branch with emoji naming to repository
Opened 3 years ago by sixg0000d. Modified 3 years ago

Description of problem

If I create a branch with emoji in its name and push it to pagure remote repository, and access the project on pagure.io, the page will occuring an error.
but remote git repository seem works fine, I can do git clone/pull/push and anything to remote repository, just cannot access any html page which in this project.

Version

Pagure 5.11.3 (Shown at the bottom of the pagure.io page)

How reproducible

all repositories I created

Steps to Reproduce

  1. create a new project on pagure.io
  2. git clone the repository to local
  3. create a branch with emoji in its name like:
    git switch -c '🤣'
  4. push the branch
    git push origin '🤣'
  5. view the repository on pagure.io

Actual results

Return the page with error:

Fatal Error (500)
A fatal error has occurred, we're sorry :(

Expected results

Return the html page content


The funny thing is that this works locally, I checked this just last week

The funny thing is that this works locally, I checked this just last week

You can check my project page to reproduce the error:
https://pagure.io/branch-named-emoji

Oh I can reproduce on pagure.io just not locally :(

I suspect the issue is coming from pygit2, it crashes on flask.g.repo_obj.listall_branches() :(

Login to comment on this ticket.

Metadata