-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 1487 Chunk Manager Empty Iteration Failure #1528
Conversation
6964308
to
01160b4
Compare
1955304
to
1b04e66
Compare
93d95b6
to
d50d496
Compare
…ved to source function
03116fb
to
3e15bcd
Compare
098499b
to
f812ccf
Compare
impl ChunkBySize for EmptyFile { | ||
fn chunk_by_size(self) -> (Chunk, Vec<(XorName, PathBuf)>) { | ||
let bytes: Bytes = Default::default(); | ||
let chunk = Chunk::new(bytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I assume this would get an address of 0000..
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. Will this cause any issues?
Probably too late for this PR but if you are working more in this area, is there a chance you can add the file path (not just name as it is now) to the ChunkManager uploaded files tracking? More in this issue #1576 I want to use the ChunkManager and to be able to access the xor address and full path of each uploaded file, not just the filenames. |
Hi @happybeing, |
04e35c9
to
77d572f
Compare
77d572f
to
8fe70a8
Compare
the SmallFile here is not encrypted, so we're actually potentially exposing user data here. This is one reason we've opted to error out on small files for now until they can be reliably encrypted via the So I think the solution here for #1487 is to handle the error, as opposed to attempting to chunk the file (but potentially not encrypting the data within). If we accept that the storing of the file can throw an error for now, we can make a follow up issue to track encryption of small files via the How does that sound? |
Description
A redesign is needed for the chunk_file process to match three types of file.
Fix for Issue : #1487
Manual testing needs to be done for this: