File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Example/Storage/Tests/Integration Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,24 @@ - (void)testUnauthenticatedSimplePutData {
198
198
[self waitForExpectations ];
199
199
}
200
200
201
+ - (void )testUnauthenticatedSimplePutSpecialCharacter {
202
+ XCTestExpectation *expectation =
203
+ [self expectationWithDescription: @" testUnauthenticatedSimplePutDataEscapedName" ];
204
+ FIRStorageReference *ref = [self .storage referenceWithPath: @" ios/public/-._~!$'()*,=:@&+;" ];
205
+
206
+ NSData *data = [@" Hello World" dataUsingEncoding: NSUTF8StringEncoding];
207
+
208
+ [ref putData: data
209
+ metadata: nil
210
+ completion: ^(FIRStorageMetadata *metadata, NSError *error) {
211
+ XCTAssertNotNil (metadata, " Metadata should not be nil" );
212
+ XCTAssertNil (error, " Error should be nil" );
213
+ [expectation fulfill ];
214
+ }];
215
+
216
+ [self waitForExpectations ];
217
+ }
218
+
201
219
- (void )testUnauthenticatedSimplePutDataInBackgroundQueue {
202
220
XCTestExpectation *expectation =
203
221
[self expectationWithDescription: @" testUnauthenticatedSimplePutDataInBackgroundQueue" ];
Original file line number Diff line number Diff line change 1
1
# 3.0.3
2
2
- [ changed] Storage operations can now be scheduled and controlled from any thread (#1302 , #1388 ).
3
+ - [ fixed] Fixed an issue that prevented uploading of files whose names include semicolons.
3
4
4
5
# 3.0.2
5
6
- [ changed] Migrate to use FirebaseAuthInterop interfaces to access FirebaseAuth (#1660 ).
Original file line number Diff line number Diff line change 29
29
30
30
#import " GTMSessionFetcher.h"
31
31
32
- // This is the list at https://cloud.google.com/storage/docs/json_api/ without & and +.
32
+ // This is the list at https://cloud.google.com/storage/docs/json_api/ without &, ; and +.
33
33
NSString *const kGCSObjectAllowedCharacterSet =
34
- @" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*,; =:@" ;
34
+ @" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*,=:@" ;
35
35
36
36
@implementation FIRStorageUtils
37
37
You can’t perform that action at this time.
0 commit comments