Project

General

Profile

« Previous | Next » 

Revision 61444

Added by Antonis Lempesis 3 months ago

using md5 instead of base64 encoding for new aggregator ids

View differences:

modules/uoa-repository-manager-service/trunk/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java
548 548
            repository.setNamespacePrefix("issn" + repository.getIssn());
549 549
            this.storeRepository(repository, SecurityContextHolder.getContext().getAuthentication());
550 550
        } else if (datatype.equals("aggregator")) {
551
            repository.setId("openaire____::" + com.unboundid.util.Base64.encode(repository.getOfficialName()));
551
            repository.setId("openaire____::" + DigestUtils.md5Hex(repository.getOfficialName()));
552 552
            repository.setNamespacePrefix(DigestUtils.md5Hex(repository.getOfficialName()).substring(0, 12));
553 553
            this.storeRepository(repository, SecurityContextHolder.getContext().getAuthentication());
554 554
        } else {

Also available in: Unified diff