core icon indicating copy to clipboard operation
core copied to clipboard

Make JSONTool and XMLTool capable of using proxy servers

Open FloSchMUC opened this issue 9 years ago • 5 comments

In customer environments where the CMS servers are located in a separated DMZ, JSONTool and XMLTool should be able to load files via a proxy server. Otherwise, it is impossible to access these files. Right now, JSONTool and XMLTool can only load content directly from the internet.

Configuring a proxy server either in the dotCMS config or as environment variables would be preferable.

  • dotCMS version used: 4.1.1

FloSchMUC avatar Nov 14 '17 10:11 FloSchMUC

You can solve this using Java System Properties. This means you can pass in -D properties in your startup.sh/bat

The 4 relevant properties are http.proxyHost http.proxyPort http.proxyUser http.proxyPassword

jtesser avatar Nov 14 '17 14:11 jtesser

Thanks, dotCMS support could not give me that answer and asked me to put a feature request here. Even better if it is that easy (I initially anticipated this answer but the ticket stated otherwise...).

FloSchMUC avatar Nov 14 '17 14:11 FloSchMUC

This will set the proxy for all outgoing http connections - correct?

brentgriffin avatar Nov 14 '17 14:11 brentgriffin

Yes great point Brent but as I understand the need the dotCMS is in a DMZ and needs to use a proxy for WAN access to get the JSON etc...

On Tue, Nov 14, 2017 at 9:31 AM Brent Griffin [email protected] wrote:

This will set the proxy for all outgoing http connections - correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/13049#issuecomment-344276194, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfteLU5m1yhtinZA7yeC-fPbo7PvA8Iks5s2aQpgaJpZM4QdFxf .

--

3059 Grand Avenue Suite 410-B Miami FL 33133 Main: 305-900-2001 | Direct: 978.294.9429

[email protected] | dotcms.com http://www.dotcms.com/

dotcmsCodeReview avatar Nov 14 '17 14:11 dotcmsCodeReview

Right - just need to keep this in mind in case the same proxy is not needed for every outgoing http request

brentgriffin avatar Nov 14 '17 14:11 brentgriffin