-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
MIME boundary and headers from an API call leak to file contents #1722
Comments
Pretty sure I'm using the ipfs ubuntu binaries on a currently patched ubuntu-14.04 system. $ sha256sum ~/pkg/go/bin/ipfs I see the same problem. Note the different object IDs: I added a test script test-issue-1722.sh to ipfs with ID QmTEqWS7ttg7V1hsvX9VQBs8wGA3pWmkgovH8S6WsuW9sr |
Versions? — On Thu, Sep 17, 2015 at 5:07 PM, Bill Broadley notifications@github.com
|
The working version of IPFS identifies itself as The non-working version of IPFS identifies itself as |
$ ipfs version |
It’s not just gobuilder, go-ipfs 0.3.8 I built with |
This has been resolved, it was a bug in the multipart handling in the go http lib. |
Whenever you add a file of 0x2f3ff bytes via the daemon API, the file that happens to be added after it gets merged to it with a MIME multipart boundary and headers belonging to the API request in between.
@eminence reported that this only happens with the binary from gobuilder.me but not with one he built, and the binary for the daemon is relevant, the binary for the client is not.
(The hash of the file changes at every
add
because of the random MIME boundary seen above.)If there is no second file, the daemon gives the following error message (might this be related to #1688?):
The text was updated successfully, but these errors were encountered: