1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 09:59:13 +08:00

7290 Commits

Author SHA1 Message Date
095230ee60 Merge pull request #3879 from kpcyrd/dist_get_fix
dist_get: handle 404 correctly
2017-04-26 15:49:16 -07:00
49b90a0754 dist_get: handle 404 correctly
This prevents a 404 page getting piped into tar.

It's also adding the openbsd http(s) client `ftp`.

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-04-27 00:28:44 +02:00
213358b1e4 Merge pull request #3876 from dgrisham/master
bug fix: Bitswap now records 'BytesSent' in ledger
2017-04-26 09:15:57 -07:00
a34c5eac5b Merge pull request #3877 from ipfs/feat/update-cbor
deps: bubble up cbor update
2017-04-25 21:58:35 -07:00
126d249de5 deps: bubble up cbor update
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-26 05:21:01 +02:00
4789a622b2 tests: bitswap ledger tests modified
Updated the `TestBitswapLedger*` tests and added assertions to check concrete
values for ledgers (rather than just checking that two peers' ledgers match).
The names for these tests were also changed from the previous commit, according
to 's/BytesSent/Ledger/'.

License: MIT
Signed-off-by: David Grisham <dgrisham@mines.edu>
2017-04-25 20:16:37 -06:00
74e19eae62 tests + data dependency fix: BytesSent bug now completely fixed
Tests were added to ensure that the bug fix in commit 000fbd25 was correct.
The tests caught an error where a peer's ledger was not properly locked when
updating it in the `MessageSent()` function. The appropriate calls to lock the
ledger were made, and the tests successfully passed.

License: MIT
Signed-off-by: David Grisham <dgrisham@mines.edu>
2017-04-25 20:16:37 -06:00
0514504d09 bug fix: BytesSent in peers' ledgers now updates
When sending data to another user, the number of bytes sent to that user (saved
by the corresponding Bitswap ledger) was not updated (it was always 0). This
also meant that the debt ratio was also always 0.

The function that updates the `BytesSent` value in the ledger, `MessageSent()`,
was already implemented, however it was not called when the peer was sent data.
To fix this, a call to `MessageSent()` was made in the `taskWorker()` function,
which is where both the message in question and the Bitswap engine were
available to make the call. `MessageSent()` requires the peer's ID and
`BitSwapMessage` as its arguments, the latter of which had to be created by
making a new `BitSwapMessage`, then the block being sent was added to the new
message.

Note that, similar to the analagous call to `MessageReceived()`, records *all*
of the bytes sent to a particular user. At some point, both of these should be
updated to only record the numbers of *useful* bytes sent and received between
peers.

License: MIT
Signed-off-by: David Grisham <dgrisham@mines.edu>
2017-04-25 20:16:37 -06:00
e17a6dd803 Merge pull request #3873 from ipfs/deps/update/go-is-domain
deps: Update go-is-domain to contain new gTLD
2017-04-24 11:06:13 -07:00
fe969d18be mics: cleanup imports in touched files
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
d1e3fc5c87 deps: Update go-is-domain to contain new gTLD
It should resolve issues with newer gTLDs being not selected

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
9dc5883ac8 Merge pull request #3833 from ipfs/deps/go-multihash
bubble up updates from go-multihash changes
2017-04-21 11:46:59 -07:00
b15470d548 bubble up updates from go-multihash changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
b3c20aadeb Merge pull request #3869 from Recmo/fix/gateway/3868-etag
gateway: use CID as an ETag strong validator
2017-04-20 11:12:21 -07:00
584ab144f9 Merge branch 'master' into fix/gateway/3868-etag 2017-04-20 19:59:59 +02:00
87d07a9750 Merge pull request #3870 from ipfs/fix/directory-cache-control
gateway: fix erroneous Cache-Control: immutable on dir listings
2017-04-20 10:37:58 -07:00
a90f4967e3 gateway: re-use resolved path
Instead of resolving a node, we resolve a path. This resolved path
is then re-used for Cat and Ls. This way, a resolve operation is
only done once.

The error messages for a failed resolve is changed from `ipfs cat …`
to `ipfs resolve …` to better reflect the API calls. The test is
updated accordingly.

License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-20 08:17:45 +01:00
2c4e6434ad gateway: fix erroneous Cache-Control: immutable on dir listings
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-19 05:10:41 +02:00
8db6f86de6 gateway: use CID as an ETag strong validator
* Always use the fully resolved CID from api.ResolveNode
  as the ETag (also for IPNS).

* Format the result as a valid "Strong Validator"
  (double quotes around the encoded CID).

Fixes #3868

License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-18 16:24:37 +01:00
db43aab00b Merge pull request #3863 from timthelion/fix/commit-hook-link
Fix link to commit hook script in contribute.md
2017-04-16 23:58:34 -07:00
cbed629929 Merge pull request #3850 from ipfs/keks-restore-err-order
commands: restore original error order
2017-04-16 23:58:12 -07:00
307c54230b Merge pull request #3864 from timthelion/refactor/use-ctx-var-consistently
Refactor: use ctx var consistently in daemon.go
2017-04-16 23:57:54 -07:00
739a62e35e Refactor: use ctx var consistently in daemon.go
License: MIT
Signed-off-by: Timothy Hobbs <timothyhobbs@seznam.cz>
2017-04-15 18:08:27 +02:00
3947382037 Fix link to commit hook script in contribute.md
License: MIT
Signed-off-by: Timothy Hobbs <timothy@hobbs.cz>
2017-04-15 15:27:05 +02:00
8ee7aa5cab commands: restore and test original error order
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2017-04-05 11:57:54 +02:00
1c50ec0c8e Merge pull request #3848 from ipfs/fix/make/install-no-deps
make: fix `make install` not installing dependencies
2017-03-31 08:53:06 -07:00
52a293ae2d make: fix make install not installing dependencies
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-31 13:52:59 +02:00
aac4088c75 Merge pull request #3838 from ipfs/fix/make/install-hash
make: fix `make install` not using ldflags for git hash
2017-03-30 15:59:48 -07:00
c441ecbc9b Merge pull request #3834 from ipfs/misc/prio-to-sever
Change issue template to use Severity instead of Priority
2017-03-30 11:05:35 -07:00
a87c2de537 Merge pull request #3841 from eminence/wanlist_typo
Fix wanlist typo in prometheus metric name
2017-03-30 11:04:37 -07:00
39f89c835c Merge pull request #3840 from ipfs/fix/test/fuse
test: fix fuse tests, they were broken some time ago
2017-03-30 11:04:21 -07:00
987ff1a6fb bump dev version to 0.4.9
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-30 10:07:49 -07:00
8e7484ed79 Merge pull request #3845 from ipfs/release-0.4.8
Ipfs 0.4.8
v0.4.8
2017-03-29 20:09:30 -07:00
426842c4ed Ipfs 0.4.8
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-29 18:02:14 -07:00
1b22c7a084 Change issue template to use Severity instead of Priority
Priority is very much subjective. Severity allows us to state examples
and decide on it objectivelly.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-29 23:07:31 +02:00
7ebbe495cb Fix wanlist typo in prometheus metric name
This will be a breaking change for anyone who is currently monitoring
the `ipfs_bitswap_wanlist_total` prometheus stat

License: MIT
Signed-off-by: Andrew Chin <achin@eminence32.net>
2017-03-28 23:36:55 -04:00
ea838a0902 test: fix fuse tests, they were broken some time ago
They wouldn't compile

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-28 17:15:14 +02:00
bf23a81bb3 make: fix make install not using ldflags for git hash
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-27 15:19:40 +02:00
a8b56d3ad7 Ipfs 0.4.8-rc1
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
v0.4.8-rc1
2017-03-24 20:34:49 -07:00
26f96f8dce Merge pull request #3832 from ipfs/feat/0.4.8-rc1-changelog
Feat/0.4.8 rc1 changelog
2017-03-24 20:31:40 -07:00
e87ecadd50 Merge pull request #3828 from ipfs/fix/bump-default-ulimit
Bump default ulimit to 2048
2017-03-24 14:34:41 -07:00
1ea03545fe Merge pull request #3830 from ipfs/golint-2-filestore
Filestore: make golint happy
2017-03-24 14:34:07 -07:00
b1d28f1b76 Merge pull request #3831 from ipfs/feat/changelog-script
Add a script to help generate the CHANGELOG
2017-03-24 14:33:24 -07:00
7ece55d469 Update changelog for 0.4.8-rc1
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-24 13:47:21 -07:00
be1e7ed369 Add a script to help generate the CHANGELOG
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-24 13:29:14 -07:00
dab716ba02 test: fix ulimit tests for 2048 fds
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 20:56:09 +01:00
b46ee82dd9 Merge pull request #3829 from ipfs/fix/windows-hidden-files
fix hidden file detection on windows
2017-03-24 12:50:09 -07:00
8c40bd9194 Filestore: make golint happy
Comments for exported functions and little else.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-24 20:41:24 +01:00
15632bef56 Merge pull request #3823 from ipfs/deps/iptb-1.1.9
update iptb with hopeful fix for travis hanging issue
2017-03-24 12:30:24 -07:00
295dea221f Bump default ulimit to 2048
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-24 12:28:40 -07:00