mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-11 05:41:52 +01:00
Fix two typos (#1691)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
b7a764f358
commit
44b1823e97
@ -12,14 +12,13 @@
|
||||
*/
|
||||
package com.acme;
|
||||
|
||||
import javax.sql.rowset.spi.XmlReader;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.config.xml.util.XmlDocumentReader;
|
||||
|
||||
/**
|
||||
* A class that is in a non-framework package.
|
||||
*
|
||||
* Used to test if the XStream security configuration in the {@link XmlReader} forbids deserialization.
|
||||
* Used to test if the XStream security configuration in the {@link XmlDocumentReader} forbids deserialization.
|
||||
*
|
||||
* @author Wouter Born - Initial contribution
|
||||
*/
|
||||
|
@ -107,7 +107,7 @@ public class XmlDocumentReaderTest {
|
||||
* @see https://x-stream.github.io/CVE-2017-7957.html
|
||||
*/
|
||||
@Test
|
||||
public void defaultSecurityProtectsAgainstDenailOfServiceAttacks() throws Exception {
|
||||
public void defaultSecurityProtectsAgainstDenialOfServiceAttacks() throws Exception {
|
||||
assertThrows(ForbiddenClassException.class, () -> readXML("<void/>"));
|
||||
assertThrows(ForbiddenClassException.class, () -> readXML("<string class='void'>Hello, world!</string>"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user