Page MenuHomePhabricator

[services] Backup - Connect to Blob - Use vector of bytes instead of String for data chunks
AbandonedPublic

Authored by karol on Aug 29 2022, 1:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 19, 10:42 AM
Unknown Object (File)
Tue, Jun 11, 9:12 AM
Unknown Object (File)
Sun, May 26, 7:49 PM
Unknown Object (File)
May 2 2024, 1:47 PM
Unknown Object (File)
May 2 2024, 1:47 PM
Unknown Object (File)
May 2 2024, 1:42 PM
Unknown Object (File)
Mar 28 2024, 2:07 PM
Unknown Object (File)
Mar 28 2024, 2:07 PM

Details

Summary

Depends on D4946

Ad data chunks may be any bytes, not only utf8 or something, we should store them in the vectors of bytes, not in strings (it's not c++ where std::string is able to store any bytes).

Test Plan

you could try to send some non-utf-8 bytes and see what happens. I didn't have time to do this and this diff is more based on my prior experiences and is more "preventing".

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested changes to this revision.Aug 29 2022, 5:20 AM

I didn't have time to do this and this diff

If you have a way of verifying that the code works, it should be quick to modify it to send non-utf8. If you don't have that, you should create it.

This revision now requires changes to proceed.Aug 29 2022, 5:20 AM

Abandoning this stack in favor of the new one that starts @ D5002.

All the comments have been either addressed inline or in the new stack.