Configure Eclipse Proxy for XML Validation

Running Eclipse 3.5 (= Galileo) under (K) Ubuntu Linux 9.10. Enterprise environment with HTTP proxies.

I have my Preferences | General | Network Connections Preferences | General | Network Connections Preferences | General | Network Connections configured with HTTP , host, port, Authentication required and credentials.

Eclipse asks for my master password when starting Eclipse. So I presented all the permissions that I can think of, but it doesn't seem to be enough.

Access to the proxy works fine (and without listening to me), for example. software updates and SVN updates from the Internet, but apparently do not run for XML DTD validation. Eclipse opens a dialog box showing my proxy server and asks for the proxy password. I expect it to get this information from the proxy credentials that I configured. This happens quite often, so it annoys me a lot. Is there anything I can do to make this easier?

+4
source share
2 answers

Have you tried accessing the Internet using Eclipse (for updating or validating XML) through the manual Active Provider instead of native?

http://web.archive.org/web/20120325061201/http://img294.i_mageshack.us/img294/4977/eclipsemanual2.png

Eclipse should not ask for a password at the beginning, and XML validation should work.
error 82037 was resolved a long time ago, and the current settings for development (for example, MOTODEV Studio for installing Android ) recommend manual settings for the proxy.

When you are on a network that requires proxy authentication, MOTODEV Studio updates will only be performed if the proxy information (including username and password) is manually set for HTTP and HTTPS (in the "Settings" section "under General > Network Connections ).
It also affects the download and installation of the Android SDK during the installation process. If during installation you are asked if you want to change the connection settings, do so. Change the active provider to "Manual" and specify the host, port, user and password values ​​for HTTP and HTTPS schemes.

Just tested it: it asks for my credentials ... once. The first time I try to validate an XML file as shown below.
But after that, he no longer asks me for these credentials.

 <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public"> <group xml:base="http://www.oasis-open.org/docbook/xml/4.1.2/"> <public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN" uri="docbookx.dtd"/> <public publicId="-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" uri="dbnotnx.mod"/> <public publicId="-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" uri="dbcentx.mod"/> <public publicId="-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" uri="dbpoolx.mod"/> <public publicId="-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" uri="dbhierx.mod"/> <public publicId="-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" uri="dbgenent.mod"/> <public publicId="-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" uri="calstblx.dtd"/> </group> <public publicId="-//OASIS//DTD DocBook MathML Module V1.0//EN" uri="http://www.oasis-open.org/docbook/xml/mathml/1.0/dbmathml.dtd"/> <nextCatalog catalog="stylesheets.xml"/> </catalog> 

So, in Eclipse you need all your credentials on the Internet to be able to check xml files at any time: proxy, port, username, password.
But when you have to save the password, then the master password will be executed and will be requested at each Eclipse session (once):

Information stored in a secure vault (for example, CVS password) is encrypted using the "primary" password. The master password is retrieved from the "password provider module". The SDK includes three password provider modules:

+4
source

I'm not sure why Eclipse does not use a proxy to load DTDs. This sounds like an error, and you must open the defect (if it does not exist).

As a temporary workaround, you can add the user-specified contribution to the Eclipse directory. First upload the DTD to a local folder. Then, under "Settings-> XML-> XML Catalog, select" Custom Entries "and click" Add "and add your files.

+2
source

Source: https://habr.com/ru/post/1299956/


All Articles