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

Custom DIH Functions in Delta-Query have null Context

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • 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

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment