CSW get capabilities ingore virtual services settings and always use the global service ones

Description

To reproduce this issue just configure a virtual service for CSW and configure a specific abstract for it, then request the capabilities document for the virtual service. The abstract will be the global service one.

This issue happens because the CSW service instance is stored as a class variable and never updated in this classe:

https://github.com/nmco/geoserver/blob/7a116cb2ae08d7ab6101ac5c56169dca9d02d493/src/extension/csw/core/src/main/java/org/geoserver/csw/DefaultWebCatalogService.java#L61-L61

Environment

None

Status

Assignee

Torben Barsballe

Reporter

Nuno Oliveira

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure