Skip to content

Commit

Permalink
a dumb fix for the double-url-encoded ":" in "hdl:". #9797
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Aug 28, 2023
1 parent c2d71e6 commit a447270
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ public GlobalId parsePersistentId(String fullIdentifierString) {
if(!isConfigured()) {
return null;
}
// Occasionally, the protocol separator character ':' comes in still
// URL-encoded as %3A (usually as a result of the URL having been
// encoded twice):
fullIdentifierString = fullIdentifierString.replace("%3A", ":");

int index1 = fullIdentifierString.indexOf(':');
if (index1 > 0) { // ':' found with one or more characters before it
String protocol = fullIdentifierString.substring(0, index1);
Expand Down

0 comments on commit a447270

Please sign in to comment.