elharo opened a new issue, #147:
URL: https://github.com/apache/maven-jarsigner-plugin/issues/147

   **Affected version:** HEAD
   
   **File:** 
`src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java:526-531`
   
   The `processArchive()` method wraps the `nonProxyHosts` value in literal 
quote characters when constructing `-J-D` arguments for the JVM:
   
   ```java
   if 
(StringUtils.isNotEmpty(this.settings.getActiveProxy().getNonProxyHosts())) {
       additionalArguments.add("-J-Dhttp.nonProxyHosts=\""
               + this.settings.getActiveProxy().getNonProxyHosts() + "\"");
   
       additionalArguments.add("-J-Dftp.nonProxyHosts=\""
               + this.settings.getActiveProxy().getNonProxyHosts() + "\"");
   }
   ```
   
   These literal `\"` characters are passed to the JVM verbatim via the `-J` 
argument. The resulting system property value includes the quotes, e.g., 
`http.nonProxyHosts` would be set to `"localhost|*.example.com"` (with quotes) 
instead of `localhost|*.example.com`. This causes the non-proxy host matching 
to fail because the host patterns include quote characters.
   
   The fix should remove the `\"` quoting around the value.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to