Skip to content
Snippets Groups Projects
Commit 9d1e3fd8 authored by Isha Kumari's avatar Isha Kumari
Browse files

Merge branch 'cherry-pick-bc37ec79' into 'Legal_tag_expiration_issue'

When we attempt to retrieve a legal tag for a specific data-partition ID that contains a hyphen (-), we are unable to fetch the data. in M19

See merge request !621
parents b4861c9c 35dfd392
No related branches found
No related tags found
1 merge request!621When we attempt to retrieve a legal tag for a specific data-partition ID that contains a hyphen (-), we are unable to fetch the data. in M19
Pipeline #293919 failed
......@@ -356,7 +356,7 @@ public class CloudantLegalTagRepository implements ILegalTagRepository {
legalTags = allDocResponse.getResponse().getDocsAs(BanckendLegalTag.class)
.stream()
.filter(lTag -> lTag.getIs_Valid() == args.getIsValid())
.filter(f->f.getName().split("-")[0].equalsIgnoreCase(headers.getPartitionId()))
.filter(f->f.getName().length() > headers.getPartitionId().length() && f.getName().substring(0,headers.getPartitionId().length()).equalsIgnoreCase(headers.getPartitionId()))
.collect(Collectors.toList());
} catch (IOException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment