[
https://issues.apache.org/jira/browse/SOLR-15116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17273892#comment-17273892
]
Thomas Corthals commented on SOLR-15116:
----------------------------------------
I hit another one that seems related, in this case on both GET and HEAD
requests:
{code:sh}
$ curl -i
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/foobar" |
head -n 1
HTTP/1.1 400 Bad Request
$ curl -I
"http://localhost:8983/solr/techproducts/schema/analysis/synonyms/foobar" |
head -n 1
HTTP/1.1 400 Bad Request
{code}
Both of those returned "404 Not Found" with Solr 8.6.3.
I'm not a Java developer, but I think it's a safe bet that the changes for
SOLR-14659 have something to do with this.
> Wrong HTTP status for HEAD request
> ----------------------------------
>
> Key: SOLR-15116
> URL: https://issues.apache.org/jira/browse/SOLR-15116
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Schema and Analysis
> Affects Versions: 8.7
> Reporter: Thomas Corthals
> Priority: Major
> Labels: ManagedStopwordFilterFactory,
> ManagedSynonymFilterFactory, REST, Solr
>
> A GET request for a word that doesn't exist in a managed resource (stopwords
> or synonyms) returns "404 Not Found", but the HEAD request for the same child
> resource returns "200 OK" as if the word actually exists.
> {code:sh}
> $ curl -i
> "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/foobar"
> | head -n 1
> HTTP/1.1 404 Not Found
> $ curl -I
> "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english/foobar"
> | head -n 1
> HTTP/1.1 200 OK
> {code}
> Solr 8.6.3 returns "404 Not Found" for both GET and HEAD requests for a
> non-existing child resource. This is how it SHOULD be according to [RFC
> 2616|https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4]:
> {quote}The metainformation contained in the HTTP headers in response to a
> HEAD request SHOULD be identical to the information sent in response to a GET
> request.
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]