Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit dc0fd2b

Browse files
committed
Fix params
1 parent 1e7f879 commit dc0fd2b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/main/java/com/microsoft/azure/storage/blob/ServiceSASSignatureValues.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ public SASQueryParameters generateSASQueryParameters(SharedKeyCredentials shared
148148
this.startTime == null ? "" : Utility.ISO8601UTCDateFormatter.format(this.startTime),
149149
this.expiryTime == null ? "" : Utility.ISO8601UTCDateFormatter.format(this.expiryTime),
150150
getCanonicalName(sharedKeyCredentials.getAccountName()),
151-
this.identifier,
151+
this.identifier == null ? "" : this.identifier,
152152
this.ipRange == null ? IPRange.DEFAULT.toString() : this.ipRange.toString(),
153153
this.protocol == null ? "" : protocol.toString(),
154154
this.version,
155-
this.cacheControl,
156-
this.contentDisposition,
157-
this.contentEncoding,
158-
this.contentLanguage,
159-
this.contentType
155+
this.cacheControl == null ? "" : this.cacheControl,
156+
this.contentDisposition == null ? "" : this.contentDisposition,
157+
this.contentEncoding == null ? "" : this.contentEncoding,
158+
this.contentLanguage == null ? "" : this.contentLanguage,
159+
this.contentType == null ? "" : this.contentType
160160
);
161161

162162
String signature = null;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.microsoft.azure.storage.blob
2+
3+
import com.microsoft.azure.storage.APISpec
4+
5+
class ServiceSASSignatureValuesTest extends APISpec {
6+
7+
}

0 commit comments

Comments
 (0)