Skip to content

Commit

Permalink
encodeURIComponent jvmId
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 20, 2023
1 parent 9a7ad48 commit 6832177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export class ApiService {

// from file system path functions
uploadArchivedRecordingToGrafanaFromPath(jvmId: string, recordingName: string): Observable<boolean> {
return this.sendRequest('beta', `fs/recordings/${jvmId}/${encodeURIComponent(recordingName)}/upload`, {
return this.sendRequest('beta', `fs/recordings/${encodeURIComponent(jvmId)}/${encodeURIComponent(recordingName)}/upload`, {
method: 'POST',
}).pipe(
map((resp) => resp.ok),
Expand All @@ -512,7 +512,7 @@ export class ApiService {
}

deleteArchivedRecordingFromPath(jvmId: string, recordingName: string): Observable<boolean> {
return this.sendRequest('beta', `fs/recordings/${jvmId}/${encodeURIComponent(recordingName)}`, {
return this.sendRequest('beta', `fs/recordings/${encodeURIComponent(jvmId)}/${encodeURIComponent(recordingName)}`, {
method: 'DELETE',
}).pipe(
map((resp) => resp.ok),
Expand All @@ -529,7 +529,7 @@ export class ApiService {
}

postRecordingMetadataFromPath(jvmId: string, recordingName: string, labels: RecordingLabel[]): Observable<boolean> {
return this.sendRequest('beta', `fs/recordings/${jvmId}/${encodeURIComponent(recordingName)}/metadata/labels`, {
return this.sendRequest('beta', `fs/recordings/${encodeURIComponent(jvmId)}/${encodeURIComponent(recordingName)}/metadata/labels`, {
method: 'POST',
body: this.transformAndStringifyToRawLabels(labels),
}).pipe(
Expand Down

0 comments on commit 6832177

Please sign in to comment.