#1752 frontend traceback: modulemd-yaml-error-quark: Module license is missing
Closed: Fixed 3 years ago by praiskup. Opened 3 years ago by praiskup.

2021-03-29 10:21:45,735 [ERROR][/usr/share/copr/coprs_frontend/coprs/error_handlers.py:83|error_handlers:handle_error] Admin-only exception
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/modulemd_tools/yaml.py", line 296, in _yaml2stream
    return Modulemd.ModuleStream.read_string(mod_yaml, True, None, None)
gi.repository.GLib.GError: modulemd-yaml-error-quark: Module license is missing (5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/share/copr/coprs_frontend/coprs/views/misc.py", line 353, in wrapper
    return f(copr, **kwargs)
  File "/usr/share/copr/coprs_frontend/coprs/views/coprs_ns/coprs_general.py", line 1210, in copr_module
    return flask.render_template("coprs/detail/module.html", copr=copr, module=module,
  File "/usr/lib/python3.9/site-packages/flask/templating.py", line 137, in render_template
    return _render(
  File "/usr/lib/python3.9/site-packages/flask/templating.py", line 120, in _render
    rv = template.render(context)
  File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/usr/lib/python3.9/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail/module.html", line 9, in top-level template code
    {% set selected_tab = "modules" %}
  File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail.html", line 2, in top-level template code
    {% from "_helpers.html" import copr_title, copr_url, render_crumb, copr_name, render_project_voting %}
  File "/usr/share/copr/coprs_frontend/coprs/templates/layout.html", line 90, in top-level template code
    {% block body %}{% endblock %}
  File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail.html", line 72, in block "body"
    {% block detail_body %}{% endblock %}
  File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail/module.html", line 70, in block "detail_body"
    {% for package in module.rpm_filter %}
  File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/usr/share/copr/coprs_frontend/coprs/models.py", line 2151, in rpm_filter
    return self.modulemd.get_rpm_filter().get()
  File "/usr/share/copr/coprs_frontend/coprs/models.py", line 2112, in modulemd
    return modulemd_tools.yaml._yaml2stream(self.yaml.decode("utf-8"))
  File "/usr/lib/python3.9/site-packages/modulemd_tools/yaml.py", line 298, in _yaml2stream
    raise ValueError(ex.message)
ValueError: Module license is missing

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

3 years ago

Metadata Update from @praiskup:
- Issue assigned to frostyx

3 years ago

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #1766 Merged 3 years ago