[midPoint-git] [Evolveum/prism] 777700: MID-10297: Fixed XML polution with redundant tns p...

Tony Tkáčik noreply at github.com
Fri Jan 24 12:43:23 CET 2025


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/prism
  Commit: 77770014ed65eb16d386039a30ac40bcfa44c743
      https://github.com/Evolveum/prism/commit/77770014ed65eb16d386039a30ac40bcfa44c743
  Author: Tony Tkáčik <tonydamage at gmail.com>
  Date:   2025-01-24 (Fri, 24 Jan 2025)

  Changed paths:
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/DefinitionImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismReferenceDefinitionImpl.java
    M infra/util/src/main/java/com/evolveum/midpoint/util/QNameUtil.java

  Log Message:
  -----------
  MID-10297: Fixed XML polution with redundant tns prefixes

DOM serializer declares prefix if QName has prefix defined.

During parsing schemas - tns prefix were kept in PrismDefinitions
so in cases where type (reference type) was inferred from schema
QName with prefix was used, which prevented it to match to already
defined namespaces and triggered namespace redefition.

Fixed Definitions to store QName without prefixes only.



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/prism/settings/notifications


More information about the midPoint-svn mailing list