Error logs show repeated endpoint resolution failures after calling `/api/keystone/svc-catalog/`, including:
- `horizon.exceptions.ServiceCatalogException: Invalid service catalog: image` from `openstack_dashboard/api/base.py:url_for()`
- call chain through `openstack_dashboard/api/glance.py:glanceclient()` while resolving the `image` endpoint.
The REST handler filtered endpoints by writing back to `record['endpoints']` while iterating over `request.user.service_catalog`. That mutates the user session catalog in place and removes non-public interfaces needed by later backend API calls.
Fix this by copying each service record before replacing its endpoints in the response payload, so only the API response is filtered and the original `request.user.service_catalog` remains unchanged.
Closes-Bug: #2134580
Change-Id: I7569047442d932205a23abe5644fa1598df984e1
Signed-off-by: Pham Le Gia Dai <daiplg@fpt.com>