-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
abc53eb
to
eb2c151
Compare
4296801
to
943e440
Compare
Codecov Report
@@ Coverage Diff @@
## master #1091 +/- ##
==========================================
+ Coverage 75.66% 75.72% +0.06%
==========================================
Files 158 158
Lines 9430 9392 -38
==========================================
- Hits 7135 7112 -23
+ Misses 2295 2280 -15
Continue to review full report at Codecov.
|
It looks to me that we will enter unrecoverable state if the binary file disappears from the filesystem: |
943e440
to
ec5890f
Compare
I'm also not so sure about storing the files under the user-provided filename. As there can be additional directories in the filename, we either risk to end up with hundreds of empty dirs, or need to implement some directory cleanup logic. |
I think that is not a bad idea. However, TUF seems to disagree. See section 5.5.2. Uptane seems to be on the same page. |
Well, if we say that this requirement is about the name in a filesystem, then storing binary blobs in sqlite db is also wrong :) |
Indeed!
Yes, I agree. I can't think of a good reason why storing the files by their hash would be a bad thing. I can see some benefit in using the names as provided for visibility and maybe maintaining a "nice" directory structure, but that could be as much of a curse as it could be a blessing, and dealing with special characters could be annoying, and no one is really supposed to be looking at the hard drive anyway, so the perceived benefit would be minimal at best. |
d52d722
to
2e6a2e5
Compare
Please check, should be fine now. |
Thanks, Serhiy! Looks fine to me. |
Signed-off-by: Serhiy Stetskovych <[email protected]>
Redundant declarations + one expressions simplification Signed-off-by: Laurent Bonnans <[email protected]>
2e6a2e5
to
b08bce8
Compare
I've rebased the PR and added a small tweaks commit for the minor style issues we've found. |
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.
Looks good!
Signed-off-by: Serhiy Stetskovych [email protected]