diff --git a/pom.xml b/pom.xml
index fdce720674..6157256b30 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
org.kohsuke
cortexapps-github-api
- 1.320
+ 1.321
GitHub API for Java
https://github-api.kohsuke.org/
GitHub API for Java
diff --git a/src/main/java/org/kohsuke/github/GHPerson.java b/src/main/java/org/kohsuke/github/GHPerson.java
index addcebfead..577b53fd4d 100644
--- a/src/main/java/org/kohsuke/github/GHPerson.java
+++ b/src/main/java/org/kohsuke/github/GHPerson.java
@@ -55,10 +55,18 @@ protected synchronized void populate() throws IOException {
if (isOffline()) {
return; // cannot populate, will have to live with what we have
}
- URL url = getUrl();
+ String path = getUrlPath();
+ if (path != null) {
+ root().createRequest().withUrlPath(path).fetchInto(this);
+ }
+ }
+
+ private String getUrlPath() {
+ URL url = getUrl(); // Get the full URL
if (url != null) {
- root().createRequest().setRawUrlPath(url.toString()).fetchInto(this);
+ return url.getPath(); // Extract only the relative path
}
+ return null;
}
/**