When accessing the locationAttributeTypes.list page via the Legacy UI module, the page returns a “None” response in the body, even though Location Attribute Types exist in the system. The issue appears not to be related to saving or persistence, as new attribute types can be successfully added. However, the list view fails to render any of the available entries.
Observe that the page displays "None" even when multiple Location Attribute Types are defined.
Expected Behavior:
The page should render a table listing all existing Location Attribute Types instead of displaying "None".
Actual Behavior:
The JSP page renders only the text "None" and does not list any of the available location attribute types.
Additional Notes:
Adding a new Location Attribute Type via the form works correctly — the data is saved and visible in the database.
The issue appears to be within the display logic or model binding on the JSP page (locationAttributeTypes.jsp), potentially around the data retrieval or iteration context at line 18.
This behavior is consistent across multiple versions of the LegacyUI module and OpenMRS platform releases.
Actually I am little confused. (Its been a really long time, I did anything with JSP and JSTL). If I debug
I can see that HTTP GET /openmrs/admin/locations/locationAttributeTypes.list - code execution coming to LocationAttributeTypeFormController.showForm() but it does not return any model. Maybe this is for old spring JSP form lifecycle method?
I can confirm that it works if we do the right mapping. remove the /locationAttributeTypes.list mapping from the FormController and update the same in the ListController.
(btw, the above is legacy ui version 1.22 and 1.23)
btw, any particular reason that 1.23 tag commit does not belong to any branch on the repo? (unlike say 1.22) Was it done from a fork outside of the repo or locally?
However, the same seems to work with o3 demo.
Both the cases, I am using legacy ui - 1.23 version, but we are using OMRS core 2.6.15
error thrown is:
openmrs-1 | WARN - AbstractHandlerExceptionResolver.logException(208) |2025-10-21T16:46:54,880| Resolved [org.springframework.web.method.annotation.MethodArgumentConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'org.openmrs.ConceptAttributeType'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'org.openmrs.ConceptAttributeType': no matching editors or conversion strategy found]
Thanks @dkayiwa. o3.openmrs.org seems to have 1.23.0 though. Also, the commit related to the 1.23 tag, has the version mentioned (not as snapshot). Check here