Good catch! This is definitely a bug that I introduced as a part of SOLR-16393 - sorry for the trouble.
The problem, counter-intuitively, is this line. [1]. The annotations in this file are overriding the ones we need in 'DeleteAliasApi' (which is where the path and verb are specified). I'll get this fixed and backported for 9.4.1/9.5. I imagine it's cold comfort, but I really appreciate you guys trying out the v2 APIs and catching bugs - sorry it ended up burning you guys this time. Best, Jason [1] https://github.com/apache/solr/blob/9463f666f40f1d72a0ac7b3c46c7f8048ef8eaa9/solr/core/src/java/org/apache/solr/handler/admin/api/DeleteAlias.java#L55 On Mon, Nov 20, 2023 at 6:46 AM ufuk yılmaz <uyil...@vivaldi.net.invalid> 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: users@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 > > However, its V1 API works fine: > $ curl -i -L -X DELETE ' > > http://localhost:8983/solr/admin/collections?action=DELETEALIAS&name=my-alias > ' > {"responseHeader":{"status":0,"QTime":5}} > > If I'm not mistaken according to the docs, do you think this might be > related to these improvements: [2]? > > Thanks, > Hakan > > 1. > > https://solr.apache.org/guide/solr/latest/deployment-guide/alias-management.html#deletealias > 2. https://issues.apache.org/jira/browse/SOLR-16393 > >