Page 1 of 1

java.net.URLPermission problem

Posted: Thu Feb 09, 2017 3:39 pm
by denevers
I'm having this issue with evaluation version Oxygen on a xsl:import-schema statement in a schematron file:

Scenario name: Schematron + SQF
Document type: Schematron
Engine name: ISO Schematron
Severity: fatal
Description: XTSE0220: ro.sync.net.protocol.http.abstraction.f: access denied ("java.net.URLPermission" "http://schemas.opengis.net/sweCommon/2. ... onents.xsd" "GET:")
Start location: 12:149
URL: http://www.w3.org/TR/xslt20/#err-XTSE0220



Added this to Oxygen XML Editor 18/jre/lib/security/java.policy

// allows anyone to listen on dynamic ports
permission java.net.SocketPermission "localhost:0", "listen";
permission java.net.SocketPermission "*", "connect,accept,listen";

rebooted the laptop, still does not work

Windows 7 Enterprise, SP 1, 32 bits
<oXygen/> XML Editor 18.1, build 2017013018

Any clue ?

Thanks

Re: java.net.URLPermission problem

Posted: Thu Feb 09, 2017 4:02 pm
by Radu
Hi,

Oxygen has a security manager which sometimes tries to block outbound HTTP connections. Usually our users are notified each time Oxygen blocks a connection and they have the possibility to add the trusted host in the Preferences->Network Connection Settings / Trusted Hosts page. Somehow in your case adding the host as a trusted host does not seem to work.
I reproduced the problem on our side and I added an internal issue to try and fix this.
The only workarounds I have right now would be to either download the XML Schemas locally and refer to them either directly or via an XML catalog which resolves them locally or you can drop us an email (support@oxygenxml.com) and I could give you some steps to inhibit the entire security in your Oxygen application.

Regards,
Radu

Re: java.net.URLPermission problem

Posted: Thu Apr 06, 2017 3:24 pm
by Radu
Hi,

Just to update this thread, with Oxygen 19 adding the host to the lit of trusted hosts should be enough for the Schematron to be properly applied.

Regards,
Radu