Affects Version/s: 7.1.X, 7.2.X, Master
Component/s: Dynamic Data Mapping
No error information is displayed when using a broken data provider. For the business impact, a customer might not be aware that they made a mistake or that something broken. This creates a poor user experience.
One alternative would be to show the stacktrace on the logs:
- Add a deliberately broken data provider:
- name: Broken data provider
- URL: http://localhost:9999/
- Inputs: n/a
- Outputs: Name, $..name, List
- Create a form:
- Name: Test form
- Field Properties:
- Type: Select from List
- Name: Test
- From Data Provider: Broken data provider
- Choose an output parameter: Name
- Publish the form
- Open the form
Portal admin should be informed that there is an issue with the data provider
Nothing is reported. No error is logged to indicate the data provider is not working.
Increasing the log levels of classes com.liferay.dynamic.data.mapping.data.provider.internal.DDMDataProviderInvokerImpl to WARN
and com.liferay.dynamic.data.mapping.form.field.type.internal.DDMFormFieldOptionsFactoryImpl to DEBUG has no effect.
master @ 07cf1bc4eb8dca1508a4f36d2ee5a0cef788c9c8
7.2.x @ 6eaecf2e61368116b25d3c678b286cfbd26aa4dc
7.1.x @ 19a1be908eb1a8464b75dd0ee0e585e05aaad537
Note: in master and 7.2.x, a NPE is logged when executing that use case, but it isn't informative either.