Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • P Policy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • Security and Compliance
  • Policy
  • Issues
  • #17
Closed
Open
Issue created Jun 23, 2021 by Hanna Kavalionak@Hanna

Policy service fails to get legaltags' descriptions

The Policy service requests the descriptions of all legaltags assigned to records. The Legal service legaltags:batchRetrieve request is limited to 25 legaltags as input. The Search service can request policy evaluation for thousands of records. So, we can't use legaltag description info for writing policy rules.

Example: Lets say that there are 100 file records (opendes partition is used) that we are going to search for:

query : { "kind": "opendes:wks:dataset--File.Generic:1.0.0", "limit" :100 }

Set of records: test_data.txt

The Legal service log:

AppException(error=AppError(code=400, reason=Validation failed., message=Validation failed., errors=null, debuggingInfo=null, originalException=org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntity<org.opengroup.osdu.legal.tags.dto.LegalTagDtos> org.opengroup.osdu.legal.api.LegalTagApi.getLegalTags(org.opengroup.osdu.legal.tags.dto.RequestLegalTags): [Field error in object 'requestLegalTags' on field 'names': rejected value [[opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam, opendes-public-usa-dataset-epam]]; codes [Size.requestLegalTags.names,Size.names,Size.java.util.List,Size]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [requestLegalTags.names,names]; arguments []; default message [names],25,1]; default message [size must be between 1 and 25]] ), originalException=org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntity<org.opengroup.osdu.legal.tags.dto.LegalTagDtos>
Edited Jun 23, 2021 by Hanna Kavalionak
Assignee
Assign to
Time tracking