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:52:28 UTC

(santuario-xml-security-java) branch main 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 main
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git


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

commit ca59a1d5be5b9734a7c9296fcdd339117b4607e7
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;