Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.7.0, 3.10.0
-
1
Description
In 3.10.0, set these in etc/nexus.properties:
org.sonatype.nexus.repository.httpbridge.internal.HttpBridgeModule.legacy=true nexus.view.exhaustForAgents=Apache-Maven.*|Apache Ivy.*|maven-artifact.*
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.
Expected
Legacy URLs should be perform identically to the regular URLs in the described case.
Attachments
Issue Links
- is caused by
-
NEXUS-10162 migrating NXRM2 to NXRM3 automatically enables legacy content URLs
-
- Done
-
- is related to
-
NEXUS-10234 Maven httpclient may receive SocketException Broken pipe instead of expected status code on deploy
-
- Closed
-