Problem
A cleanup policies provide asset matcher regexes for selecting components to remove. However, regexes containing a valid + token (to match one or more) result in an empty CSV preview file. The cleanup policy itself still works as expected.
Cause
The URL to render the CSV file does not properly encode the + (NEXUS-40930). For example:
http://localhost:8081/service/rest/internal/cleanup-policies/preview/components/csv?repository=maven-releases&name=Test-policy&criteriaAssetRegex=\/com\/test\/.*\/[0-9]+
Solution
Manually update to URL to replace all of the + characters with %2B:
http://localhost:8081/service/rest/internal/cleanup-policies/preview/components/csv?repository=maven-releases&name=Test-policy&criteriaAssetRegex=\/com\/test\/.*\/[0-9]%2B