#5494 500 error when project has a branch named with unicode char
Opened 10 months ago by kevin. Modified 10 months ago

Made a branch in a project be called "☃"

and then the project 500's from the web site with:

[Thu Jun 06 23:27:33.392840 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] [2024-06-06 23:27:33,392] ERROR in app: Exception on /create_new [GET]
[Thu Jun 06 23:27:33.392859 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] Traceback (most recent call last):
[Thu Jun 06 23:27:33.392862 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
[Thu Jun 06 23:27:33.392878 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     response = self.full_dispatch_request()
[Thu Jun 06 23:27:33.392881 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
[Thu Jun 06 23:27:33.392883 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = self.handle_user_exception(e)
[Thu Jun 06 23:27:33.392885 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
[Thu Jun 06 23:27:33.392888 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     reraise(exc_type, exc_value, tb)
[Thu Jun 06 23:27:33.392890 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
[Thu Jun 06 23:27:33.392898 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     raise value
[Thu Jun 06 23:27:33.392901 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1610, in full_dispatch_request
[Thu Jun 06 23:27:33.392903 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = self.preprocess_request()
[Thu Jun 06 23:27:33.392905 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1831, in preprocess_request
[Thu Jun 06 23:27:33.392907 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = func()
[Thu Jun 06 23:27:33.392910 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/pagure/flask_app.py", line 403, in set_request
[Thu Jun 06 23:27:33.392912 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     flask.g.branches = sorted(flask.g.repo_obj.listall_branches())
[Thu Jun 06 23:27:33.392915 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
[Thu Jun 06 23:27:33.392924 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] 
[Thu Jun 06 23:27:33.393101 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] 2024-06-06 23:27:33,392 [ERROR] pagure.flask_app: Error while processing request
[Thu Jun 06 23:27:33.393105 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] Traceback (most recent call last):
[Thu Jun 06 23:27:33.393108 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
[Thu Jun 06 23:27:33.393110 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     response = self.full_dispatch_request()
[Thu Jun 06 23:27:33.393112 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
[Thu Jun 06 23:27:33.393114 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = self.handle_user_exception(e)
[Thu Jun 06 23:27:33.393117 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
[Thu Jun 06 23:27:33.393119 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     reraise(exc_type, exc_value, tb)
[Thu Jun 06 23:27:33.393121 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
[Thu Jun 06 23:27:33.393123 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     raise value
[Thu Jun 06 23:27:33.393125 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1610, in full_dispatch_request
[Thu Jun 06 23:27:33.393128 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = self.preprocess_request()
[Thu Jun 06 23:27:33.393133 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1831, in preprocess_request
[Thu Jun 06 23:27:33.393135 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = func()
[Thu Jun 06 23:27:33.393137 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/pagure/flask_app.py", line 403, in set_request
[Thu Jun 06 23:27:33.393139 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     flask.g.branches = sorted(flask.g.repo_obj.listall_branches())
[Thu Jun 06 23:27:33.393142 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
[Thu Jun 06 23:27:33.393146 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] 
[Thu Jun 06 23:27:33.567745 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] [2024-06-06 23:27:33,392] ERROR in flask_app: Error while processing request
[Thu Jun 06 23:27:33.567765 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] Traceback (most recent call last):
[Thu Jun 06 23:27:33.567768 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
[Thu Jun 06 23:27:33.567770 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     response = self.full_dispatch_request()
[Thu Jun 06 23:27:33.567773 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
[Thu Jun 06 23:27:33.567775 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = self.handle_user_exception(e)
[Thu Jun 06 23:27:33.567778 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
[Thu Jun 06 23:27:33.567780 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     reraise(exc_type, exc_value, tb)
[Thu Jun 06 23:27:33.567782 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
[Thu Jun 06 23:27:33.567784 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     raise value
[Thu Jun 06 23:27:33.567787 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1610, in full_dispatch_request
[Thu Jun 06 23:27:33.567789 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = self.preprocess_request()
[Thu Jun 06 23:27:33.567791 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1831, in preprocess_request
[Thu Jun 06 23:27:33.567793 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     rv = func()
[Thu Jun 06 23:27:33.567795 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]   File "/usr/lib/python3.6/site-packages/pagure/flask_app.py", line 403, in set_request
[Thu Jun 06 23:27:33.567803 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614]     flask.g.branches = sorted(flask.g.repo_obj.listall_branches())
[Thu Jun 06 23:27:33.567807 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
[Thu Jun 06 23:27:33.567816 2024] [wsgi:error] [pid 2401554:tid 140034665580288] [remote 2001:470:e8c1:dead:f08e:eff7:be0a:51c7:34614] 

Metadata Update from @ngompa:
- Issue tagged with: bug

10 months ago

Log in to comment on this ticket.

Metadata