Skip to content

Undocumented changes breaking error_document_template #4303

@torfsen

Description

@torfsen

It seems that #4225 changed how the HTTP error code is passed to error_document_template.html.

In CKAN 2.7.3, error_document_template.html says:

{% block subtitle %}{{ gettext('Error %(error_code)s', error_code=c.code[0]) }}{% endblock %}

In CKAN 2.8.0, however, the (BS2-) template says:

{% block subtitle %}{{ gettext('Error %(error_code)s', error_code=code[0]) }}{% endblock %}

Note c.code[0] vs. code[0].

Hence, custom variants of error_document_template.html need to be updated to work under CKAN 2.8.0. However, that change is not mentioned in the change log.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions