Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2899

Custom DIH Functions in Delta-Query have null Context

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      We must use a custom fucntion in the deltaQuery, but the passed in Context is always null, preventing any variable resolution.
      In full-import mode behavior is correct.

      Looking into the sources showed that the Conext is used from a thread-local Context.CURRENT_CONTEXT.get(),
      wich is never set by (Context.CURRENT_CONTEXT.set()) for the Context created in DocBuilder.java:871

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mcbain4711 Jens Zastrow
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: