Skip to content

Commit 53a718d

Browse files
committed
B2 now returns empty usernames. We translate them to null
1 parent 192230c commit 53a718d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Src/SimpleS3.Core/Internals/Helpers/ParserHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ public static S3Identity ParseOwner(XmlReader xmlReader, string elementName = "O
5757
break;
5858
case "DisplayName":
5959
displayName = xmlReader.ReadString();
60+
61+
// To circumvent providers that return empty. We want to represent missing display names as null.
62+
if (displayName == "")
63+
displayName = null;
6064
break;
6165
}
6266
}

0 commit comments

Comments
 (0)