Skip to content

Commit 8448a68

Browse files
authored
Remove unnecessary quotes from upload etag (#2890)
1 parent ec859be commit 8448a68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/profiler/service/ServiceProfilerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private URL uploadFinishedRequestUrl(UUID profileId, String extension, String et
204204
appendBasePath(path, profileId);
205205
appendBaseQueryString(path, extension);
206206

207-
path.append("&action=commit&etag=\"").append(etag).append("\"");
207+
path.append("&action=commit&etag=").append(etag);
208208

209209
try {
210210
return new URL(hostUrl, path.toString());

agent/agent-tooling/src/test/resources/session-records/UploadServiceTest.uploadFileGoodPathReturnsExpectedResponse.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"Exception" : null
4545
}, {
4646
"Method" : "POST",
47-
"Uri" : "https://REDACTED.azureserviceprofiler.net/api/apps/00000000-0000-0000-0000-000000000000/artifactkinds/profile/artifacts/11111111-1111-1111-1111-111111111111?iKey=00000000-0000-0000-0000-000000000000&extension=jfr&api-version=2020-10-14-preview&action=commit&etag=\"0x888888888888888\"",
47+
"Uri" : "https://REDACTED.azureserviceprofiler.net/api/apps/00000000-0000-0000-0000-000000000000/artifactkinds/profile/artifacts/11111111-1111-1111-1111-111111111111?iKey=00000000-0000-0000-0000-000000000000&extension=jfr&api-version=2020-10-14-preview&action=commit&etag=0x888888888888888",
4848
"Headers" : { },
4949
"Response" : {
5050
"Transfer-Encoding" : "chunked",
@@ -63,4 +63,4 @@
6363
"Exception" : null
6464
} ],
6565
"variables" : [ ]
66-
}
66+
}

0 commit comments

Comments
 (0)