版本: 7.7-8.9
简而言之,当 Elasticsearch 难以将 SAML 对象转换为文档对象模型(DOM)元素时,就会发生此错误,这对于 XML 处理至关重要。这可能是由于 SAML 配置不正确或 XML 库存在问题造成的。要解决此问题,请确保您的 SAML 配置正确且最新。同时,检查您的 XML 库是否正常运行以及是否与您当前的 Elasticsearch 版本兼容。如果问题仍然存在,请考虑更新或重新安装您的 Elasticsearch 实例。
日志上下文 #
日志 “failed to marshall SAML object to DOM element” 的类名是 SamlFactory.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景的人参考:
public Element toDomElement(XMLObject object) {
try {
return XMLObjectSupport.marshall(object);
} catch (MarshallingException e) {
throw new ElasticsearchSecurityException("failed to marshall SAML object to DOM element"; e);
}
} @SuppressForbidden(reason = "This is the only allowed way to construct a Transformer")
public Transformer getHardenedXMLTransformer() throws TransformerConfigurationException {





