Skip to content
Snippets Groups Projects
Commit 0ccf1606 authored by Isha Kumari's avatar Isha Kumari Committed by vikas rana
Browse files

When we attempt to retrieve a legal tag for a specific data-partition ID that...

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.
parent 635ad07f
No related branches found
No related tags found
1 merge request!619When we attempt to retrieve a legal tag for a specific data-partition ID that contains a hyphen (-), we are unable to fetch the data.
...@@ -356,7 +356,7 @@ public class CloudantLegalTagRepository implements ILegalTagRepository { ...@@ -356,7 +356,7 @@ public class CloudantLegalTagRepository implements ILegalTagRepository {
legalTags = allDocResponse.getResponse().getDocsAs(BanckendLegalTag.class) legalTags = allDocResponse.getResponse().getDocsAs(BanckendLegalTag.class)
.stream() .stream()
.filter(lTag -> lTag.getIs_Valid() == args.getIsValid()) .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()); .collect(Collectors.toList());
} catch (IOException e) { } 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