Fixed issue when retrieving grants using funderId
This commit is contained in:
parent
7784547bea
commit
42b2ff67f6
|
@ -169,9 +169,13 @@ public class RemoteFetcher {
|
||||||
completedPath = completedPath.replace("{like}", "");
|
completedPath = completedPath.replace("{like}", "");
|
||||||
}
|
}
|
||||||
if (externalUrlCriteria.getFunderId() != null) {
|
if (externalUrlCriteria.getFunderId() != null) {
|
||||||
String funderId = externalUrlCriteria.getFunderId();
|
String funderPrefix = externalUrlCriteria.getFunderId().split(":")[0];
|
||||||
|
String funderId = externalUrlCriteria.getFunderId().replace(funderPrefix + ":", "");
|
||||||
|
if (funderId.toCharArray()[0] == ':') {
|
||||||
|
funderId = externalUrlCriteria.getFunderId();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
funderId = URLEncoder.encode(externalUrlCriteria.getFunderId(), "UTF-8");
|
funderId = URLEncoder.encode(funderId, "UTF-8");
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
logger.error(e.getMessage(), e);
|
logger.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue