[midPoint-git] [Evolveum/midpoint] 25381f: Escape invalid XML chars in traces/audit

mederly noreply at github.com
Mon May 11 11:02:57 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 25381f46c16e2de21f6a2d4a7e360fea89f41237
      https://github.com/Evolveum/midpoint/commit/25381f46c16e2de21f6a2d4a7e360fea89f41237
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-05-11 (Mon, 11 May 2020)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/SerializationOptions.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/dom/DomLexicalProcessor.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/dom/DomLexicalWriter.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/DeltaConversionOptions.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/DeltaConvertor.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/util/SystemConfigurationAuditUtil.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
    M infra/util/src/main/java/com/evolveum/midpoint/util/DOMUtil.java
    M infra/util/src/test/java/com/evolveum/midpoint/util/DOMUtilTest.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/ChangeExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensObjectDeltaOperation.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/misc/TestTracing.java
    A model/model-intest/src/test/resources/tracing/resource-illegal.xml
    A model/model-intest/src/test/resources/tracing/role-illegal.xml
    A model/model-intest/src/test/resources/tracing/system-configuration.xml
    A model/model-intest/src/test/resources/tracing/user-joe.xml
    M model/model-intest/testng-integration-full.xml
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/MidPointQueryExecutor.java
    M repo/audit-api/src/main/java/com/evolveum/midpoint/audit/api/AuditEventRecord.java
    M repo/audit-api/src/main/java/com/evolveum/midpoint/audit/api/AuditService.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SqlAuditServiceImpl.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SystemConfigurationChangeDispatcherImpl.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/audit/RAuditEventRecord.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/audit/RObjectDeltaOperation.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestResource.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/DummyObjectAsserter.java
    M repo/system-init/src/main/java/com/evolveum/midpoint/init/AuditServiceProxy.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/tracing/TracerImpl.java

  Log Message:
  -----------
  Escape invalid XML chars in traces/audit

Sometimes an invalid XML character (like 0x06) is to be stored into
XML element content. This occurs especially when dealing with traces
or audit records. This commit fixes this: For traces it always
replaces such chars with a descriptive form. For audit records
this behavior is configurable with the default being turned off.

Resolves MID-6262.




More information about the midPoint-svn mailing list