REST access denied page shows an empty message

Created on 23 April 2020, over 4 years ago
Updated 11 October 2023, about 1 year ago

If a REST resource returns an access denied, for example if there are no entity permissions, then the JSON contains a message with no message:


{

    "message": ""

}
🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component
REST 

Last updated about 14 hours ago

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    The last comment confirms that this is no longer a problem. The only confirmed report of this is from a contrib module.

    Therefor, closing.

  • For anoyone who might still reach this from search results:

    Incorrectly configured paths (for example, from custom resources) also give an empty messages. For example, if the path "/custom_resource/{entity}" cannot receive an "entity" parameter (because, say, it expects a "custom_entity" one).

    Although, in my opinion, this also falls within the scope of this issue since custom resources are by definition extending the core rest infrastructure, and so it should therefore be reopened (or a new one created).

Production build 0.71.5 2024