using md5 instead of base64 encoding for new aggregator ids
This commit is contained in:
parent
e603487103
commit
9e967cab33
|
@ -548,7 +548,7 @@ public class RepositoryServiceImpl implements RepositoryService {
|
||||||
repository.setNamespacePrefix("issn" + repository.getIssn());
|
repository.setNamespacePrefix("issn" + repository.getIssn());
|
||||||
this.storeRepository(repository, SecurityContextHolder.getContext().getAuthentication());
|
this.storeRepository(repository, SecurityContextHolder.getContext().getAuthentication());
|
||||||
} else if (datatype.equals("aggregator")) {
|
} else if (datatype.equals("aggregator")) {
|
||||||
repository.setId("openaire____::" + com.unboundid.util.Base64.encode(repository.getOfficialName()));
|
repository.setId("openaire____::" + DigestUtils.md5Hex(repository.getOfficialName()));
|
||||||
repository.setNamespacePrefix(DigestUtils.md5Hex(repository.getOfficialName()).substring(0, 12));
|
repository.setNamespacePrefix(DigestUtils.md5Hex(repository.getOfficialName()).substring(0, 12));
|
||||||
this.storeRepository(repository, SecurityContextHolder.getContext().getAuthentication());
|
this.storeRepository(repository, SecurityContextHolder.getContext().getAuthentication());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue