storj/satellite
Ivan Fraixedes 7266155375 satellite/metainfo: List segments manually limit check
The endpoint listSegmentsManually method misses a check for the limit
parameter, otherwise it can return inconsistent results when it's 0 or
negative.

When 0 or negative, without the check, it returns no segments but also
that there isn't more segments and that isn't correct.

The function is only called from the Endpoint.ListSegments method and
the function cares to ensure that limit is always greater than 0, but if
the method doesn't check that a new future caller could misuse it and
provoke a bug.

Additionally:

* Documentation for the modified function has been written
* The part of the function that repeated the logic of the
  Endpoint.getPointer method has been removed for using that method.
* Added logging before returning an internal error in
  Endpoint.getPointer.

Change-Id: I5c4f0db2292da0162db6b7d63553895808d0925a
2019-12-31 07:44:46 +00:00
..
accounting common: separate repository 2019-12-27 14:11:15 +02:00
attribution common: separate repository 2019-12-27 14:11:15 +02:00
audit common: separate repository 2019-12-27 14:11:15 +02:00
console common: separate repository 2019-12-27 14:11:15 +02:00
contact common: separate repository 2019-12-27 14:11:15 +02:00
dbcleanup common: separate repository 2019-12-27 14:11:15 +02:00
downtimetracking satellite/satellitedb: Add nodes_offline_times table for downtime tracking 2019-12-30 15:45:02 -05:00
gc common: separate repository 2019-12-27 14:11:15 +02:00
gracefulexit common: separate repository 2019-12-27 14:11:15 +02:00
inspector common: separate repository 2019-12-27 14:11:15 +02:00
mailservice satellite/mailservice: move logging to send rendered async to cover template parsing (#3654) 2019-11-28 12:29:48 +02:00
marketingweb common: separate repository 2019-12-27 14:11:15 +02:00
metainfo satellite/metainfo: List segments manually limit check 2019-12-31 07:44:46 +00:00
metrics common: separate repository 2019-12-27 14:11:15 +02:00
nodestats common: separate repository 2019-12-27 14:11:15 +02:00
orders common: separate repository 2019-12-27 14:11:15 +02:00
overlay common: separate repository 2019-12-27 14:11:15 +02:00
payments common: separate repository 2019-12-27 14:11:15 +02:00
referrals common: separate repository 2019-12-27 14:11:15 +02:00
repair common: separate repository 2019-12-27 14:11:15 +02:00
rewards common: separate repository 2019-12-27 14:11:15 +02:00
satellitedb satellite/satellitedb: Add nodes_offline_times table for downtime tracking 2019-12-30 15:45:02 -05:00
vouchers common: separate repository 2019-12-27 14:11:15 +02:00
api.go common: separate repository 2019-12-27 14:11:15 +02:00
core.go common: separate repository 2019-12-27 14:11:15 +02:00
peer.go satellite/satellitedb: Add nodes_offline_times table for downtime tracking 2019-12-30 15:45:02 -05:00
repairer.go common: separate repository 2019-12-27 14:11:15 +02:00