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

TokenizerChain methods may return null depending on how constructor is called -- causes NPE in luke request handler

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.1
    • 5.3, 6.0
    • None
    • None

    Description

      TokenizerChain created using 2-arg constructor has null in charFilters, so LukeRequestHandler throws NPE on iterating it.

      TokenizerChain constructor's should be hardened to do explicit null checks, throwing early NPE where appropriate (tokenizer factory), or initializing internal arrays to have 0 length when optional (factories for char filters and token filters)

      Attachments

        1. SOLR-7765.patch
          17 kB
          Chris M. Hostetter
        2. SOLR-7765.patch
          9 kB
          Chris M. Hostetter
        3. SOLR-7765.patch
          1 kB
          Chris M. Hostetter

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter Assign to me
            grossws Konstantin Gribov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment