I created https://issues.apache.org/jira/browse/SOLR-14768

@Joe Maye you should add your findings there.

Von: Markus Kalkbrenner <markus.kalkbren...@biologis.com>
Antworten an: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
Datum: Donnerstag, 20. August 2020 um 16:24
An: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
Betreff: Re: Solr v8.6.x fails with multipart MIME in commands

Hi,

Since the update from Solr 8.5 to 8.6 the automated tests for the solarium PHP 
library and the Search API Solr module for Drupal fail.
In both cases the error message is:


/solr/5f3e65e0106b9/update/extract => java.lang.NoClassDefFoundError: 
org/eclipse/jetty/server/MultiParts

at 
org.apache.solr.servlet.SolrRequestParsers.cleanupMultipartFiles(SolrRequestParsers.java:624)



You can see the test results at

https://github.com/solariumphp/solarium/actions

https://github.com/mkalkbrenner/search_api_solr/actions



On stackoverflow someone reports the same:
https://stackoverflow.com/questions/63070107/index-pdf-documents-to-solr-error-500-java-lang-noclassdeffounderror-org-ecli



The tests for the PHP library and drupal both use the official Solr docker 
image.

If I force Solr 8.5.1 instead of 8.6.1 the tests pass again.


Von: Markus Kalkbrenner <markus.kalkbren...@biologis.com>
Datum: Donnerstag, 20. August 2020 um 16:23
An: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
Betreff: Re: Solr v8.6.x fails with multipart MIME in commands

This is the same error I reported one hour earlier here at the list.

Von: Joe Doupnik <j...@netlab1.net>
Antworten an: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
Datum: Donnerstag, 20. August 2020 um 15:09
An: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
Betreff: Solr v8.6.x fails with multipart MIME in commands

    Where as this works with Solr v8.5.0, on v8.6.0 and 8.6.1, operations fail 
when Solr encounters multipart mime formatted commands used with POST. Commands 
are being issued by PHP v5 and v7 programs. A PHP source program snippet:



[cid:image001.png@01D6770E.5986EAF0]
    This produces output of  Deleteindex errno=22 and the index is not deleted.

    More, when submitting files for indexing. Again error 22 is returned, and 
the curl response is "false".
While debugging the root of this is handling multipart mime encoded commands 
and the HTTP ERROR 500 message is the tell-tale:
First the generating program part:



[cid:image002.png@01D6770E.5986EAF0]

Then the wireshark analysis of the exchange. A piece of the update/extract 
request packet showing MIME parts:




[cid:image003.png@01D6770E.5986EAF0]


Below is what the 500 Server Error packet contains:



[cid:image004.png@01D6770E.5986EAF0]
                ...
    In this file submission case the file is actually submitted and indexed, 
but the server's response is failure with error code 22.
Again, one key to this puzzle is that NoClassDefFoundError for MultiParts. The 
java code for that area differs dramatically between Solr 8.5 and 8.6.
    Thanks,
    Joe D.





________________________________
Markus Kalkbrenner
Dipl.-Ing. (FH) techn. Informatik
CTO

bio.logis Genetic Information Management GmbH
Zentrale:
Olof-Palme-Straße 15
60439 Frankfurt am Main

T: +4969348739 110

markus.kalkbren...@biologis.com
biologis.com

Geschäftsführung: Prof. Dr. med. Daniela Steinberger
Sitz des Unternehmens: Altenhöferallee 3, 60438 Frankfurt am Main
Registergericht Frankfurt am Main, HRB 97945




________________________________
Markus Kalkbrenner
Dipl.-Ing. (FH) techn. Informatik
CTO

bio.logis Genetic Information Management GmbH
Zentrale:
Olof-Palme-Straße 15
60439 Frankfurt am Main

T: +4969348739 110

markus.kalkbren...@biologis.com
biologis.com

Geschäftsführung: Prof. Dr. med. Daniela Steinberger
Sitz des Unternehmens: Altenhöferallee 3, 60438 Frankfurt am Main
Registergericht Frankfurt am Main, HRB 97945

Reply via email to