On 11/20/23 04:44, ufuk yılmaz wrote:
+1 I also get the same error with a fresh solrcloud 9.4 installation. Jetty 
configuration doesn’t seem to have anything to block that request.

Any idea where the implementation for this API interface is? Is it 
automatically generated?
https://github.com/apache/solr/blob/main/solr/api/src/java/org/apache/solr/client/api/endpoint/DeleteAliasApi.java

--ufuk yilmaz

Sent from Mail for Windows

From: Hakan Özler
Sent: Monday, November 20, 2023 1:15 PM
To: us...@solr.apache.org
Subject: Receiving 405 error messages for alias deletion

Hi there!

While I was working on alias management in SOLR, I noticed that the V2 of
alias deletion [1] is not allowed in Solr 9.4, and that there seems to be a
missing endpoint causing 405s with every attempt using the following
request:

  List aliases:
$ curl -i -L -X GET 'http://localhost:8983/api/aliases'
{"responseHeader":{"status":0,"QTime":5},"aliases":{"my-alias":"my-cloud-collection"},"properties":{}}

Delete V2 alias 'my-alias':
$ curl -i -L -X DELETE 'http://localhost:8983/api/aliases/my-alias'
HTTP/1.1 405 Method Not Allowed

This is what I get from version 9.5.0-SNAPSHOT which I just compiled today from branch_9x:

elyograg@bilbo:/opt/solr$ curl -v -L -X DELETE 'http://localhost:8983/api/aliases/foo'
*   Trying 127.0.0.1:8983...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8983 (#0)
> DELETE /api/aliases/foo HTTP/1.1
> Host: localhost:8983
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 405 Method Not Allowed
< Allow: GET,OPTIONS
< Content-Length: 0
<
* Connection #0 to host localhost left intact


This looks to me like the DELETE method is not allowed for that URL path. I do not know where the code that actually implements the v2 API lives, and I do not know if it is Jetty itself or the servlet that limits the allowed methods.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org
For additional commands, e-mail: dev-h...@solr.apache.org

Reply via email to