#236 Custom-build-method url generation does not work for group coprs
Closed 7 years ago Opened 7 years ago by clime.

E.g. here: http://copr-fe-dev.cloud.fedoraproject.org/coprs/g/copr/TEST1519076720TestBug1457888/add_build/

This appears:

Error 500 : Internal Server Error
Could not build url for endpoint 'coprs_ns.group_copr_add_build_custom' with values ['coprname', 'group_name']. Did you mean 'coprs_ns.group_copr_add_build_scm' instead?

Exception snippet (sry, for not including the whole log):

[Wed Feb 21 10:50:26.091396 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
[Wed Feb 21 10:50:26.091398 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     reraise(exc_type, exc_value, tb)
[Wed Feb 21 10:50:26.091400 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
[Wed Feb 21 10:50:26.091402 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     raise value.with_traceback(tb)
[Wed Feb 21 10:50:26.091404 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail/add_build/url.html", line 4, in top-level template code
[Wed Feb 21 10:50:26.091406 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     {% set add_build_tab = "url" %}
[Wed Feb 21 10:50:26.091408 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail/add_build.html", line 5, in top-level template code
[Wed Feb 21 10:50:26.091410 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     {% set selected_tab = "builds" %}
[Wed Feb 21 10:50:26.091412 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail.html", line 2, in top-level template code
[Wed Feb 21 10:50:26.091414 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     {% from "_helpers.html" import copr_title, copr_url, render_crumb, copr_name %}
[Wed Feb 21 10:50:26.091416 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/share/copr/coprs_frontend/coprs/templates/layout.html", line 107, in top-level template code
[Wed Feb 21 10:50:26.091418 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     {% block body %}{% endblock %}
[Wed Feb 21 10:50:26.091420 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail.html", line 63, in block "body"
[Wed Feb 21 10:50:26.091422 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     {% block detail_body %}{% endblock %}
[Wed Feb 21 10:50:26.091424 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/share/copr/coprs_frontend/coprs/templates/coprs/detail/add_build.html", line 41, in block "detail_body"
[Wed Feb 21 10:50:26.091428 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     {{ nav_element("custom", "Custom", copr_url('coprs_ns.copr_add_build_custom', copr)) }}
[Wed Feb 21 10:50:26.091430 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 553, in _invoke
[Wed Feb 21 10:50:26.091432 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     rv = self._func(*arguments)
[Wed Feb 21 10:50:26.091434 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/share/copr/coprs_frontend/coprs/templates/_helpers.html", line 229, in template
[Wed Feb 21 10:50:26.091435 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     {{- url_for(group_view, group_name=copr.group.name, coprname=copr.name, **kwargs) }}
[Wed Feb 21 10:50:26.091437 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/lib/python3.6/site-packages/flask/helpers.py", line 332, in url_for
[Wed Feb 21 10:50:26.091439 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     return appctx.app.handle_url_build_error(error, endpoint, values)
[Wed Feb 21 10:50:26.091441 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1811, in handle_url_build_error
[Wed Feb 21 10:50:26.091443 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     reraise(exc_type, exc_value, tb)
[Wed Feb 21 10:50:26.091445 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
[Wed Feb 21 10:50:26.091447 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]     raise value
[Wed Feb 21 10:50:26.091449 2018] [wsgi:error] [pid 26620:tid 139934217991936] [remote 109.81.212.46:30569]   File "/usr/lib/python3.6/site-packages/flask/helpers.py", line 322, in url_for

Metadata Update from @praiskup:
- Issue assigned to praiskup

7 years ago

Metadata Update from @praiskup:
- Issue status updated to: Closed (was: Open)

7 years ago

Log in to comment on this ticket.

Metadata