[ 
https://issues.apache.org/jira/browse/SOLR-16274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17560590#comment-17560590
 ] 

Thomas Corthals commented on SOLR-16274:
----------------------------------------

Here's a comparison between 8.11.1 and 8.11.2 with the same requests executed 
as {{GET}} and {{{}HEAD{}}}. The {{HEAD}} requests for non-existent words used 
to return the wrong response code, now those for existing words do. One would 
suspect that SOLR-15116 has something to do with it.

 
|| ||method||8.11.1||8.11.2||
|{{curl -si 
"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english"}}|{{GET}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#00875a}{{HTTP/1.1 200 OK}}{color}|
|{{curl -sI 
"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english"}}|{{HEAD}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#de350b}{{HTTP/1.1 500 Server Error}}{color}|
|{{curl -si 
"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/the"}}|{{GET}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#00875a}{{HTTP/1.1 200 OK}}{color}|
|{{curl -sI 
"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/the"}}|{{HEAD}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#de350b}{{HTTP/1.1 500 Server Error}}{color}|
|{{curl -si 
"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/foobar"}}|{{GET}}|{color:#00875a}{{HTTP/1.1
 404 Not Found}}{color}|{color:#00875a}{{HTTP/1.1 404 Not Found}}{color}|
|{{curl -sI 
"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/foobar"}}|{{HEAD}}|{color:#de350b}{{HTTP/1.1
 200 OK}}{color}|{color:#00875a}{{HTTP/1.1 404 Not Found}}{color}|
|{{curl -si 
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english"}}|{{GET}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#00875a}{{HTTP/1.1 200 OK}}{color}|
|{{curl -sI 
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english"}}|{{HEAD}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#de350b}{{HTTP/1.1 500 Server Error}}{color}|
|{{curl -si 
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/happy"}}|{{GET}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#00875a}{{HTTP/1.1 200 OK}}{color}|
|{{curl -sI 
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/happy"}}|{{HEAD}}|{color:#00875a}{{HTTP/1.1
 200 OK}}{color}|{color:#de350b}{{HTTP/1.1 500 Server Error}}{color}|
|{{curl -si 
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/unhappy"}}|{{GET}}|{color:#00875a}{{HTTP/1.1
 404 Not Found}}{color}|{color:#00875a}{{HTTP/1.1 404 Not Found}}{color}|
|{{curl -sI 
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/unhappy"}}|{{HEAD}}|{color:#de350b}{{HTTP/1.1
 200 OK}}{color}|{color:#00875a}{{HTTP/1.1 404 Not Found}}{color}|

> HEAD request for managed resource → 500 Server Error
> ----------------------------------------------------
>
>                 Key: SOLR-16274
>                 URL: https://issues.apache.org/jira/browse/SOLR-16274
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Schema and Analysis
>    Affects Versions: 8.11.2
>            Reporter: Thomas Corthals
>            Priority: Major
>              Labels: ManagedStopwordFilterFactory, 
> ManagedSynonymFilterFactory, REST, Solr
>
> {{HEAD}} requests for managed stopwords/synonyms fail with 500 Server Error. 
> This is true for both stopword lists/synonym maps and their child resources.
> {code:bash}
> $ curl -sI 
> "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english"; | 
> head -n 1
> HTTP/1.1 500 Server Error
> $ curl -sI 
> "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/happy";
>  | head -n 1
> HTTP/1.1 500 Server Error
> {code}
> A request for a non-existent word in a list/map does return the correct 404 
> response.
> {code:bash}
> $ curl -sI 
> "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/unhappy";
>  | head -n 1
> HTTP/1.1 404 Not Found
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to