Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findEntitiesByClassification error #7259

Open
PeterChenTian opened this issue Dec 29, 2022 · 4 comments
Open

findEntitiesByClassification error #7259

PeterChenTian opened this issue Dec 29, 2022 · 4 comments
Assignees
Labels
bug Something isn't working pinned Keep open (do not time out) triage New bug/issue which needs checking & assigning

Comments

@PeterChenTian
Copy link

Existing/related issue?

No response

Current Behavior

find entities by classification with ArrayPropertyValue like ["searchValue"]

the class OMRSRepositoryContentValidator function countMatchingPropertyValues catch exception message :
java.util.regex.PatternSyntaxException: Illegal repetition near index 1
.{ searchValue }.
^

Expected Behavior

find right entites

Steps To Reproduce

No response

Environment

- Egeria:3.12
- OS:windows
- Java:11
- Browser (for UI issues):chrome
- Additional connectors and integration:

Any Further Information?

No response

@PeterChenTian PeterChenTian added bug Something isn't working triage New bug/issue which needs checking & assigning labels Dec 29, 2022
@davidradl
Copy link
Member

Hi @PeterChenTian , can you give more details on how to reproduce this please. I am interested in:

  • which repository you are using - I assume this is a native repository (XTDB, in memory or Janus graph)
  • Are there particular values of classifications that need to be set up on one or more entities and then searched for?
  • What are you doing to get his error, are you using an OMAS, OMRS
    many thanks , David,

@PeterChenTian
Copy link
Author

PeterChenTian commented Jan 11, 2023

Hi @PeterChenTian , can you give more details on how to reproduce this please. I am interested in:

  • which repository you are using - I assume this is a native repository (XTDB, in memory or Janus graph)
  • Are there particular values of classifications that need to be set up on one or more entities and then searched for?
  • What are you doing to get his error, are you using an OMAS, OMRS
    many thanks , David,

Hi David

  • entities store in an memory repository

  • I add classification to some entities , the classification has attribute like groupGUIDs : array< string >

  • I use such code for search:

List<String> groupIDs = new ArrayList<>();
groupIDs.add(searchValue);
InstanceProperties matchClassificationProperties = addStringArrayPropertyToInstance(groupIDs);
String user = SecurityContextHolder.getContext().getAuthentication().getName();
List<EntityDetail> classification = localRepositoryServicesClient.findEntitiesByClassification(user, null, classificationName, matchClassificationProperties, MatchCriteria.ALL, from, null, null, null, null, pageSize);

Thanks for your reply, Regards, Peter

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the no-issue-activity Issues automatically marked as stale because they have not had recent activity. label Mar 13, 2023
@mandy-chessell mandy-chessell removed the no-issue-activity Issues automatically marked as stale because they have not had recent activity. label Mar 19, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the no-issue-activity Issues automatically marked as stale because they have not had recent activity. label May 19, 2023
@mandy-chessell mandy-chessell removed the no-issue-activity Issues automatically marked as stale because they have not had recent activity. label May 24, 2023
@mandy-chessell mandy-chessell self-assigned this May 24, 2023
@mandy-chessell mandy-chessell added the pinned Keep open (do not time out) label Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned Keep open (do not time out) triage New bug/issue which needs checking & assigning
Projects
None yet
Development

No branches or pull requests

3 participants