Details
-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b24
-
generic
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056711 | emb-9 | Unassigned | P3 | Resolved | Fixed | b24 |
JDK-8063711 | 8u45 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8051014 | 8u40 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8070208 | emb-8u47 | Aleksej Efimov | P3 | Resolved | Fixed | team |
JDK-8051015 | 7u80 | Aleksej Efimov | P3 | Resolved | Fixed | b02 |
JDK-8060922 | 7u79 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8057347 | 7u76 | Aleksej Efimov | P3 | Closed | Fixed | b01 |
JDK-8051016 | 6u91 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8051017 | 5.0-pool | Aleksej Efimov | P3 | Closed | Won't Fix |
Description
"Set a feature for this SchemaFactory, Schemas created by this factory, and by extension, Validators and ValidatorHandlers created by those Schemas.
Implementors and developers should pay particular attention to how the special Schema object returned by newSchema() is processed. In some cases, for example, when the SchemaFactory and the class actually loading the schema come from different implementations, it may not be possible for SchemaFactory features to be inherited automatically. Developers should make sure that features, such as secure processing, are explicitly set in both places."
But run the following code snippet on JDK 9, it outputs true
---------------------------------------------
SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
schemaFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, false);
Schema schema = schemaFactory.newSchema(xsdSource);
Validator validator = schema.newValidator();
System.out.println( validator.getFeature(XMLConstants.FEATURE_SECURE_PROCESSING));
----------------------------------------------
Attachments
Issue Links
- backported by
-
JDK-8051014 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Resolved
-
JDK-8051015 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Resolved
-
JDK-8051016 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Resolved
-
JDK-8056711 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Resolved
-
JDK-8060922 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Resolved
-
JDK-8063711 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Resolved
-
JDK-8070208 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Resolved
-
JDK-8051017 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Closed
-
JDK-8057347 FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory
- Closed