You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OSD fetches the config:<version> from the metadata store and uses the output without proper if it is correctly formatted. This can result in unhelpful 500 errors.
SavedObjectsRepository.get makes the call to get the metadata attributes; here type = 'config'
This results in a TypeError which caught and re-thrown.
Expected behavior
A beautiful notification telling me that my configuration is corrupted because _source is expected to have something in it. Or, at least don't show a 500 error. The code should not attempt to create it because _source being empty could be due to Field Level Security.
The text was updated successfully, but these errors were encountered:
@AMoo-Miki can another issue/campaign be implemented to avoid this common re-occurrence that plugins gives end users the ability to directly impact system indices without them knowing about it?
Within core OpenSearch Dashboards, the default behavior is to hide system indices so the user can have no clue that requests related to indices and pass wildcard can hit system indices. Nor do I think they usually want to. For this, I wouldn't see the benefit in FLS on non-data indices. Or applying a index mapping template to system indices (modifying .kibana).
Describe the bug
OSD fetches the
config:<version>
from the metadata store and uses the output without proper if it is correctly formatted. This can result in unhelpful 500 errors.SavedObjectsRepository.get
makes the call to get the metadata attributes; heretype = 'config'
OpenSearch-Dashboards/src/core/server/saved_objects/service/lib/repository.ts
Lines 988 to 998 in fe1f1d1
The output can contain
attributes: undefined
when_source = {}
. The attributes are indiscriminately passed on:OpenSearch-Dashboards/src/core/server/ui_settings/ui_settings_client.ts
Lines 234 to 235 in fe1f1d1
And are used without any care in
OpenSearch-Dashboards/src/core/server/ui_settings/ui_settings_client.ts
Lines 280 to 285 in fe1f1d1
This results in a
TypeError
which caught and re-thrown.Expected behavior
A beautiful notification telling me that my configuration is corrupted because
_source
is expected to have something in it. Or, at least don't show a 500 error. The code should not attempt to create it because_source
being empty could be due to Field Level Security.The text was updated successfully, but these errors were encountered: