Mercurial > hg > openjdk > aarch64-port > jaxp
changeset 740:7564cf1c98d9
8049514: FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
Reviewed-by: lancea
author | aefimov |
---|---|
date | Tue, 22 Jul 2014 09:21:23 +0400 |
parents | b199d6a71cd6 |
children | 0e861e28bd39 |
files | src/com/sun/org/apache/xerces/internal/jaxp/validation/XMLSchemaFactory.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/sun/org/apache/xerces/internal/jaxp/validation/XMLSchemaFactory.java Thu Jul 17 18:04:28 2014 +0100 +++ b/src/com/sun/org/apache/xerces/internal/jaxp/validation/XMLSchemaFactory.java Tue Jul 22 09:21:23 2014 +0400 @@ -453,7 +453,8 @@ } private void propagateFeatures(AbstractXMLSchema schema) { - schema.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, fSecurityManager != null); + schema.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, + (fSecurityManager != null && fSecurityManager.isSecureProcessing())); schema.setFeature(Constants.ORACLE_FEATURE_SERVICE_MECHANISM, fUseServicesMechanism); String[] features = fXMLSchemaLoader.getRecognizedFeatures(); for (int i = 0; i < features.length; ++i) {