Skip to content

http.nonProxyHosts does not work without http.proxyUser, with quotes …#416

Merged
uhurusurfa merged 3 commits intoOpenAS2:masterfrom
markieww:feature/nonproxyhost415
Mar 17, 2025
Merged

http.nonProxyHosts does not work without http.proxyUser, with quotes …#416
uhurusurfa merged 3 commits intoOpenAS2:masterfrom
markieww:feature/nonproxyhost415

Conversation

@markieww
Copy link
Copy Markdown
Contributor

…and more related issues #415

Copy link
Copy Markdown
Contributor

@uhurusurfa uhurusurfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In principal this looks like a good solution.

The one catch in it is that the proxy configuration can be done either asa system property or as an AS2 property in the properties section of the config.xml or as a properties file provided to AS2 at startup.

So to use this solution you will need to push the proxy properties into the System properties if they are sourced from the Properties object.

I suggest that at the entry to the method, make the first check to the System property with fallback to the Properties and if found in Properties object then search for all possible proxy properties in Properties object and set them into the System property.

@markieww
Copy link
Copy Markdown
Contributor Author

In principal this looks like a good solution.

Thanks for having a first look. I hope that I can provide an updated PR next week - it is right busy now.

Benno Markiewicz added 2 commits March 17, 2025 16:51
…rty-support and http.nonProxyHosts as property OpenAS2#415

- respect proxy configuration from properties

Note the behaviour-change of using the user/password!
BEFORE: Use http.proxyUser/http.proxyPassword for https.proxyHost (<-- I guess that was an issue and not intentional)
NOW: Use https.proxyUser/https.proxyPassword for https.proxyHost

- introduce http.nonProxyHosts for configuration via properties
@markieww
Copy link
Copy Markdown
Contributor Author

@uhurusurfa Here is the updated PR with the following changes

  • respect proxy configuration from properties
    Note the behaviour-change of using the user/password!
    BEFORE: Use http.proxyUser/http.proxyPassword for https.proxyHost (<-- I guess that was an issue and not intentional)
    NOW: Use https.proxyUser/https.proxyPassword for https.proxyHost
  • introduce http.nonProxyHosts for configuration via properties
  • Cleanup - Remove unused methods in HTTPUtil

Please review.

Copy link
Copy Markdown
Contributor

@uhurusurfa uhurusurfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - thanks for the contribution. 🚀

@uhurusurfa uhurusurfa merged commit 8793682 into OpenAS2:master Mar 17, 2025
9 checks passed
@markieww
Copy link
Copy Markdown
Contributor Author

@uhurusurfa Thank you.

I guess you should close the corresponding issue #415 with a target version too

@markieww markieww deleted the feature/nonproxyhost415 branch March 18, 2025 10:04
GreicodexJM pushed a commit to igwtech/OpenAs2App that referenced this pull request Feb 26, 2026
OpenAS2#416)

* http.nonProxyHosts does not work without http.proxyUser, with quotes and more related issues OpenAS2#415

* http.nonProxyHosts does not work without http.proxyUser ... add property-support and http.nonProxyHosts as property OpenAS2#415

- respect proxy configuration from properties

Note the behaviour-change of using the user/password!
BEFORE: Use http.proxyUser/http.proxyPassword for https.proxyHost (<-- I guess that was an issue and not intentional)
NOW: Use https.proxyUser/https.proxyPassword for https.proxyHost

- introduce http.nonProxyHosts for configuration via properties

* Cleanup - Remove unused methods OpenAS2#415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants