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 {
198198 [self waitForExpectations ];
199199}
200200
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+
201219- (void )testUnauthenticatedSimplePutDataInBackgroundQueue {
202220 XCTestExpectation *expectation =
203221 [self expectationWithDescription: @" testUnauthenticatedSimplePutDataInBackgroundQueue" ];
Original file line number Diff line number Diff line change 11# 3.0.3
22- [ 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.
34
45# 3.0.2
56- [ changed] Migrate to use FirebaseAuthInterop interfaces to access FirebaseAuth (#1660 ).
Original file line number Diff line number Diff line change 2929
3030#import " GTMSessionFetcher.h"
3131
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 +.
3333NSString *const kGCSObjectAllowedCharacterSet =
34- @" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*,; =:@" ;
34+ @" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*,=:@" ;
3535
3636@implementation FIRStorageUtils
3737
You can’t perform that action at this time.
0 commit comments