Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.1.10 DXP GA1, 7.1.X, Master
-
7.1.x
-
Committed
-
1
-
4
-
F&W Sprint 3
Description
Prerequisite:
It's possible that, before following the steps, you might need to change the Service Access Policy.
Trying to reproduce this @ master (commit 8d5af05f5bf00f123ddd104fbaf9231ba54e05ae), the getCountry service was not allowed to be accessed from the API anymore. Steps to change that:
- Got to Control Panel > Configuration > Service Access Policy;
- Edit the SYSTEM_DEFAULT policy;
- Click on "Switch to Advanced Mode";
- In "Allowed Service Signatures" box, add a new line with com.liferay.portal.kernel.service.CountryService#getCountry
- Save.
Steps to Reproduce:
- Go to Content > Forms
- Add a Data Provider to "get a country by Id"
- URL: http://localhost:8080/api/jsonws/country/get-country
- UserName/PW
- Input:
- Label: ID
- Parameter: countryId
- Type: Number
- Output
- Label: name
- Parameter: nameCurrentValue
- Type: List
- Add a Second Data Provider to "get list of countries"
- URL: http://localhost:8080/api/jsonws/country/get-countries
- UserName/PW
- Output
- Label: ID
- Parameter: countryId
- Type: List
- Add a new form
- Add a text field
- Configure to Autocomplete from the second data provider (get list of countries) using the ID
- Add a select from list field
- Set to "From Autofill"
- Go to Rules
- Add a new Rule
- If text field is not empty: Autofill from first data provider (get country by Id) using the text field as the ID input
- Save and Publish form
- Go to Publication URL
- Input "2" into text field
- Select any of the autocomplete options using the mouse
- View output into Select field
Expected Result:
Select field will be populated with the value chosen by the user during autocomplete.
Actual Result:
Select field will not update. Will always have "China" as an option if the user types "2" and then autocompletes.
This only occurs if the user uses the autocomplete. For example, if the user manually inputs "245" then "Tokelau" will be populated.
Reproduced on:
Master: 2183ba53f8778b7331e371f061ffcb789f96676d
7.1 DXP GA1