Skip to content

BlockReplicas API returns not what was requested #1117

@nataliaratnikova

Description

@nataliaratnikova

The API intended logic is

if ((not $p{BLOCK}) && (not $p{DATASET}) && (not $p{NODE}) && (not $p{CREATE_SINCE}))
{
$p{CREATE_SINCE} = "-1d";
}

that is if none of block, dataset, node, or create_since is set, the default create_since is set to 1 day ago. If any is set, create_since is set to whatever the parameter is or open. Respective code:

Sometimes however the query returns all data sets subscribed in the last 24 hours even when not intended and confuses the calling application.

Affected version: 2_4_0-pre1 and earlier releases.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions