In 3.10.0, set these in etc/nexus.properties:
This request will be exhausted by the ExhaustRequestFilter filter:
curl -v -X PUT http://localhost:8081/repository/maven-releases/foo -H "user-agent: maven-artifact" -o /dev/null
This request will not and fail as per scenarios described in https://issues.sonatype.org/browse/NEXUS-10234 :
curl -v -X PUT http://localhost:8081/content/repositories/maven-releases/foo -H "user-agent: maven-artifact" -o /dev/null
Debugging shows that the filter still has the default agent pattern of Apache-Maven.* for legacy URLs instead of the one set by the property.
Legacy URLs should be perform identically to the regular URLs in the described case.