Bug 1052073

Summary: Traceback on repo rendering
Product: [Community] Copr Reporter: Miroslav Suchý <msuchy>
Component: frontendAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: copr-1.23-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-06 08:32:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miroslav Suchý 2014-01-13 09:29:31 UTC
Message type:       ERROR
Location:           /usr/lib/python2.7/site-packages/flask/app.py:1306
Module:             app
Function:           log_exception
Time:               2014-01-10 17:25:56,384

Message:

Exception on /coprs/timlau/yumex-nextgen/repo/fedora-rawhide-x86-64/ [GET]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/share/copr/coprs_frontend/coprs/views/coprs_ns/coprs_general.py", line 332, in generate_repo_file
    mock_chroot = coprs_logic.MockChrootsLogic.get_from_name(chroot).one()
  File "/usr/share/copr/coprs_frontend/coprs/logic/coprs_logic.py", line 297, in get_from_name
    name_tuple = cls.tuple_from_name(None, chroot_name)
  File "/usr/share/copr/coprs_frontend/coprs/logic/coprs_logic.py", line 358, in tuple_from_name
    os_release, os_version = split_name[0].rsplit('-')
ValueError: too many values to unpack

Comment 1 Miroslav Suchý 2014-01-13 12:53:25 UTC
Fixed in upstream in git commit 39ad614