You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2025/03/05 09:56:11 UTC

(santuario-xml-security-java) branch 3.0.x-fixes updated: OID attributes get a wrong name when normalized due to first dot not being removed (#446)

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 3.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git


The following commit(s) were added to refs/heads/3.0.x-fixes by this push:
     new 11f4c68d OID attributes get a wrong name when normalized due to first dot not being removed (#446)
11f4c68d is described below

commit 11f4c68d1f0507e4b836d01dd426ed204fff491d
Author: baconjander <al...@gmail.com>
AuthorDate: Wed Mar 5 10:52:23 2025 +0100

    OID attributes get a wrong name when normalized due to first dot not being removed (#446)
    
    Co-authored-by: Alejandro Maura Bonet <al...@t-systems.com>
---
 src/main/java/org/apache/xml/security/utils/RFC2253Parser.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/xml/security/utils/RFC2253Parser.java b/src/main/java/org/apache/xml/security/utils/RFC2253Parser.java
index 911778ff..e14da2fe 100644
--- a/src/main/java/org/apache/xml/security/utils/RFC2253Parser.java
+++ b/src/main/java/org/apache/xml/security/utils/RFC2253Parser.java
@@ -166,8 +166,8 @@ public class RFC2253Parser {
 
         String at = str.toUpperCase().trim();
 
-        if (at.startsWith("OID")) {
-            at = at.substring(3);
+        if (at.startsWith("OID.")) {
+            at = at.substring(4);
         }
 
         return at;