8267712: Better LDAP reference processing
Reviewed-by: dfuchs, ahgross, rhalade
This commit is contained in:
parent
470e8a0fda
commit
bddcc8ea9d
@ -465,6 +465,12 @@ final class Obj {
|
||||
// Empty content
|
||||
refAddrList[posn] = new StringRefAddr(type, null);
|
||||
} else if (val.charAt(start) == separator) {
|
||||
// Check if deserialization of binary RefAddr is allowed from
|
||||
// 'javaReferenceAddress' LDAP attribute.
|
||||
if (!VersionHelper.isSerialDataAllowed()) {
|
||||
throw new NamingException("Object deserialization is not allowed");
|
||||
}
|
||||
|
||||
// Double separators indicate a non-StringRefAddr
|
||||
// Content is a Base64-encoded serialized RefAddr
|
||||
|
||||
|
@ -82,7 +82,7 @@ public final class VersionHelper {
|
||||
|
||||
/**
|
||||
* Returns true if deserialization of objects from 'javaSerializedData'
|
||||
* LDAP attribute is allowed.
|
||||
* and 'javaReferenceAddress' LDAP attributes is allowed.
|
||||
*
|
||||
* @return true if deserialization is allowed; false - otherwise
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user