Solr
  1. Solr
  2. SOLR-3530

better error messages / Content-Type validation in solrJ

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6, Trunk
    • Component/s: None
    • Labels:
      None

      Description

      spin off from SOLR-3258, it would be helpful if SolrJ, when encountering Exceptions from the ResponseParser (or perhaps before ever even handing data to the ResponseParser) did some validation of the Content-Type returned by the remote server to give better error messages in cases where miss configuration has the wrong matchup between ResponseParser and mime-type (or worse: an HTML page being returned by a non-solr server)

        Issue Links

          Activity

          Hide
          ASF subversion and git services added a comment -

          Commit 1527786 from Mark Miller in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1527786 ]

          SOLR-3530: Add missing 'throw'.

          Show
          ASF subversion and git services added a comment - Commit 1527786 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1527786 ] SOLR-3530 : Add missing 'throw'.
          Hide
          ASF subversion and git services added a comment -

          Commit 1527784 from Mark Miller in branch 'dev/trunk'
          [ https://svn.apache.org/r1527784 ]

          SOLR-3530: Add missing 'throw'.

          Show
          ASF subversion and git services added a comment - Commit 1527784 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1527784 ] SOLR-3530 : Add missing 'throw'.
          Hide
          ASF subversion and git services added a comment -

          Commit 1527780 from Mark Miller in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1527780 ]

          SOLR-3530: Handle content type correctly when a response parser cannot be used.

          Show
          ASF subversion and git services added a comment - Commit 1527780 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1527780 ] SOLR-3530 : Handle content type correctly when a response parser cannot be used.
          Hide
          ASF subversion and git services added a comment -

          Commit 1527776 from Mark Miller in branch 'dev/trunk'
          [ https://svn.apache.org/r1527776 ]

          SOLR-3530: Handle content type correctly when a response parser cannot be used.

          Show
          ASF subversion and git services added a comment - Commit 1527776 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1527776 ] SOLR-3530 : Handle content type correctly when a response parser cannot be used.
          Hide
          ASF subversion and git services added a comment -

          Commit 1527554 from Mark Miller in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1527554 ]

          SOLR-5291: Solrj does not propagate the root cause to the user for many errors.
          SOLR-3530: Better error messages / Content-Type validation in SolrJ.

          Show
          ASF subversion and git services added a comment - Commit 1527554 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1527554 ] SOLR-5291 : Solrj does not propagate the root cause to the user for many errors. SOLR-3530 : Better error messages / Content-Type validation in SolrJ.
          Hide
          ASF subversion and git services added a comment -

          Commit 1527547 from Mark Miller in branch 'dev/trunk'
          [ https://svn.apache.org/r1527547 ]

          SOLR-5291: Solrj does not propagate the root cause to the user for many errors.
          SOLR-3530: Better error messages / Content-Type validation in SolrJ.

          Show
          ASF subversion and git services added a comment - Commit 1527547 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1527547 ] SOLR-5291 : Solrj does not propagate the root cause to the user for many errors. SOLR-3530 : Better error messages / Content-Type validation in SolrJ.
          Hide
          Mark Miller added a comment -

          This is the root cause of the infamous "Invalid version (expected 2, but 60) or the data in not in 'javabin' format". I saw some of this while working on SOLR-5291 and am taking a stab at it as part of that issues patch.

          Show
          Mark Miller added a comment - This is the root cause of the infamous "Invalid version (expected 2, but 60) or the data in not in 'javabin' format". I saw some of this while working on SOLR-5291 and am taking a stab at it as part of that issues patch.

            People

            • Assignee:
              Mark Miller
              Reporter:
              Hoss Man
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development