Skip to content

Commit 0140bac

Browse files
authored
Merge pull request #1076
fix: encode projectId in MP client URL
2 parents 1f67fdc + c2a00ec commit 0140bac

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ apply plugin: 'io.spring.dependency-management'
3434

3535
allprojects {
3636
group 'org.radarbase'
37-
version '2.1.12' // project version
37+
version '2.1.13' // project version
3838

3939
// The comment on the previous line is only there to identify the project version line easily
4040
// with a sed command, to auto-update the version number with the prepare-release-branch.sh

managementportal-client/src/main/kotlin/org/radarbase/management/client/MPClient.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ class MPClient(config: Config) {
103103
page: Int = 0,
104104
size: Int = Int.MAX_VALUE,
105105
): List<MPSubject> = request<List<MPSubject>> {
106-
url("api/projects/$projectId/subjects")
106+
// Encode the URL because projectId may contain whitespaces.
107+
url { path("api", "projects", projectId, "subjects") }
107108
with(url.parameters) {
108109
append("page", page.toString())
109110
append("size", size.toString())

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "management-portal",
3-
"version": "2.1.12",
3+
"version": "2.1.13",
44
"description": "Description for ManagementPortal",
55
"private": true,
66
"cacheDirectories": [

0 commit comments

Comments
 (0)