-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cross-platform incompatibility with Storage Emulator exports (#4411)
* Fix cross-platform incompatibility with Storage Emulator exports * Add CHANGELOG entries * Check separator after bucket name instead; add comments * Check separator using bucket naming guidelines * Add test case for nested directory
- Loading branch information
1 parent
8e19a6f
commit 3d43bae
Showing
9 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
- Fix URL with wrong host returned in storage resumable upload (#4374). | ||
- Fixes Firestore emulator transaction expiration and reused bug. | ||
- Fixes Firestore emulator deadlock bug. [#2452](https://github.com/firebase/firebase-tools/issues/2452) | ||
- Fixes console error on large uploads to Storage Emulator (#4407). | ||
- Fixes cross-platform incompatibility with Storage Emulator exports (#4411). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...s/storage-emulator-integration/import/windows-emulator-data/firebase-export-metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"version": "10.4.2", | ||
"storage": { | ||
"version": "10.4.2", | ||
"path": "storage_export" | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
...pts/storage-emulator-integration/import/windows-emulator-data/storage_export/buckets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"buckets": [ | ||
{ | ||
"id": "fake-project-id.appspot.com" | ||
} | ||
] | ||
} |
20 changes: 20 additions & 0 deletions
20
...xport/metadata/fake-project-id.appspot.com%5Ctest-directory%5Ctest_nested_upload.jpg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "test-directory\\test_nested_upload.jpg", | ||
"bucket": "fake-project-id.appspot.com", | ||
"contentType": "application/octet-stream", | ||
"metageneration": 1, | ||
"generation": 1648084940926, | ||
"storageClass": "STANDARD", | ||
"contentDisposition": "inline", | ||
"cacheControl": "public, max-age=3600", | ||
"contentEncoding": "identity", | ||
"downloadTokens": [ | ||
"c3c71086-95a8-445d-96e7-f625972de4b0" | ||
], | ||
"etag": "PQJQBXRweACX9yRsBEInQjOJ/0s", | ||
"timeCreated": "2022-03-24T01:22:20.926Z", | ||
"updated": "2022-03-24T01:22:20.926Z", | ||
"size": 0, | ||
"md5Hash": "1B2M2Y8AsgTpgAmY7PhCfg==", | ||
"crc32c": "0" | ||
} |
20 changes: 20 additions & 0 deletions
20
...-emulator-data/storage_export/metadata/fake-project-id.appspot.com%5Ctest_upload.jpg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "test_upload.jpg", | ||
"bucket": "fake-project-id.appspot.com", | ||
"contentType": "application/octet-stream", | ||
"metageneration": 1, | ||
"generation": 1648084940926, | ||
"storageClass": "STANDARD", | ||
"contentDisposition": "inline", | ||
"cacheControl": "public, max-age=3600", | ||
"contentEncoding": "identity", | ||
"downloadTokens": [ | ||
"c3c71086-95a8-445d-96e7-f625972de4b0" | ||
], | ||
"etag": "PQJQBXRweACX9yRsBEInQjOJ/0s", | ||
"timeCreated": "2022-03-24T01:22:20.926Z", | ||
"updated": "2022-03-24T01:22:20.926Z", | ||
"size": 0, | ||
"md5Hash": "1B2M2Y8AsgTpgAmY7PhCfg==", | ||
"crc32c": "0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters