Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show exception is checked twice in ExceptionController of twig #23268

Closed
wants to merge 1 commit into from

Conversation

gmponos
Copy link
Contributor

@gmponos gmponos commented Jun 22, 2017

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR N/A

I think that the $showException variable is checked twice. Check line 105 of the same file. Hope I did not miss anythings since the tests are passing.

@fabpot
Copy link
Member

fabpot commented Jun 22, 2017

Thank you @gmponos.

@fabpot fabpot closed this Jun 22, 2017
fabpot added a commit that referenced this pull request Jun 22, 2017
…twig (gmponos)

This PR was submitted for the 3.4 branch but it was merged into the 2.7 branch instead (closes #23268).

Discussion
----------

Show exception is checked twice in ExceptionController of twig

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | N/A

I think that the $showException variable is checked twice. Check line 105 of the same file. Hope I did not miss anythings since the tests are passing.

Commits
-------

a433cec Show exception is checked twice in ExceptionController of twig
@gmponos gmponos deleted the fix_double_check_show_exception branch June 23, 2017 07:46
@xabbuh
Copy link
Member

xabbuh commented Jun 24, 2017

I think the check is still needed for the case when $format is not html and there is no error template for the requested format (see #23283).

@gmponos
Copy link
Contributor Author

gmponos commented Jun 24, 2017

👊 You are right.

There should have been a test for this. Good thing you added it.

Maybe this if should have been structured somehow different in order to make it clear. Anyway sorry for this after all.

fabpot added a commit that referenced this pull request Jun 24, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBundle] add back exception check

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23268
| License       | MIT
| Doc PR        |

#23268 introduced a regression in that the full exception page was not shown anymore in case a template for the given format (if not `html`) could not be found.

Commits
-------

46c38df [TwigBundle] add back exception check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants