Author: vinodkv
Date: Mon Oct 3 06:45:10 2011
New Revision: 1178308
URL: http://svn.apache.org/viewvc?rev=1178308&view=rev
Log:
HADOOP-7542. Reverting the patch to address issues.
Modified:
hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfiguration.java
Modified: hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1178308&r1=1178307&r2=1178308&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
(original)
+++ hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt Mon Oct
3 06:45:10 2011
@@ -4,10 +4,6 @@ Trunk (unreleased changes)
INCOMPATIBLE CHANGES
- HADOOP-7542. Change Configuration XML format to 1.1 to add support for
- serializing additional characters. This requires XML1.1
- support in the XML parser (Christopher Egner via harsh)
-
IMPROVEMENTS
HADOOP-7595. Upgrade dependency to Avro 1.5.3. (Alejandro Abdelnur via atm)
Modified:
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java?rev=1178308&r1=1178307&r2=1178308&view=diff
==============================================================================
---
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
(original)
+++
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
Mon Oct 3 06:45:10 2011
@@ -1632,10 +1632,6 @@ public class Configuration implements It
try {
doc =
DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
-
- // Allow a broader set of control characters to appear in job confs.
- // cf https://issues.apache.org/jira/browse/MAPREDUCE-109
- doc.setXmlVersion( "1.1" );
} catch (ParserConfigurationException pe) {
throw new IOException(pe);
}
Modified:
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfiguration.java
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfiguration.java?rev=1178308&r1=1178307&r2=1178308&view=diff
==============================================================================
---
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfiguration.java
(original)
+++
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfiguration.java
Mon Oct 3 06:45:10 2011
@@ -58,7 +58,7 @@ public class TestConfiguration extends T
}
private void startConfig() throws IOException{
- out.write("<?xml version=\"1.1\"?>\n");
+ out.write("<?xml version=\"1.0\"?>\n");
out.write("<configuration>\n");
}
@@ -221,18 +221,6 @@ public class TestConfiguration extends T
assertEquals("this contains a comment", conf.get("my.comment"));
}
- public void testControlAInValue() throws IOException {
- out = new BufferedWriter(new FileWriter(CONFIG));
- startConfig();
- appendProperty("my.char", "");
- appendProperty("my.string", "somestring");
- endConfig();
- Path fileResource = new Path(CONFIG);
- conf.addResource(fileResource);
- assertEquals("\u0001", conf.get("my.char"));
- assertEquals("some\u0001string", conf.get("my.string"));
- }
-
public void testTrim() throws IOException {
out=new BufferedWriter(new FileWriter(CONFIG));
startConfig();
@@ -310,7 +298,7 @@ public class TestConfiguration extends T
conf.writeXml(baos);
String result = baos.toString();
assertTrue("Result has proper header", result.startsWith(
- "<?xml version=\"1.1\" encoding=\"UTF-8\"
standalone=\"no\"?><configuration>"));
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"
standalone=\"no\"?><configuration>"));
assertTrue("Result has proper footer",
result.endsWith("</configuration>"));
}