odpi / egeria

Egeria core
https://egeria-project.org
Apache License 2.0
795 stars 259 forks source link

findEntitiesByClassification error #7259

Open PeterChenTian opened 1 year ago

PeterChenTian commented 1 year ago

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

davidradl commented 1 year ago

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

PeterChenTian commented 1 year ago

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

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[bot] commented 1 year ago

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[bot] commented 1 year ago

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.