Skip to content

Use UserMessageException when there are problems in block backend#6651

Merged
aembler merged 1 commit intoconcretecms:developfrom
mlocati-forks:block-ui-problems-UserMessageException
May 15, 2018
Merged

Use UserMessageException when there are problems in block backend#6651
aembler merged 1 commit intoconcretecms:developfrom
mlocati-forks:block-ui-problems-UserMessageException

Conversation

@mlocati
Copy link
Copy Markdown
Contributor

@mlocati mlocati commented May 15, 2018

In order to avoid data disclosure, generic exceptions may not be shown to the site users (it depends on the concrete.debug.display_errors configuration key).

When we want that a specific error message is shown to the user, we should throw Concrete\Core\Error\UserMessageException exceptions (see here for http errors and here for json errors).

@aembler aembler merged commit 6f19565 into concretecms:develop May 15, 2018
@mlocati mlocati deleted the block-ui-problems-UserMessageException branch May 15, 2018 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants