Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24396

AuditQueryBuilder - Operator.STARTSWITH not implemented

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.1
    • Fix Version/s: 9.10-HF03, 10.1
    • Component/s: Audit, Elasticsearch
    • Release Notes Summary:
      AuditQueryBuilder supports Operator.STARTSWITH.
    • Backlog priority:
      700
    • Sprint:
      nxcore 10.1.5
    • Story Points:
      5

      Description

      When building an AuditQueryBuilder, one can use a clause such as:

      .addAndPredicate(new Predicate(new Reference("docPath"), Operator.STARTSWITH, Literals.toLiteral(input.getPath().toString())))
      

      where input is an instance of a DocumentModel.

      However, source code analysis shows that in org.nuxeo.elasticsearch.audit.ESAuditBackend in createQueryBuilder(Predicate andPredicate)
      the STARTSWITH operator is ignored, although the limitation is not documented.

      Is this a product limitation or a feature to be implemented?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week
                  1w

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.