lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cao Manh Dat (JIRA)" <>
Subject [jira] [Commented] (SOLR-1113) Error reports from ExtractingRequestHandler and Co do not indicate name of rejected documents
Date Sat, 08 Oct 2016 02:44:20 GMT


Cao Manh Dat commented on SOLR-1113:

In my own opinion. What happen here is when user do a multipart request to upload a file and
the length of the request exceed multipartUploadLimitInKB. Under the hood when we read the
header of the request, we found the "Content-Length" exceed the limit, so we will stop handle
the request and throw out an exception, so we don't have a chance to look down for all file
names of the request to print out a precise error. I think this is correct behavior because
we do not want a user to upload whole the file and get an error about exceed file upload limit.
So this is kinda a problem related to user behavior, they must check whether the request is
successful or not.

Because of that, I think we can close this issue as won't fix.

> Error reports from ExtractingRequestHandler and Co do not indicate name of rejected documents
> ---------------------------------------------------------------------------------------------
>                 Key: SOLR-1113
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>            Reporter: Fergus McMenemie
> The ExtractingRequestHandler rejects documents that are larger than the configured multipartUploadLimitInKB
in solrconfig.xml. None of the generated error messages indicate the name of the rejected
document or provide any way of identifying the rejected document. The failure to identify
the rejected document complicates the middleware used to look after indexes.
> Here is the trace produced by a recent version of trunk.
> {code}
> SEVERE: org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the
request was rejected because its size (4585774) exceeds the configured maximum (2097152)
> 	at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(
> 	at org.apache.commons.fileupload.FileUploadBase.getItemIterator(
> 	at org.apache.commons.fileupload.FileUploadBase.parseRequest(
> 	at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
> 	at org.apache.solr.servlet.MultipartRequestParser.parseParamsAndFillStreams(
> 	at org.apache.solr.servlet.StandardRequestParser.parseParamsAndFillStreams(
> 	at org.apache.solr.servlet.SolrRequestParsers.parse(
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(
> 	at org.apache.catalina.core.StandardContextValve.invoke(
> 	at org.apache.catalina.core.StandardHostValve.invoke(
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(
> {code} 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message