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

Fix how a field is fetched in AggregateJsonWriter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF11, 11.1
    • Component/s: Elasticsearch
    • Release Notes Summary:
      The aggregates fully supports complex fields.
    • Backlog priority:
      800
    • Sprint:
      nxplatform 11.1.13
    • Story Points:
      3

      Description

      In the class AggregateJsonWriter, a non system field is retrieved with

                  field = schemaManager.getField(fieldName);
      

      However fieldName is a the sanitized version of the field defined on the aggregate.
      Because of AggregateEsBase#getField, the "/" character is replaced by "." to have an ES-compatible field name.

      But the schemaManager cannot retrieve a field from this sanitized name.

      The following warn is then logged

      Could not resolve field file:content.mime-type for aggregate system_mimetype_agg
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d

                    PagerDuty

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