-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, 7.3.X, Master
-
Component/s: Forms
-
Labels:
-
Branch Version/s:7.3.x, 7.2.x
-
Backported to Branch:Committed
-
Fix Priority:2
-
Last Working Version:
-
Git Pull Request:
Steps to reproduce:
- Go to Control Panel > Configuration > System Settings > Data Providers and enable "Access Local Network"
- Also enable "Access Local Network" in Control Panel > Configuration > Instance Settings > Data Providers
- Go to Control Panel > Configuration > Server Administration and on the Log levels tab set WARN for com.liferay.dynamic.data.mapping.data.provider.internal.DDMDataProviderInvokerImpl and DEBUG for com.liferay.dynamic.data.mapping.form.field.type.internal.DDMFormFieldOptionsFactoryImpl
- Configure a Data provider for country names: Go to Content & Data > Forms > Data Providers and fill in the following:
Name: Countries of the World
URL: http://localhost:8080/api/jsonws/country/get-countries/
Username: admin email address (test@liferay.com)
Password: admin password (test)
Outputs: Label: Country Name, Path: $..nameCurrentValue, Type: List - Go to the Forms tab and add a new form with a Text field.
- Enable Autocomplete for this field. Select "From Data Provider", choose Countries of the World as Data Provider and Country Name as output parameter
- Publish the form and place it on a Page with Form widget
- Refresh this page several times (e.g. Press and hold F5, for example)
Actual behavior
On some occasions the below warning is thrown in the log (please find full warning message attached) and autocomplete does not give suggestions
WARN [http-nio-8080-exec-3][DDMDataProviderInvokerImpl:78] Unable to invoke DDM Data Provider instance ID 35320
Expected behavior
No warning in the log and options for autocomplete are shown below the text box
I was able to reproduce this behavior by following the steps listed above. However, the behavior is inconsistent, the warning is not always thrown and sometimes despite receiving the warning autocomplete still works as expected.
The customer has suggested changing the user name in Data Provider details (step 4) and using only "test" instead of "test@liferay.com". However, I was still able to reproduce the warning message in the log.
- is caused by
-
LPS-114936 Rest Api is getting called 2 times for each Form input field
- Closed