π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Keep ordinary JSON number handling for Photos metadata
Manav Rathi53dbc2ec0262
diff --git a/rust/apps/cli-next/tests/support/export_maintenance.rs b/rust/apps/cli-next/tests/support/export_maintenance.rsindex 12655140cb..291949059c 100644--- a/rust/apps/cli-next/tests/support/export_maintenance.rs+++ b/rust/apps/cli-next/tests/support/export_maintenance.rs@@ -2625,8 +2625,7 @@ fn export_preserves_native_fields_unused_by_common_commands() {let (file, bytes) = source(10, &key, b"original", "Original.jpg");let native = json!({"editedName":"Export metadata.jpg", "cameraMake":17, "cameraModel":17,- "uploaderName":17, "mediaType":"broken", "mvi":"broken",- "extension": serde_json::from_str::<Value>(r#"{"integer":18446744073709551617,"decimal":1.2345678901234567890123456789}"#).unwrap()+ "uploaderName":17, "mediaType":"broken", "mvi":"broken"});let file = public(file, &key, native.clone(), 10);let file_download = download(&mut server, 10, &bytes, 1);@@ -2651,9 +2650,6 @@ fn export_preserves_native_fields_unused_by_common_commands() {assert_component(&root, "Affected", "Export metadata.jpg", b"original");let sidecar = root.join("Affected/metadata/Export metadata.jpg.json");assert_eq!(read_json(&sidecar)["ente"]["pubMagicMetadata"], native);- let text = fs::read_to_string(sidecar).unwrap();- assert!(text.contains("18446744073709551617"));- assert!(text.contains("1.2345678901234567890123456789"));file_download.assert();downloaded.assert();}diff --git a/rust/crates/photos-export/Cargo.toml b/rust/crates/photos-export/Cargo.tomlindex 6bbad8cb5a..aa64271357 100644--- a/rust/crates/photos-export/Cargo.toml+++ b/rust/crates/photos-export/Cargo.toml@@ -13,7 +13,7 @@ icu_casemap.workspace = truerusqlite.workspace = truesame-file.workspace = trueserde.workspace = true-serde_json = { workspace = true, features = ["arbitrary_precision"] }+serde_json.workspace = truetempfile.workspace = truethiserror.workspace = truetokio = { workspace = true, features = ["macros", "rt-multi-thread", "sync", "time"] }