Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

SECURE_PROCESSING_FEATURE #11

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 31 additions & 20 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry excluding="src/test/java" including="**/*.java" kind="src" output="target/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="samples"/>
<classpathentry kind="src" path="tests"/>
<classpathentry kind="lib" path="tools/xml-apis.jar"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src/tmp"/>
<classpathentry kind="lib" path="tools/xml-apis.jar" sourcepath="/home/rsigal/.m2/repository/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01-sources.jar"/>
<classpathentry kind="lib" path="tools/serializer.jar"/>
<classpathentry kind="lib" path="tools/icu4j.jar"/>
<classpathentry kind="lib" path="tools/resolver.jar"/>
<classpathentry kind="lib" path="tools/junit.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.3"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="src" output="target/classes" path="target/generated-sources/extra">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/out.xml
/target
*.iml
/bin/
22 changes: 6 additions & 16 deletions .project
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<projectDescription>
<name>xerces-java-trunk</name>
<comment></comment>
Expand All @@ -26,8 +10,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
5 changes: 4 additions & 1 deletion .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#Mon Jul 14 00:07:56 EDT 2008
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
Expand Down
108 changes: 108 additions & 0 deletions docbook/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>xerces</groupId>
<artifactId>secure-configuration-guide</artifactId>
<version>2.11.0.SP5-SNAPSHOT</version>
<packaging>jdocbook</packaging>

<name>Xerces Secure Configuration Guide</name>
<description>
Discusses the implementation of the SECURE PROCESSING FEATURE introduced in JAXP.
</description>
<url>http://xerces.apache.org/xerces2-j</url>
<inceptionYear>2005</inceptionYear>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org/</url>
</organization>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<build>
<plugins>
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
<version>2.3.8</version>
<extensions>true</extensions>

<dependencies>
<dependency>
<groupId>org.jboss.pressgang</groupId>
<artifactId>pressgang-xslt-ns</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.jboss.pressgang</groupId>
<artifactId>pressgang-jdocbook-style</artifactId>
<type>jdocbook-style</type>
<version>2.0.2</version>
</dependency>
</dependencies>

<configuration>
<sourceDocumentName>master.xml</sourceDocumentName>
<masterTranslation>en-US</masterTranslation>
<sourceDirectory>reference/en</sourceDirectory>
<imageResource>
<directory>reference/en</directory>
<includes>
<include>images/*</include>
</includes>
</imageResource>
<formats>
<format>
<formatName>html_single</formatName>
<stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
<finalName>index.html</finalName>
<!-- <profilingTypeName>two_pass</profilingTypeName> -->
</format>
<format>
<formatName>html</formatName>
<stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
<finalName>index.html</finalName>
<!-- <profilingTypeName>two_pass</profilingTypeName> -->
</format>
<format>
<formatName>pdf</formatName>
<stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
<finalName>${project.artifactId}.pdf</finalName>
</format>
<!--<format>-->
<!--<formatName>eclipse</formatName>-->
<!--<stylesheetResource>classpath:/xslt/org/jboss/eclipse.xsl</stylesheetResource>-->
<!--<finalName>${project.artifactId}.html</finalName>-->
<!--</format>-->
</formats>
<injections>
<injection>
<name>project.version</name>
<value>${project.version}</value>
</injection>
</injections>
<options>
<xmlTransformerType>saxon</xmlTransformerType>
<xincludeSupported>true</xincludeSupported>
<useRelativeImageUris>true</useRelativeImageUris>
<!-- TODO Probably obsolete after the upgrade to maven-jdocbook-plugin 2.3.0 -->
<docbookVersion>1.72.0</docbookVersion>
<!-- <localeSeparator>-</localeSeparator> -->
</options>
</configuration>
</plugin>
</plugins>
</build>

<properties>
<translation>en-US</translation>
</properties>
</project>
25 changes: 25 additions & 0 deletions docbook/reference/en/en-US/master.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.docbook.org/xml/4.4/docbookx.dtd"
[
<!ENTITY Introduction SYSTEM "modules/Introduction.xml">
<!ENTITY Features SYSTEM "modules/Features.xml">
<!ENTITY Properties SYSTEM "modules/Properties.xml">
<!ENTITY Compatibility SYSTEM "modules/Compatibility.xml">
]>

<article>

<articleinfo>
<title>Xerces: Secure Processing Configuration</title>
<releaseinfo>2.11.0.SP5</releaseinfo>
</articleinfo>

<!--toc/-->

&Introduction;
&Features;
&Properties;
&Compatibility;

</article>

61 changes: 61 additions & 0 deletions docbook/reference/en/en-US/modules/Compatibility.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<section id="Compatibility">
<title>Compatibility with Wildfly</title>

As noted in the <link linkend="Introduction">Introduction</link>, the increased
security imposed by the SECURE_PROCESSING_FEATURE might require additional
configuration. We examine two different versions of Wildfly to determine if
changes are necessary.

<section id="wf8.2.1.Final">
<title>Wildfly 8.2.1.Final</title>
<para>
In Wildfly 8.2.1.Final, the following changes are necessary for the basic integration
testsuite to pass.
</para>

<itemizedlist>
<listitem>
<emphasis role="bold">hibernate-core</emphasis>:
<para><classname>org.hibernate.cfg.Configuration</classname> needs additional configuration of a
<classname>SAXReader</classname>.</para>
</listitem>
<listitem>
<emphasis role="bold">jsf-impl</emphasis>:
<para><classname>com.sun.faces.facelets.compiler.SAXCompiler</classname> needs additional configuration
of a <classname>SAXParserFactory</classname>.</para>
</listitem>
<listitem>
<emphasis role="bold">picketbox</emphasis>:
<para><classname>org.jboss.security.util.xml.DOMUtils</classname> needs additional configuration
of a <classname>DocumentBuilderFactory</classname>.</para>
</listitem>
<listitem>
<emphasis role="bold">wildfly-core-impl</emphasis>:
<para><classname>org.jboss.weld.xml.BeansXmlParser</classname> needs additional configuration of a
<classname>SAXParserFactory</classname>.</para>
</listitem>
</itemizedlist>

<para>
The particular changes vary from case to case, but they generally involve
</para>

<itemizedlist>
<listitem>http://apache.org/xml/features/disallow-doctype-decl</listitem>
<listitem>http://apache.org/xml/features/nonvalidating/load-external-dtd</listitem>
<listitem>http://javax.xml.XMLConstants/property/accessExternalDTD</listitem>
<listitem>http://javax.xml.XMLConstants/property/accessExternalSchema</listitem>
</itemizedlist>

</section>

<section id="wf-10.0.0.CR4">
<title>Wildfly 10.0.0.CR4</title>

<para>
The entire testsuite of Wildfly 10.0.0.CR4 runs without any changes.
</para>

</section>

</section>
Loading